How do you extract (with an expression) an objects world co-ordinates that has been parented.
Using ch() doesn't work because there are no values there.
Must be having a mental blank…
Extracting world space
4256 5 2- Henster
- Member
- 196 posts
- Joined: July 2005
- Offline
- keyframe
- Member
- 1529 posts
- Joined: July 2005
- Offline
- Mario Marengo
- Member
- 941 posts
- Joined: July 2005
- Offline
Hi Henster,
To do it with expressions, try origin() or vorigin().
From exhelp, we get:
/-> exhelp origin
float origin (string obj1, string obj2, string 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.
See also: vorigin, vtorigin, vrorigin, originoffset
Cheers!
To do it with expressions, try origin() or vorigin().
From exhelp, we get:
/-> exhelp origin
float origin (string obj1, string obj2, string 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.
See also: vorigin, vtorigin, vrorigin, originoffset
Cheers!
- edward
- Member
- 7694 posts
- Joined: July 2005
- Online
This has come up so many times I think we need to put it into an FAQ somewhere…. Hmm … somewhere on the odwiki perhaps?
http://odforce.net/odwiki/ [odforce.net]
http://odforce.net/odwiki/ [odforce.net]
- Mario Marengo
- Member
- 941 posts
- Joined: July 2005
- Offline
- edward
- Member
- 7694 posts
- Joined: July 2005
- Online
-
- Quick Links