Hello! The data in these containers doesn't live long enough to access. I don't think you can retrieve the properties of the objects without inserting code into the Away3D classes (and the height and width default to swf height and width anyway).
Object3D provides objectWidth, objectHeight, and objectDepth properties, and from these you can calculate with the projection the width and height of the drawn graphic. Unfortunately, I do not have the time (or knowledge, probably) to show you how to do this. I'm curious as to why you need these values, though. To what end does resizing the swf serve? :) On Nov 6, 5:44 pm, bakedbeing <[EMAIL PROTECTED]> wrote: > Is there a way to access the graphics container in the view3D or in > the session object? Something that will give me access to the sprite > created for each object? > > On Nov 7, 10:16 am, bakedbeing <[EMAIL PROTECTED]> wrote: > > > Heya again lads! > > > Is there a direct way to find a 2D bounding box for an object as > > finally drawn to the view? > > > I want to find the top left and bottom right of the object, so I can > > crop my swf to just the edges of the object (move the view object, > > resize the swf). > > > I couldn't find anything in the object3D properties or in view3D. > > > I was thinking a long way would be to draw the whole view to a > > bitmapData object with BitmapRenderSession and trawl that for pixel > > data, but I'm hoping there's something easier? A sprite object inside > > Projector who's x,y, height and width (in 2D) I can grab?? > > > Thanks!
