Jump to content

Question on Bbox() and UV Project


Recommended Posts

Hello!!!

I have a question regarding how to map the scale of a UV Project node (or any other value for that matter) using the bounding box of an object. I'm still getting used to the way the Houdini expressions work, so I would really appreciate a lot any input hta you could get me.

I'm using an image sequence to trace some geometry, but I would like to have that traced geo to have the UV's properly projected since it is changing its form. One way that I tought of working this out is linking the UV SCALE values to something like this:

UV Project

SCALE X = bbox(myObject, sizeOfTheBoundingBoxInX)

SCALE Y = bbox(myObject, sizeOfTheBoundingBoxInY)

SCALE Z = bbox(myObject, sizeOfTheBoundingBoxInZ)

I tried using the $BBX and $D_SIZEX but the UV Project node throws me an error and the scale gets evaluated in 0.

Thanks a lot four your time guys!!!

Link to comment
Share on other sites

The second argument for the bbox() expression is D_XSIZE, without the "$" and the X in front. You could maybe also try using local variables such as $SIZEX in the UV project node. For all valid arguments for the bbox() expression I suggest you look at the help file.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...