6ril Posted March 27, 2016 Share Posted March 27, 2016 (edited) Hi, I'm trying to learn, but I sometimes find it hard to get answers from the doc (real good doc tho). here is what I'm struggling with at the moment: I want the pivot of a transform node to to be placed relatively to another object (in the same geo node). I need the pivot to be at XMIN in x axis, 0 in y axis, ZMIN in z axis. Easy. But I need the XMIN and ZMIN of another object. Can someone help me with the syntax ? thanks ! Edited March 27, 2016 by 6ril Quote Link to comment Share on other sites More sharing options...
6ril Posted March 27, 2016 Author Share Posted March 27, 2016 (edited) here is a hip file to make it easier. I wrote: XMIN of box1 to show you want I need, in the transform node. I need help with the syntax. something like that ? op:"../box1"($XMIN) *edit* Or is it not possible this way because the help says: $XMIN is the min on x of the node input ? XMIN.hipnc Edited March 27, 2016 by 6ril Quote Link to comment Share on other sites More sharing options...
f1480187 Posted March 27, 2016 Share Posted March 27, 2016 bbox is what you are looking for: bbox("../box1/", D_XMIN) bbox("../box1/", D_ZMIN) 1 Quote Link to comment Share on other sites More sharing options...
6ril Posted March 28, 2016 Author Share Posted March 28, 2016 thank you ! Does it mean that $XMIN is only usable from the node input? Quote Link to comment Share on other sites More sharing options...
f1480187 Posted March 28, 2016 Share Posted March 28, 2016 Yes, it is for inputs. It is a local variable defined on the Transform SOP node. You cannot use it outside the node except some other nodes define their own $XMIN. List of node's locals can be found in docs. Quote Link to comment Share on other sites More sharing options...
jrockstad Posted March 28, 2016 Share Posted March 28, 2016 The local / global variable system in Houdini can be a bit confusing at first. Peter Quint discusses this a bit in his videos on attributes, the first of which you can find here: https://vimeo.com/6803463 Quote Link to comment Share on other sites More sharing options...
6ril Posted March 29, 2016 Author Share Posted March 29, 2016 thank you guys : ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.