Isotropix Forums

is there an seexpr function for finding out the bounding box

Discuss about expressions in Clarisse

is there an seexpr function for finding out the bounding box

Unread postby calincasian » Fri Mar 01, 2019 5:03 am

Hey,
is there an seexpr function for finding out the bounding box dimensions of an object similar to Houdini's bbox()

cheers
calin
calincasian
 
Posts: 244
Joined: Mon Nov 18, 2013 8:20 pm

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

Unread postby dcourtois » Fri Mar 01, 2019 10:41 am

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)
User avatar
dcourtois
 
Posts: 130
Joined: Tue Jul 25, 2017 3:15 pm

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

Unread postby calincasian » Fri Mar 01, 2019 7:08 pm

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
calincasian
 
Posts: 244
Joined: Mon Nov 18, 2013 8:20 pm

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

Unread postby dcourtois » Mon Mar 04, 2019 10:00 am

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.
User avatar
dcourtois
 
Posts: 130
Joined: Tue Jul 25, 2017 3:15 pm

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

Unread postby calincasian » Mon Mar 04, 2019 7:31 pm

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
calincasian
 
Posts: 244
Joined: Mon Nov 18, 2013 8:20 pm


Return to Expressions