Jump to content

YSIZE returns XSIZE...!?

Recommended Posts

Hi all,


This might seem weird, but for some reason when I use the bbox function & try to return the YSIZE, YMIN or YMAX, I get the X values...


Is this an issue others have had? Or am I missing something incredibly obvious in my global scene setup or something?


I've attached a simple example here where I'm trying to call the YSIZE of a tube.


(Full disclosure, I'm attempting to implement a noise controlled by a ramp, as can be found in examples kindly shared by Skybar & VBK on this thread http://forums.odforce.net/topic/18610-from-sop-nodes-into-a-single-vop-a-learning-process/ )




Link to comment
Share on other sites

In your VOPSOP, you are taking the wrong float from the VecToFloat. In order, they are XYZ for components 123 respectively. So since you want Y, you should take component 2 (the middle one). Right now you are taking the first, which is X and that is why you are getting X's values. 


Why it kinda works okay though is because your box is a perfect cube, so the YSIZE is the same as XSIZE.

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.

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...