Rig GUI question
Hello everyone, I'm currently working on a GUI for a rig that I'm building and am having some trouble getting a rollout in a floating dialog box to update with the changing of a custom attribute. Below is an example of my current setup, but I'd like to be able to set the rollout: and ui: of the Custom Attributes to the floatingGUI_rollout spinners, or achieve a similar result so that I can animate the custom attributes and have the GUI update to display the correct values.
I currently have a rollout stored in the CA that displays a single button that launches the GUI, and then the GUI rollout made within that. Any help is greatly appreciated, thanks!
Example_CA = attributes Example ( parameters ExampleGUI_param --rollout:(I'd like this to feed into floatingGUI_rollout) ( Weight_right type:#integer animatable:true default:100 --ui:(I'd like this to feed into spn_RWeight) Weight_left type:#integer animatable:true default:100 --ui:(I'd like this to feed into spn_LWeight) ) rollout LaunchGUI_rollout "Launch GUI" ( button btn_LaunchGUI "Launch GUI" rollout floatingGUI_rollout "Floating GUI" ( spinner spn_RWeight "Right Weight" spinner spn_LWeight "Left Weight" ) on btn_LaunchGUI pressed do ( createDialog floatingGUI_rollout 300 380 ) ) ) custattributes.add $ControlNode.modifiers Example_CA