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?
Forum topic · General Scripting
By rodimus · 2010-10-11
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?
rodimus · 2010-10-20
thanks... thats exactly what I needed.
now..
it is possible to do a similar thing, with an editbox or a label???
Anubis · 2010-10-22
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.
Anubis · 2010-10-12
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