Hi,
I've been looking through this group and I've seen a few instances of
created a ramp attribute in a plugin using MPxNode.addAttribute. I want to
add a ramp attribute to an existing node in a maya scene. Has anyone
managed to do this?
In the docs it seems to say to use this mel script:
AEdependNodeTemplate
I can't seem to get it to work. Here's what I'm trying:
import maya.cmds as m
from maya.mel import eval as mel
circle = m.circle()[0]
m.addAttr(ln="test", at="compound", numberOfChildren=3)
m.addAttr(ln="test1", dataType='double3', multi=True, parent="test")
m.addAttr(ln="test2", dataType='double3', multi=True, parent="test")
m.addAttr(ln="test3", dataType='double3', multi=True, parent="test")
mel('AEdependNodeTemplate "%s.test"'%circle)
Does anyone have any ideas?
By a ramp attribute, I mean an attribute like the Field Scale attribute on
an nCloth node (in Force Field Generation section) - an attribute where you
can draw a profile in the attribute editor.
Thanks,
Henry
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe