Digistruct Posted November 22, 2018 Share Posted November 22, 2018 Hey guys, I'm trying to learn VEX a bit more and for an experiment I wanted to do I want to get the bounding box size of the first input in my wrangle node. But I just get an error and don't understand what I've done wrong - any and all help in appreciated! vector getpointbbox_size(0, @ptnum); Thanks, Jack Quote Link to comment Share on other sites More sharing options...
FlorianEggers Posted November 22, 2018 Share Posted November 22, 2018 vector size; size = getpointbbox_size(0); It expects an input Geometry and outputs the size of the entire thing. So it doesn't need any other argument. note, that "getpointbbox_size" only looks at the points. you can use "getbbox_size" to check for everything in your input geo. From the help: "getpointbbox_size is the same as getbbox_size except it only computes the bounding box of the points. So if a primitive has extents that don’t have points (for example, the boundary of a primitive sphere), they will not be included in the box." Quote Link to comment Share on other sites More sharing options...
acey195 Posted November 26, 2018 Share Posted November 26, 2018 (edited) Also note that the "0" as the argument, refers to the input number, you can also use 1,2,3 to access the other input nodes (or even -1, -2, etc if you use spare inputs) Edited November 27, 2018 by acey195 fixed input index numbers Quote Link to comment Share on other sites More sharing options...
Digistruct Posted November 26, 2018 Author Share Posted November 26, 2018 Huge thanks for your help, really appreciate it! 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.