Notifications
Clear all

[Closed] get controller type

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

2 Replies

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);
http://forums.cgsociety.org/showthread.php?t=607687

ok thanks for the classof function, i did’nt know it. i have manage with this to do what i wanted