I am trying to apply changes to a plugin description based on the currently selected knot in a gradient parameter. It seems that the currently active knot can be retrieved from the GradientCustomGui::GetActiveKnot(..)
function. The question is how to access the GradientCustomGui
instance when the gradient is not created in a custom dialog.
One way I considered was implementing a CustomGuiData
, in which the gradient will be allocated in the iCustomGui::CreateLayout()
implementation for the GUI, but then again this custom GUI will not be accessible in the NodeData::GetDDescription(..)
implementation. Which leaves the only option to implement the functionality in the custom GUI itself, but that makes the data management much more complicated, so I am searching for the least complex option.
Am I missing something that would allow the access to the GradientCustomGui
instance in the node itself?
Cheers and Happy New Year,
Deyan