Hi,
I want to create a gradient attribute on an existing node. I've seen code
how to do this in MPxNode in a plugin, I'm wondering if it's possible to do
this dynamically.
This code is in the docs:
import maya.cmds as cmds
cmds.window( title='Gradient Control For Attribute' )
objName = cmds.createNode('polySplitRing')
cmds.columnLayout()
cmds.gradientControl( at='%s.profileCurve' % objName )
cmds.showWindow()
I'm not sure how to actually create the attribute (profileCurve in this
example) which gets controlled by the gradient control.
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