PlatinumFishy Posted April 17, 2016 Share Posted April 17, 2016 (edited) Hello. I am attempting to create package that slices any geometry that is plugged into it. I know how to model in Houdini farly alright, but I am not very good at using attributes. In this particular situation I would like to get the dimensions of the bounding box of the source object and apply them to the tube I am going to use to slice up the object. I create an attribute to get the bounding box dimensions (using $SIZEX etc) as well as a Copy Attribute node to copy it onto the tube. When I attempt to use the new attribute in a Transform node I get an error. The Transform node has the attribute I created but it gets an error when I try to use it. How would I actually use the attribute I made to adjust the size of the tube? Slice.hipnc Edited April 17, 2016 by PlatinumFishy Quote Link to comment Share on other sites More sharing options...
anim Posted April 17, 2016 Share Posted April 17, 2016 you can directly sample centroid and bbox dimensions using centroid() and bbox() expressions instead of storing through attributes see the file for both approaches: Slice_fix.hipnc Quote Link to comment Share on other sites More sharing options...
PlatinumFishy Posted April 17, 2016 Author Share Posted April 17, 2016 Thank you! So I kinda had the right idea (for the less efficient way) it's just that I got the syntax wrong. Like I said, I am new to attributes so including both ways helped greatly, again, thank you. 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.