THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/10/2012 at 13:55, xxxxxxxx wrote:
Hi everyone, this is my first time posting here.
My question is about the GUI for a falloff plugin I'm working on, I'm trying to make that GUI react dynamically to user input (eg add or remove buttons if someone selects an option or presses another button).
I've seen tutorials on using the GeDialog class to add widgets to an existing dialog, but my trouble currently is that I can't find a GeDialog instance to add anything to. My interface is created as a description .res file, and I can react to button input via messages but that only supplies an id as an integer, which doesn't help me access the enclosing dialog. So my question is how do I access an instance of my GUI from within my plugin code?
Alternatively I'd be open to creating the GUI in code if that gives me more control over it, but I can't see in the API how to supply a GeDialog for a falloff plugin through code (the register plugin function only asks for a description file).
I've been searching for help with this but I haven't had any luck so far, so I hope someone here might have an answer to this stumbling block.
On 24/10/2012 at 01:47, xxxxxxxx wrote:
A FalloffData plugin is based on a description to display its GUI. A description can be changed dynamically overriding GetDDescription(). Unfortunately this method isn't available in the Python SDK.
GetDVisible() is the only dynamic method available in a FalloffData; it's called to change the visibility of a description's parameter.
On 24/10/2012 at 03:28, xxxxxxxx wrote:
Hi Yannick, if I can change the visibility of GUI elements that might be enough for what I'm trying to do, I'll look into that. Thanks for your help!