Any CAT scripters out there?

I've been trying to create a script to batch through a number of animations on a cat rig, collapse the CATlayers and export a clip. I can do most of it, but i am running into issues with 2 things.

1: I can't find a way to select a CatLayer. i can edit them to heaven and back, but cannot tell maxscript to specifically select layer 1. there has to be a command like that somewhere.

2: I can't seem to find the proper syntax to set the mode of the CAT rig. I need the script to set the rig into animation mode, but i can't seem to find out how that is done.

Can anyone lend a helping hand?

thanks!

-ian

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
IN_human's picture

to change setup/animation

to change setup/animation mode try this

<node>.controller.catparent.catmode = 0  (setup mode)

<node>.controller.catparent.catmode = 1  (animation mode)

marvelatthedust's picture

Got the answer, and i feel

Got the answer, and i feel dumber for it. the command is:

$CATparent.SelectedLayer = n

i was (stupidly) under the impression that the .SelectedLayer command was only for returning the currently selected layer value, and did not think that i could use it to change the selected layer.

(waves wand at self) out out demons of stupidity!

-ian

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.