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[1] Example_CA
 

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

I would really like to know

I would really like to know that, too!
Maybe you could wire your spinners to the values you want to change, when your rollout is created (with the "paramWire" stuff). But that would be kinda unflexible.

So how to create a script that adds custom parameters to an object, which you can then wire to anything you like and always be able to change them inside the floating gui?

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.