anim curves

78 views
Skip to first unread message

Sylvain Berger

unread,
Mar 16, 2010, 11:32:44 AM3/16/10
to Pymel Python Module for Maya
Hi guys, I would like to know what is the difference with these different animCurve class? The doc is thin on each type, TA, TL, etc

Also I still can't figure out how to create a animCurve node using pymel

This doesn't work.

import pymel.core as pm

animCurve = pm.nodetypes.AnimCurve()
animCurve = pm.PyNode('animCurve')

I don't want to have to do a loop for each frame a set keyframes, I want to create a curve, add keys to it and connect it.  The speed of the script will be faster with this method for sure.

Thanks

sberger

unread,
Mar 16, 2010, 11:56:15 AM3/16/10
to Pymel Python Module for Maya
Ok I think I can use the object.attribute.setKey(t=time, v=value) to
do it.

So you can forget about this...

Thanks


On Mar 16, 11:32 am, Sylvain Berger <sylvain.ber...@gmail.com> wrote:
> Hi guys, I would like to know what is the difference with these different
> animCurve class? The doc is thin on each type, TA, TL, etc
>

> AnimCurve<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.node types/pymel.core.nodetypes.AnimCurve.html#pymel.core.nodetypes.AnimCurve>
> AnimCurveTA<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveTA.html#pymel.core.nodetypes.AnimCurv eTA>
> AnimCurveTL<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveTL.html#pymel.core.nodetypes.AnimCurv eTL>
> AnimCurveTT<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveTT.html#pymel.core.nodetypes.AnimCurv eTT>
> AnimCurveTU<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveTU.html#pymel.core.nodetypes.AnimCurv eTU>
> AnimCurveUA<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveUA.html#pymel.core.nodetypes.AnimCurv eUA>
> AnimCurveUL<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveUL.html#pymel.core.nodetypes.AnimCurv eUL>
> AnimCurveUT<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveUT.html#pymel.core.nodetypes.AnimCurv eUT>
> AnimCurveUU<file:///C:/dev/pymel-1.0.0/docs/generated/classes/pymel.core.no detypes/pymel.core.nodetypes.AnimCurveUU.html#pymel.core.nodetypes.AnimCurv eUU>

Reply all
Reply to author
Forward
0 new messages