dependant position of object1 from point coordinates object2

   3067   3   0
User Avatar
Member
4 posts
Joined: 11月 2010
Offline
Hi guys,

I have a scene with 2 objects. I want one of the objects to be dependent from the coordinates of the top point of another object.

So if the initial object`s top point is moved the dependent object is also moved

Can you please help?
User Avatar
Member
8836 posts
Joined: 7月 2007
Online
look at Rivet object node
set point number of first object in Point Group Parameter
parent second object under Rivet object

to get stable result you should have N and Up vector attributes on first object so Rivet can calculate rotation from them and check Use Point attributes… checkbox
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
4 posts
Joined: 11月 2010
Offline
thank you for the reply, I see what you mean.
The issue is more complicated for me because I need to specify these parameters via the expression for the distance tool otl.

I have sent you a PM with that.

Thanks for the help!
User Avatar
Member
8836 posts
Joined: 7月 2007
Online
as expression you can use

origin(“”, “../relative/path/to/your/object”, “TX”)
origin(“”, “../relative/path/to/your/object”, “TY”)
origin(“”, “../relative/path/to/your/object”, “TZ”)

and that object can be rivet so you have easy access to points that way

i've sent you updated asset which takes optional object inputs so you can connect objects directly(including rivet) and the distance will be calculated
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links