Pages

Sunday 13 June 2010

pymel is the way...

how many lines would this be in MEL or standard Maya python... :)

import pymel.core as pm
cube = pm.PyNode( 'pCube1' )

for i, v in enumerate( cube.vtx ): print i, v, v.getPosition()

This short script will print positions of all polyCube`s vertices.

No comments: