originoffset expression function

Returns components of an object’s offset transforms.

Replaced by: hou.ObjNode

See also: origin, vorigin, vtorigin, vrorigin

Usage

originoffset(obj1, pos1, obj2, pos2, constant_type)

This function will return one of TX, TY, TZ, RX, RY, RZ value necessary to transform the point pos1 in the space of object obj1 to point pos2 in the space of object obj2, depending on the type argument (“TX”, “TY”, “TZ”, “RX”, “RY” or “RZ”).

This can also be thought of as the position of pos2 in obj2 relative to pos1 in obj1.

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