View Full Version : get controller type

04 April 2008, 08:50 AM
Hi All,

how to get controller type of a key. I know a key can be a bezier one, tcb or barcyentric. how can i check this by scripting and put it in a local variable?

thanks for helping

04 April 2008, 02:05 PM
usually keys are read from controllers in the first place - so it would be easier to check classOf <controller> before you parse the keys. I.e. if you have a function that returns an array of keys from a series of controllers, store the controller that each key comes from with that value, for example in another array.

If you absolutely have no access to the controller the keys come from directly, then you'll have to find the controller that the key belongs to manually (as far as I know - I still haven't spotted any max-native bit that tells you which controller a key is in);

04 April 2008, 02:29 PM
ok thanks for the classof function, i did'nt know it. i have manage with this to do what i wanted :)

CGTalk Moderation
04 April 2008, 02:29 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.