Home Reference Expression functions 

origin expression function

Returns components of an object’s transforms.

Usage

origin(obj1, obj2, constant_type)

This function will return one of TX, TY, TZ, RX, RY, RZ, SX, SY, SZ value necessary to transform obj1 to obj2, depending on the type argument (“TX”, “TY”, “TZ”, “RX”, “RY”, “RZ”, “SX”, “SY” or “SZ” ).

This can also be thought of as the position of obj2 relative to obj1. It will compute the position of obj1 relative to obj2 and returns one of TX, TY, TZ, RX, RY, RZ, SX, SY, SZ based on the type argument.

If obj1 is the empty string (“”), then the world space position of obj2 is returned.