Hi, I am trying to animate a slice plane modifier using MaxPlus only, no Maxscript in between.
After some painful trial and error I got far enough to get the “SubAnim” from then modifier, but now I CANNOT assign new position coordinates or anything else.
I just don’t know how I am suppose to set new positions etc to this SubAnim.
Basically, how do I assign new values to an “Animatable” class object. I can’t figure out how to use a setattrib either for those…
#Get Slice_Plane from Slice Modifier
slicePlane = sliceMod.GetSubAnim(1)
#Assign new values to plane
slicePlane[0] = newPos #Problem Here
slicePlane[1] = newRot #Here
slicePlane[2] = newScl #And Here
>>><type ‘exceptions.TypeError’> ‘Animatable’ object does not support item assignment
#This can show the attributes I wanna change
for x in slicePlane:
print x
>>>Animatable(Position XYZ)
>>>Animatable(Euler XYZ)
>>>Animatable(Bezier Scale)
In Maxscript it was much easier "obj.modifiers[x].Slice_Plane.position = newPos
Has anyone ever done something like this with MaxPlus, or does anyone Know how to???
Thank you!