Message 1 of 2
Can't get custom Attr created in maya.cmds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
import maya.cmds as cmds
cmds.file(new = True, f = True)
sphere_xform, sphere_shape = cmds.polySphere( n = 'Earth')
cmds.addAttr(
sphere_xform,
attributeType = 'float',
shortName = 'mass',
longName = 'mass',
defaultValue = 5.9742e24)