A rollout spinner connected with a box.height, as it were connected by wireparameters?

I have a rollout pannel with a spinner that changes the height of selected box... but, I would like to modify the height directly in the object, and the changes in the spinner of my pannel as it were connected by an expression.

any idea?

Comments

Comment viewing options

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

thanks... thats exactly what

thanks... thats exactly what I needed.

now..
it is possible to do a similar thing, with an editbox or a label???

Anubis's picture

simply, no

simply, no, because no controller property for label and editbox, and i see some sense here (to not exist such kind of prop.), because no any controller that operate with string values.

my recent MAXScripts RSS (archive here)

Anubis's picture

You don't said is your

You don't said is your rollout is in floater or dialog, or it is a part of custom attributes. If it is the dialog, here is an example. Keep in mind that you need to know the object name, and it must have controller applyed to the height.

-- create a Box named 'myBox'
b = Box name:"myBox"
-- assign controller to the height
b.height.controller = Bezier_Float()
rollout roTest "Test UI"
(
	spinner spnHeight "Height:" range:[-1000,1000,25] \
	controller:($myBox.height.controller) -- the 'trick' is here,
	-- use controller property of the spinner to link to the height.controller
)
createDialog roTest

my recent MAXScripts RSS (archive here)

Comment viewing options

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