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)

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/440dae07-e7a5-4210-ad0f-9afcd0ce2875%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to