Well, without looking into the details of the extrude face node, what you're
doing seems to make basic sense... create an extrude node, then keyframe the
amount of extrusion...

Not sure if that was just sample / test code, or what you're planning to to
end up using... but if it's the latter, I'd suggest not using hard-coded
names..
- Paul

On Sun, Feb 27, 2011 at 7:05 PM, LML <[email protected]> wrote:

> hello all
>
> stumbling through pymel a bit here; would appreciate some advice
>
> curious to know if this is a legitimate way to keyframe an extruded
> face--I have a feeling it is  too complex;
> my earlier attempts were to try keying before and after the extrude--
> but the first keyframe kept disappearing...this seems to work now
> but ...?
>
>
> pm.select(obj+'.f[1]', r=True)
> pm.polyExtrudeFacet(ltz=0)
> pm.setAttr('polyExtrudeFace1.translateY', 0)
> pm.setKeyframe('polyExtrudeFace1.translateY', t=1)
> pm.setAttr('polyExtrudeFace1.translateY', 1)
> pm.setKeyframe('polyExtrudeFace1.translateY', t=20)
>
> --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to