pymel.core.modeling.pointPosition

pointPosition(*args, **kwargs)

This command returns the world or local space position for any type of point object. Valid selection items are: - curve and surface CVs - poly vertices - lattice points - particles - curve and surface edit points - curve and surface parameter points - poly uvs - rotate/scale/joint pivots - selection handles - locators, param locators and arc length locators It works on the selected object or you can specify the object in the command. By default, if no flag is specified then the world position is returned.

Flags:
Long name (short name) Argument Types Properties
local (l) bool ../../../_images/create.gif
 
Return the point in local space coordinates. Flag can have multiple arguments, passed either as a tuple or a list.
world (w) bool ../../../_images/create.gif
 
Return the point in world space coordinates.

Derived from mel command maya.cmds.pointPosition

Example:

import pymel.core as pm

pm.pointPosition( 'curve1.cv[3]' )
# Returns the (x,y,z) world position of curve1's 3rd CV.

pm.pointPosition( 'particle1.pt[1]', l=True )
# Returns the (x,y,z) local position of the particle point.

Previous topic

pymel.core.modeling.pointOnSurface

Next topic

pymel.core.modeling.polyAppend

Core

Core Modules

Other Modules

This Page