Page 1 of 1

is there an seexpr function for finding out the bounding box

Unread postPosted: Fri Mar 01, 2019 5:03 am
by calincasian
Hey,
is there an seexpr function for finding out the bounding box dimensions of an object similar to Houdini's bbox()

cheers
calin

Re: is there an seexpr function for finding out the bounding

Unread postPosted: Fri Mar 01, 2019 10:41 am
by dcourtois
Hi,

nope, no such function for the moment. If I may, what are you trying to achieve ? (maybe there's a workaround depending on what you're trying to do)

Re: is there an seexpr function for finding out the bounding

Unread postPosted: Fri Mar 01, 2019 7:08 pm
by calincasian
I want to set up a turntable project where the camera positions itself at a distance based on some relationship of sizex and sizey of the bbox of the object. I know I could probably do that in python with a shelf button but I was wondering if it can be setup dynamically with seexpr.
Thanks for your offer to help.
cheers
calin

Re: is there an seexpr function for finding out the bounding

Unread postPosted: Mon Mar 04, 2019 10:00 am
by dcourtois
Hi again,

Ok, so yes in this case you guessed right: Python is your only way to compute this distance for the moment. I'll see if we can add a custom function along the lines of "get_bbox(...)" to query the bounding box of any scene item from inside SeExpr.

Regards,
Damien.

Re: is there an seexpr function for finding out the bounding

Unread postPosted: Mon Mar 04, 2019 7:31 pm
by calincasian
Thank you, that would be great Damien. It would be nice if it returns the position of the center along side with sizes in each axis, this way I can use the center to aim the camera at.

cheers
calin