Hey Guys
Another Maya noob question ...
I am adding custom attributes to a node created by my script. I want the
attribute visible, but not keyable. Is this the most efficient way to do
this ?
x = cmds.createNode( 'transform', n='sm_scene_data' )
cmds.addAttr(x, at='short', sn='sm_ver', nn='sm_version', dv=1, min=1,
max=100, k=1,r=1 )
cmds.setAttr(x+".sm_ver", k=0,cb=1)
The reason I ask is because I don't see a *cb* flag in addAttr .. so I need
to have a setAttr immediately following the creation of the attribute ??
Thanks again!
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/053a5006-b530-4d92-91a0-7a28f9484022%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.