Feedback

What's your question?

By: [ Editor ] Asked

How can I select all the animation curves in a scene using MEL

Hi y'all, i'm trying to select all of the animation curves in my scene using MEL.

I know I can select all joints using:

select -r `ls -type joint`;

but what's the node type for animCurves? :-)

Thanks

Hixster

Add comment viewed 771 times Latest activity 7 months ago

or Cancel

2 answers

  • 1

julian [ Admin ]

ls -typ "animCurve"

is good if you want all function curves, including driven key curves. Otherwise:

select `ls -typ "animCurveTL" -typ "animCurveTU" -typ "animCurveTA" -typ "animCurveTT"`;

gets just the curves that are animated - i.e. parameters that change over time

The 2 letters at the end specify imput and output units

input is Time or Unitless

output is Linear Unitless Angle or Time

- gotta admit, i never knew about the ls -typ "animCurve" catchall - thanks

or Cancel