Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

pointPosition [-local] [-world] [object]

pointPosition is undoable, NOT queryable, and NOT editable.

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.

Return value

float[]

Flags

local, world
Long name (short name) Argument types Properties
-local(-l) create
Return the point in local space coordinates.
-world(-w) create
Return the point in world space coordinates.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

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

pointPosition -l particle1.pt[1];
// Returns the (x,y,z) local position of the particle point.