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) - Ofer www.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
