Reference X Scale or X Pos in Box node

   1843   2   0
User Avatar
Member
177 posts
Joined: Nov. 2015
Offline
OK, so this would be a question for any node.

What I'm wanting to do is create an expression that would take the input from the Size X and then multiply it by another number to create a Y size. This would allow me to increase X and Y would follow along and keep the same aspect ratio.

I'm also wanting to do this for the position. I'm wanting some sort expression in the Y position so that it does something like this. Y/YHeight*.5

That way, the item always stays ‘on the floor.’

Just can't figure out how to reference the variables for those properties.

Thanks,

Jim
Reel Inpsirations
Houdini Work in Progress [vimeo.com]
User Avatar
Member
8556 posts
Joined: July 2007
Offline
1. RMB click on Size X field, choose Copy Parameter
2. RMB click on Size Y field, choose Paste Copied Relative References (notice it puts ch(“sizex”) expression into the field, this is the reference you are looking for )
3. modify the reference, e.g.: ch(“sizex”)*3

OR

just type: ch(“sizex”)*3 directly into Size Y field directly

similarly for linking center y to sizey
type: ch(“sizey”)/2 into Center Y field
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
177 posts
Joined: Nov. 2015
Offline
Thanks, that worked great. I remember seeing that in a tutorial, but forgot about it.
Reel Inpsirations
Houdini Work in Progress [vimeo.com]
  • Quick Links