In the example the sphere is a pymel object.
WRONG attribute concept name:
sphere.position.X
CORRECT attribute concept name:
sphere.position.positionX
Calling:
sphere.positionX
# =======================================================
import pymel.core as pc
plane = pc.polyPlane()[0]
plane.addAttr('sphere0', at='float3')
plane.addAttr('sphere0pos', at='float', p='sphere0')
plane.addAttr('sphere0rot', at='float', p='sphere0')
plane.addAttr('sphere0scl', at='float', p='sphere0')
# =======================================================
import pymel.core as pc
plane = pc.polyPlane()[0]
plane.addAttr('sphere0', at='float3')
plane.addAttr('sphere0pos', at='float', p='sphere0')
plane.addAttr('sphere0rot', at='float', p='sphere0')
plane.addAttr('sphere0scl', at='float', p='sphere0')
# =======================================================
No comments:
Post a Comment