Hi,
Is there a way to reference the bounding box size of a group within a primitive without blasting that primitive group ?
In my specific case I would like to Xform just the group on Y according to it's Y size
"bbox(0,D_YSIZE)" considers the entire primitive Ysize and not the group entered above in teh group field. Is there a dedicated expression or a workaround to do so ?
Thank you
Bounding box size of a group
1173 3 0-
- Chawki
- Member
- 4 posts
- Joined: Jan. 2018
- Offline
-
- vicvvsh
- Member
- 58 posts
- Joined: April 2016
- Offline
Hi,
you can use Match Size SOP [www.sidefx.com] for this, check on "Use Groups to Determine Justification Bounds" parm and choose primitive group in "Source Group".
Or use Attribute Wrangle SOP and vex functions getbbox_size() [www.sidefx.com], getbbox_center() [www.sidefx.com]
you can use Match Size SOP [www.sidefx.com] for this, check on "Use Groups to Determine Justification Bounds" parm and choose primitive group in "Source Group".
Or use Attribute Wrangle SOP and vex functions getbbox_size() [www.sidefx.com], getbbox_center() [www.sidefx.com]
-
- animatrix_
- Member
- 4978 posts
- Joined: Feb. 2012
- Offline
Chawki
Hi,
Is there a way to reference the bounding box size of a group within a primitive without blasting that primitive group ?
In my specific case I would like to Xform just the group on Y according to it's Y size
"bbox(0,D_YSIZE)" considers the entire primitive Ysize and not the group entered above in teh group field. Is there a dedicated expression or a workaround to do so ?
Thank you
Hi,
For max performance I would recommend using the Bound SOP and then referencing this node in your bbox expression.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- Chawki
- Member
- 4 posts
- Joined: Jan. 2018
- Offline
animatrix_Chawki
Hi,
Is there a way to reference the bounding box size of a group within a primitive without blasting that primitive group ?
In my specific case I would like to Xform just the group on Y according to it's Y size
"bbox(0,D_YSIZE)" considers the entire primitive Ysize and not the group entered above in teh group field. Is there a dedicated expression or a workaround to do so ?
Thank you
Hi,
For max performance I would recommend using the Bound SOP and then referencing this node in your bbox expression.
WOnderful !
Thanks
-
- Quick Links