MohoView:Point2Vec(where, layerM)

Version added: before 9.5

Converts a pixel location to a 2D vector location, given a specific transformation matrix

ArgumentTypeDescriptionDefaultVer
wherePointPixel location on the screen< 9.5
layerMMatrixThe transformation matrix for the layer in questionNULL< 9.5

Return type (Vector2): 2D vector point in a layer's coordinate system

Converts a pixel location to a 2D vector location, given a specific transformation matrix. This is used to convert between mouse coordinates and 2D layer coordinates.
String "Point2Vec" is found in the following scripts:

SS - Multi Layer Transform Points (by simplsam)

Set Origin (by Lukas)

MR Transform Rig Tool (by eugenebabich)

Modified transform bone tool (by A.Evseeva)

AE Transform points and curvature (by A.Evseeva)

See all...