Ofer, thanks

2 different questions I guess--and sorry for the confusion;  I'm just
generally curious about best strategies for easing an animation using
pymel-- is this something you script from scratch?  or, is there a
command to access in maya?  I'm familiar with the curve editor, of
course, but not so sure how it would be implemented using pymel...

as for the second part (the for loop), yes I was looking to replace
what I had with something a little more sophisticated (I've found
something in ActionScript, but am having trouble deciphering it) that
would simply change the pace (easing might be the wrong word?) of how
these obj's appear over a defined time--no transparency needed.  It's
probably just going to take some head scratching (math!) on my part

cheers
LML

On Mar 7, 3:48 am, Ofer Koren <[email protected]> wrote:
> Not sure exactly where you're stumped... are you looking to replace the
> (i**.25) with a different calculation?
> In any case the visibility will not change gradually, if that's what you're
> looking for. It'll pop when the value of the curve goes above 0.5. If you
> you're looking for gradual transition from opaque to transparent you'll have
> to work with the shader parameters.
>
> One little tip on python for loops - there's usually no need to use the *len
> *and *range *functions:
>
> for *obj* in *objList*:
>    pm.hide(*obj*)
>    pm.setKeyframe(*obj*, t=1)
>    pm.showHidden(*obj*)
>    pm.setKeyframe(*obj*, t=i**.25)
>
> - Oferwww.mrbroken.com
>
>
>
>
>
>
>
> On Sun, Mar 6, 2011 at 11:12 PM, LML <[email protected]> wrote:
> > hi all
>
> > I am interested generally in how easing and f-curve control happens
> > via pymel.
>
> > a more specific question I am stumped by is how to script a simple
> > ease-in or ease-out scenario below, where I am un-hiding a series of
> > objects in succession.   I have some easing defined by the exponent at
> > the end--but I'd like to add some control for the range over which the
> > easing occurs--say between frame 1 and a defined ending frame...
>
> > tips much appreciated!
>
> > listLen = len(objList)
>
> > for i in range(listLen):
> >    pm.hide(objList[i])
> >    pm.setKeyframe(objList[i], t=1)
> >    pm.showHidden(objList[i])
> >    pm.setKeyframe(objList[i], t=i**.25)
>
> > --
> >http://groups.google.com/group/python_inside_maya

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

Reply via email to