PDA

View Full Version : Delete Key > Zero Pos XYZ


Michael Chen
01-21-2008, 10:08 PM
Hi everyone,

In Max 8 if you create a key, you can right click on that key and delete either position, rotation, or scale. Does anyone know the MaxScript for deleting the keys for "Zero Pos XYZ" and "Zero Euler XYZ" for a given key?

Thanks for reading.

regard,
Mike

RustyKnight
01-22-2008, 09:08 PM
Hi everyone,

In Max 8 if you create a key, you can right click on that key and delete either position, rotation, or scale. Does anyone know the MaxScript for deleting the keys for "Zero Pos XYZ" and "Zero Euler XYZ" for a given key?

Thanks for reading.

regard,
MikeOkay, so the docs say
deleteKeys <controller> [ #allKeys | #selection ]
Deletes keys from the controller according to the optional symbolic argument supplied.

#allKeys (default): deletes all keys in the controller.

#selection: deletes the currently selected keysSounds reasonable.

Now, we know we can access the controller information for a given node via the node.[property].controller property

So if take a leap of logic (or anti-logic depending on how your day is going), we should be able to do something like this:deleteKeys myNode.rotation.controller #selectionThis should remove all the selected keys on the rotation controller for the given object (in this case a pointer to the variable myNode).

You should also check out deleteKeys <controller> <index>

Shane

Michael Chen
01-22-2008, 10:01 PM
Thanks Shane. I'll look into that.

CGTalk Moderation
01-22-2008, 10:01 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.