Search - User list
Full Version: dependant position of object1 from point coordinates object2
Root » Houdini Indie and Apprentice » dependant position of object1 from point coordinates object2
yurivoyt
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?
tamte
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
yurivoyt
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!
tamte
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB