Hi all,
i have a deformer but i want to get a Attr value i can key in the
Attribute editor a bit like the Envelope value but everytime i add a
value to my compound attr i get the attr but its dosnt show up as a
keyable value in the node but it shows up as a line... and also i can
get and set it using Get/setAttr so it works its just not in the
Atribute editor.
is there any tricks here. just a 0-1 value for every Attr i create
within the node.
here is what i have in the node initializer.
cAttr = OpenMaya.MFnCompoundAttribute()
nAttr = OpenMaya.MFnNumericAttribute()
myDeformer.blend = nAttr.create( "blend", "b",
OpenMaya.MFnNumericData.kDouble, 1.0 )
nAttr.setKeyable(True)
nAttr.setMin(0.0)
nAttr.setMax(1.0)
shapeFix.offsets = cAttr.create( "offsets", "off" )
cAttr.setArray( True )
cAttr.addChild( myDeformer.blend )
any tips would be great
john
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe