Hi,
I am looking for a way to find out “Subdivisions Width” or “Subdivisions Height” using Maya API.
Thanks,
chakmangoo
Hi,
I am looking for a way to find out “Subdivisions Width” or “Subdivisions Height” using Maya API.
Thanks,
chakmangoo
import maya.cmds as cmds
polyPlane = 'polyPlane1'
subdWidth = cmds.getAttr('{0}.subdivisionsWidth'.format(polyPlane))
if you are using the python API, its much easier to mix in the python MEL bindings than to use OpenMaya.