PDA

View Full Version : Custom Attributes problem


xcx
08-25-2006, 01:07 PM
Hi all!

I have little problem with CAs. So I have this simple code sample.


myCA = attributes myCAData
attribID:#(0x64105280, 0x30bb46c5)
(
parameters main rollout:roller
(
myIntArray type:#intTab tabSize:3 ui:(component1, component2, component3)
)

rollout roller "myRoller"
(
slider component1
slider component2
slider component3
)
)

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?

PEN
08-25-2006, 02:20 PM
What do you want to change? The values or actualy add and subtract UI items and update the intTab at the same time?

xcx
08-25-2006, 02:42 PM
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[1] value (see. sample code).
- Then when script is already running I want to change slider (component1) to control myIntArray[2] value.

PEN
08-25-2006, 03:43 PM
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?

xcx
08-27-2006, 07:16 PM
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.

PEN
08-28-2006, 01:52 PM
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.

xcx
08-28-2006, 06:19 PM
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 :(

CGTalk Moderation
08-28-2006, 06: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.