how do I move two objects with respect to another?
1530 1 0- bobc4d
- Member
- 320 posts
- Joined: May 2016
- Offline
I am learning Houdini, playing about 5 weeks now. I am following Rohan Dalvi's Introduction to Houdini 3B, modeling a table. I managed to figure out how to set up sliders so I can change the leg height and table size. I would like to add chairs which would move according to table size, so if the table size went from 1 to 1.5 in X the chairs would move accordingly. I believe I could do this per chair but would like to do it per pair of chairs.
- reelinspirations
- Member
- 177 posts
- Joined: Nov. 2015
- Offline
You would need a transform node that references your X size and adjusts accordingly depending on how many chairs you have.
You can do it either for one or two chairs.
If you merge the chairs together and put a transform node under that, then use the bbox() function you should be able to easily move the chairs along with the X size of the table. You could use the bbox() on the table as well, or just reference the x-size (not a variable name) and go from there.
Hope that helps.
Jim
You can do it either for one or two chairs.
If you merge the chairs together and put a transform node under that, then use the bbox() function you should be able to easily move the chairs along with the X size of the table. You could use the bbox() on the table as well, or just reference the x-size (not a variable name) and go from there.
Hope that helps.
Jim
-
- Quick Links