View Full Version : object boundingbox from Layout

05-17-2008, 04:31 PM
Hi all
Is it possible to get the boundingbox of an object with LScript
I have tried using boundingbox() but it crashes Layout.

05-17-2008, 07:54 PM
You'll have to use the position(<layerindex>) method of the Mesh Object Agent. There's code elsewhere on this forum on how to get the layer index.

05-17-2008, 08:48 PM
Many thanx for the pointer.
I'll check this out,
however, what i am after is not the position, but
the coords of the extremities.
I would like to use this data to create a camera and then frame up an object on the fly.

05-17-2008, 11:26 PM
.position(layer) does give the BBox in layout. Read the docs on the command..

05-18-2008, 01:47 AM
This is usefull for getting the layer number, using just the position on an object don't work on layers.

05-18-2008, 03:46 AM
Thanx to you all
this info has been very useful