Constrain Null object to specific point

   4969   8   3
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hi there,

Just wondering if anyone could help me here, I'm just trying to constrain a null to a point in my scene.

Thanks,
Pete
User Avatar
Member
2529 posts
Joined: June 2008
Offline
Move the null to the location of the point in world space. Then at the object level make the null a child of the object with the point by connecting them in the network view. Make sure to activate keep position when parenting on the null before you make the parenting connection.
Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Staff
4159 posts
Joined: Sept. 2007
Offline
The snapping tools can be handy in these situations…

Attachments:
screencast-2015-11-20-232836.gif (1.1 MB)

I'm o.d.d.
User Avatar
Member
85 posts
Joined: May 2011
Offline
http://www.sidefx.com/docs/houdini15.0/expressions/point [sidefx.com]
— dedeks 3000 —
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
try the Rivet or Sticky tools
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hey thanks for all the help!
Never noticed that bout the snap tool, that's super handy!

So how would I go about using the expression - point(surface_node, point_number, attribute, index)
Would I put that directly into the X,Y and Z fields of my null's translate node?

Thanks
Pete
User Avatar
Member
85 posts
Joined: May 2011
Offline
Peteski ,

Sorry but my answer is partially wrong because the point expression only give you the local position of the point.
As Arctor suggest , the rivet obj is your tool (Sticky implies UVs)

PS:you can always create an attribute in your object that convert P to World Space (named PW ?) and use that attribute in your point expression.
This can be done ,for example, with a transform VOP(Spaces: Object to World)
— dedeks 3000 —
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
So how would I go about using the expression - point(surface_node, point_number, attribute, index)
Would I put that directly into the X,Y and Z fields of my null's translate node?

yes, exactly.
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Cool, thanks guys!
  • Quick Links