Hi Guys,
is the first time that I write on this group
but I was a silent observer

now I need your help,
I'm sure this is a dumb's question
but I'm not able to understand how work the MRampAttribute

my idea is to use this class for extract the inbetween value between 2
keys
like a remapValueNode, but with array attributes!

in my for loop I was tring to define the MRampAttribute class:

for k in range(keys):
   myRamp = OpenMaya.MRampAttribute()
   myRamp.setPositionAtIndex(position, k)
   myRamp.setColorAtIndex(value, k)
   myRamp.setInterpolationAtIndex(interpolation, k)

position is a float (es. 0.0)
value is a MColor (es. MColor(0.0, 0.0, 0.0))
interpolation is asShort() value (es.1)

but I always got this error:
# RuntimeError: (kFailure): Unexpected Internal Failure #

I hope someone can help me to go head!
thanks in advance

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

Reply via email to