View Full Version : Custom Attributes problem
I have little problem with CAs. So I have this simple code sample.
myCA = attributes myCAData
parameters main rollout:roller
myIntArray type:#intTab tabSize:3 ui:(component1, component2, component3)
rollout roller "myRoller"
custAttributes.add $ myCA
Everything works fine. I want change myIntArray items ui control components at runtime. Can it be done some ohter way that recreating CA with execute command?
What do you want to change? The values or actualy add and subtract UI items and update the intTab at the same time?
Sorry for my bad english :(. I'll try to explain my problem better this time :).
So here goes...
- When script starts. Slider (component1) control myIntArray value (see. sample code).
- Then when script is already running I want to change slider (component1) to control myIntArray value.
So you don't want three sliders, you only want one, and that one will be able to control each animation track?
What would you change to tell it which track to use?
Count of sliders is not relevant (final script will have x number of sliders). What I need to know is how I can tell to 3dsmax what animation track slider control.
Well in your example the only way to know which track is controlled by which slider is by the order of the UI controls in the param block.
Not only way. I can write all UI creating code to string variable and run it with execute command. It just is so horrible way to code anything. I hoped that there would be better way to do this :(
08-28-2006, 05:19 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.