Bounding box and 3D

I have an issue with getting movieclip's bounding box when it has nonzero z-property. Here's the example of code producing correct result shown on figure A:
var m : Meat = new Meat();
addChild(m);
m.x = 100;
m.y = 100;
m.z = 100;
m.rotationY = 45;
var bb : Rectangle = m.getRect(this);
graphics.lineStyle(1, 0xFF0000);
graphics.drawRect(bb.x, bb.y, bb.width, bb.height);   
But when im setting custom projection center on container movieclip bounding box stays the same as in previous code but object is moved according to perspective distortion (figure B).
ar m : Meat = new Meat();
addChild(m);
m.x = 100;
m.y = 100;
m.z = 100;
m.rotationY = 45;
transform.perspectiveProjection = new PerspectiveProjection();
transform.perspectiveProjection.projectionCenter = new Point(0, -100);
var bb : Rectangle = m.getRect(this);
graphics.lineStyle(1, 0xFF0000);
graphics.drawRect(bb.x, bb.y, bb.width, bb.height);
Is it a bug or is there any way to get correct bounding box with custom projection center?

To report bugs, send a detailed bug report (including information about the version number of your software, some details about your computer, et cetera) to [email protected]
You can also submit bugs through the
feature request form if that's more convenient:

Similar Messages

  • Can you view text outside of the canvas? as with the view menu you can see animation paths, bounding boxes and handles??? many thanks

    re: Motion 5
    can you view text outside of the canvas? as when using the view menu you can see animation paths, bounding boxes and handles???
    I'm in the middle of a text animation design treatment and unless my memory is completely failing I thought this was an option.
    An example would be selecting all layers and being able to see all bounding boxes and animation paths while moving along the timeline.
    Of course this could be quite a mess if you couldn't selectively chose which layers, its just with this current project it would be so helpful if
    I could see the text beyond the canvas to aid in my animations.
    many thanks,
    robert
    Motion 5
    2014 MacBook Pro 2.6Ghz i7
    16GB RAM
    OS X 10.9.5
    2011 Mac Pro
    4 Boot drives OS X 10.9.4, 10.10, 10.7, 10.8
    960GB OWC Mercury Accelsior_E2 PCI Express SSD (Current screaming fast boot drive)
    64GB RAM

    thanks for both of your responses
    I do understand shift + v " to "Show Full View Area" and shift + z to fill screen, etc.
    and command + & - for zooming
    what I'd like to do is selectively view, say, the text outside of the canvas as you can see the bounding box
    which contains the text or object when selecting one or all layers in the layers column
    I haven't used this feature in a while though I do recall using it in the past.
    Any help would greatly appreciated
    thanks,
    R.

  • Bounding box and pdf export

    Hi all,
    I'm using Illustrator CS4 and I have interest in the bounding box of a figure when I export it as a pdf. I'm using the crop area tool (also called ArtBoard, ToolShift+O) to set-up by hand the bounding box and then export the figure as a pdf. The problem is that I can observe spurious small white margins in the exported pdf. It seems that the bounding box is not perfectly set-up. Are you aware of this problem? Is there a work-around?
    Thank you

    I don't think there is per se any problem nor is AI doing anything wrong. Sounds like your bog standard antialiasing/ transparency blending, if elements are not placed and shaped in such a way that their rasterized output perfectly coincides with whole pixels plus the usual issues with trapping, overprint etc., which Acrobat will obey based on its own settings and the properties defined in your AI document and which particularly become relevant if blending modes, partial opacity and raster effects are involved. You need to look into those things more than anything else and find the right combination of settings...
    Mylenium

  • Why are my Illustrator images getting thicker strokes when I take the bounding box and make them smaller?

    Why are my Illustrator images getting thicker strokes when I take the bounding box and make them smaller? This has never happened to me. I'm not an expert at Illustrator, but I do know some fundamentals.

    Thank you for responding so quickly. No apologies necessary - I know this Forum isn't McDonalds - don't expect an answer to be served up right away. You helped me out with a big issue yesterday.
    I am using a mac - OSX 10.7.5
    I have Adobe Creative Suites - CS5 - Illustrator version is 15.0.2
    The contents I am placing are all  Vector - Illustrator files
    But, I wonder about some of the vector files I work with.  Could a "line weight/thickness" be 'assigned' to the drawing and screw things up? I used 'simple' linear (line) drawings from SolidWorks that have been converted to ai files. It's just weird because I checked the stroke of the drawing and it's not out of line.
    I am attaching part of some box labels. You can see how the drawings, of the products, on the 'left side' are "thick" after embedding them. I think the "Global Logo" was pasted into a template not linked that's why it's okay. But look at the Quiet Thunder logo - it looks terrible. These labels are only 2.25" X 6.5", so its important I keep the images lightweight. 
    Your help is very much appreciated. Thank you!

  • The middle handle on the rectangle is not there anymore when I select it with the black arrow (v) tool. Show bounding box and edges are both on. Where dd the middle anchor go??

    The middle handle on the rectangle is not there anymore when I select it with the black arrow (v) tool. Show bounding box and edges are both on. Where dd the middle anchor go??

    haggyabeken,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked to below.
    https://forums.adobe.com/thread/1595973
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Where the bounding box and handles gone?

    Today I had updated Illustrator 2014 to .1 and I did realized that bounding box are gone...
    It works fine where two or more objects are selected but for one object it just disappeared...
    How to get it back?

    Hi, thank you for your answer
    It applies to plain rectangle tool, it looks like they just made changes to it and for now it doesn't behave as it was in version 18.0
    When I do select two plain rectangle using a shift key then, bounding box is back again, ready to sue..
    Thank you for Pawel's script link
    PS. Is there any place here to post a feature list and to be pretty sure they - I mean Adobe's team, will check it and to apply in the newest version of AI?
    I'm mobile phone designer, and there is hundreds sall things which will make my job pretty easy instead of new great features which my or may not needed for most of the mobile app designers?

  • Bounding box and selection tool problems (CS5.5 Illustrator OSX)

    When I select objects by dragging arrow tool (i.e. logos, headlines, etc.) I often have a problem that other objects are also selected (images, things that are not visible or not actually there) and I can't unselect them easily to get just my selection of objects and be able to resize them by dragging corners. It's like you have to scale everything including the weird extra invisible items across the page somewhere. Sometimes if it's an image that gets selected in addition I can click on and off it to get just my selected objects. And then sometimes the bounding box does not work at all and I can't resize my selected objects by dragging the corners (scale tool works though). Showing and hiding bounding box from drop down menu does nothing. This seems random but happens all the time. It also happened in CS5 on a different Mac computer. Anybody run into this? I know other designers in the office have experienced this. Is there a weird selection preference I need to set? Should I try resetting preferences? Could it be Ram issues? (Sometimes have Illustrator, Photoshop, and InDesign open all at once)
    I've just been dealing with it up to this point but I am really ready for a fix for this issue. It seems buggy.

    Pam,
    You may try to move the folder, following the first hint here: http://www.bugge.com/Family-and-friends/Illy/illy.html

  • Bounding Box  and Affineransform

    I'm working on a tank game. right now, i just have an applet and a little tank that drives around. unfortunately, i can't figure out how to get a bounding box to encapsulate with my image. can anyone help me? my prog is two classes: TankGame and Tank. Tank extends Rectangle and draws itself and an image of a tank. as the image is rotated, the rectangle(bounding box) is offset between 0 and image size, along both the x and y axis.
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    public class TankGame extends Applet implements ImageObserver, KeyListener, Runnable{
         int gameSpeed=50;
         int tankSpeed=4;
         Graphics2D dbg;
         Image dbImage, tankPic;
         int imageHeight=32, imageWidth=32;
         Thread th;
         Tank theTank;
         AffineTransform transform;
         boolean forward=false,reverse=false,right=false,left=false;
         Point location;
         double rotation=Math.PI/20,angle=Math.PI;
         public void init ()     {
              setBackground(Color.black);
              setSize(600,600);
              tankPic=getImage(getCodeBase(),"tank.jpg");
              theTank = new Tank(tankPic, this);
              addKeyListener(this);
              transform = new AffineTransform();
              location = new Point(150,150);
              transform.translate(location.x,location.y);
              transform.rotate(angle);
         public void start (){
              th = new Thread (this);
              th.start ();
         public void run ()     {
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while (true){
                   move();
                   repaint();
                   try     {
                        th.sleep (gameSpeed);
                   }catch (InterruptedException ex){
         public void paint (Graphics2D g)     {
              g.setColor(Color.red);
              theTank.draw(transform, g);
         public void update (Graphics g)     {
              if (dbImage == null){
                   dbImage = createImage (this.getSize().width, this.getSize().height);
                   dbg = (Graphics2D)dbImage.getGraphics();
              dbg.setColor (getBackground ());
              dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
              dbg.setColor (getForeground());
              paint (dbg);
              g.drawImage (dbImage, 0, 0, this);
         public void keyPressed(KeyEvent e) {
              if (e.getKeyCode()==38){forward=true;}
              if (e.getKeyCode()==40){reverse=true;}
              if (e.getKeyCode()==37){left=true;}
              if (e.getKeyCode()==39){right=true;}
         public void keyReleased(KeyEvent e) {
              if (e.getKeyCode()==38){forward=false;}
               if (e.getKeyCode()==40){reverse=false;}
              if (e.getKeyCode()==37){left=false;}
              if (e.getKeyCode()==39){right=false;}
         public void keyTyped(KeyEvent e)  {}
         public void move(){
              if(forward){transform.translate(0,-tankSpeed);}
              if(reverse){transform.translate(0,tankSpeed);}
              if(left){
                   angle=angle-rotation;
                   transform.rotate(-rotation,imageWidth/2,imageHeight/2);
              if(right){
                   angle=angle+rotation;
                   transform.rotate(rotation,imageWidth/2,imageHeight/2);
              location.y=(int)(transform.getTranslateY());
              location.x=(int)(transform.getTranslateX());
              theTank.moveTo(location);
    /*class tank which draws itself and an image (though not always in the same place)*/
    class Tank extends Rectangle {
         Image image;
         Tank(Image img, ImageObserver obs){
              image=img;
         public void moveTo(Point p){
              setRect((double)p.x,(double)p.y,32,32);
         public void draw(AffineTransform transform,Graphics2D g){
              g.drawImage(image,transform,null);
              g.setColor(Color.blue);
              g.draw(this);
              g.setColor(Color.red);
    }i've messed with this for a couple of hours, this morning to no avail.

    Try this:
    change the tank class to     93 class Tank extends Rectangle {
         94     Image image;
         95
         96     Tank(Image img, ImageObserver obs){
         97         image=img;
         98         setRect(0,0,32,32);
         99     }
        100 /*  public void moveTo(Point p){
        101         setRect((double)p.x,(double)p.y,32,32);
        102     }*/
        103     public void draw(AffineTransform transform,Graphics2D g){
        104         g.drawImage(image,transform,null);
        105         g.setColor(Color.blue);
        106         g.draw(transform.createTransformedShape(this));
        107         g.setColor(Color.red);
        108
        109     }
        110 }and comment out the line that calls the moveTo-method.
    Does it do what you want it do now?

  • Layer bounding boxes and selection indicators

    Any way to toggle bounding box mouse-over feature on/off?
    Thx

    Thanks for the response, I tried that dialogbox, but the bounding box option does not appear there. There is of course the option to turn off ALL the layer controls but this new bounding box feature seems to be ever present. It just irks me to have things flash up on the  screen as I work on it, distracting me from the composition itself. And frankly never had an issue of distinguishing my layers in the past. Photoshop and Illustrator have similar "auto guide" features, but they both have the OFF option.
    On another note, has anybody been bothered by the inconsistent behavior of the "Shift" flowchart shortcut? The idea is to press shift and the left arrow to move back out Ovenesta composition, but in practice pressing shift does not always bring up the flowchart immediately, you often have to press shift twice or navigate to your comp window-- defeating the purpose of a consistent useful shortcut.

  • Bounding box, paths and control points are not visible

    When I select an element, in this case a building, to make changes, the entire file is selected instead of the building. There is nothing to ungroup when this happens. Can someone tell me how to fix this? Thanks

    pk,
    You may have a look for Clipping Masks or other means of disguising the artwork. You may start by looking at the Layers palette/panel (expand as needed).
    Presuming we are not just talking about View>Show Bounding Box (and/or Show Edges).

  • Help on resizing text boxes and general image techniques

    Using CS2.
    I have two basic questions.  One has to do with getting the best vector images (with text) that I can for placement in InDesign documents.  The other has to do with the specifics of working with text boxes in FW.
    The easiest way for me to produce vector images has been by using PowerPoint.  I do all the graphics work and then save it as a gif.  I do cropping in a graphics tool (Irfanview, PS) and then insert or place the image.  As long as there is no resizing, things work well.  I'm not sure how things like DPI are controlled using this technique but I'm assuming that also would be done with the graphics tool.  I know Irfanview allows for the dpi to be specified during resizing.
    The problem starts to show up when the gif object is resized.  Things get distorted and I lose the crispness of the image contents.  I'm certainly not an expert on graphics however I've been thinking I either need to 1) make the actual size of graphics in PP the size of the final placed image so there is no resizing (just some cropping) or 2) to work in a tool like FW where (I'm assuming) there are better capabilities to resize vector graphics.  My sense (again, not an expert) is that the process I'm using converts to vector graphics in PP to a bitmap image in the gif and that resizing doesn't work as well for bitmaps as for vector objects.  Do I have that right?
    Moving on to question 2:
    Can text boxes be resized in FW without distorting the text?  Can their size be seen when originally drasing them?  Perhaps spoiled by PowerPoint, I like to set the width of vector objects (e.g. rectangle) and the width of the text that will fill it to the same size.  (I know PP has the ability to put borders on text boxes but when working in FW I need to work with 2 objects, the rectangle and the text box).  Say I have a rectangle that is 81px wide.  Can I set a text box to 81px wide without distorting the text?
    I tend to want to control actual object sizes so I can get good spacial alignment.  For example, I tend to set the width of a text object to an odd number of px so that any line coming out of the text object aligns well with the text.  I must admit that it may be time for me to use a different technique in FW (e.g. more alignment of multiple objects vs. knowing dimensions and seting locations).  Does my approach need improvement?
    Thanks for any advice
    Tom

    As I wean off of PP I've started looking at FW and Illustrator (I have both).  I've done a logo or two in FW and have used it to build some simple web graphics (e.g. buttons, menus).  It can, as I recall, be a little more complex than what I need in this case.
    Since PP is not a graphics program, its drawing capabilities are very limited. As a consequence, any graphics application will have many more features than you're used to seeing and more than you need for any one project.
    I did a little experimenting with Illustrator and my first impression is that it will work better for me for this work.  It seems a little more intuitive.
    Is a general guideline to use FW for web-destined graphics and Illustrator for what I used to do in PP?
    Your suggested guideline is good. Also, note that if you make a logo or vector graphic in Illustrator (saving as .ai format), you can import that into Fireworks and work with it as a vector object there. FW can import and use, just not create, .ai objectes and files.
    FW has some vector tools, they are tucked away under Window > Others > Path. Since FW is intended for producing Web graphics, it is a hybrid application, capable of both vector and photo/image editing. Given that it has some of both, it necessarily doesn't have everything that Illustrator has nor everything that Photoshop has. It has most the features of both of those programs, as long as the feature is useful for a Web graphics designer. For pure photo editing Photoshop has the edge; for pure illustration, Illustrator has the edge. Both Photoshop and Illustrator support color profiles and other features important for print that Fireworks does not. All are good programs, but there are reasons to prefer one over the other depending on what kind of graphics you need to create or work with and what your intended use of the work is. (But any of them will be superior to PowerPoint! )
    I'm not sure I can unravel the mystery with the text box resizing.  I suspect theres an option selected.  Knowing it can be done is enough for me to do some homework.
    Maybe...don't think of text boxes at all. You have text objects. The object has a bounding box that is determined by the underlying definition of the font, but it isn't in a text box. (Sometimes swooshs will extend beyond the defining box of a character in the font, but that is another issue). The bounding box for the text object is similar to the bounding box of a circle or a star or an irregular shape. There's a reference box for the dimensions, but the text is not inside some other independent container.
    To resize, select the text object and change the font size either using the Properties palette or using the scale tool to drag on a corner of the scaling outline (different from the bounding box, and I don't know why, sorry).
    I think that,with Illustrator, you can define text boxes (or other shapes) and fill them with text. *searches* Ah.. Like these: http://school.tatoland.com/illustrator/aitype.html
    cheers!
    Lorraine

  • Bounding box around rollover images

    Can anyone tell me how to remove a visible bounding box on
    rollover images. The bounding box does not appear until you click
    on the rollover image. This does not show up in Safari but does
    show in IE and Firefox. Any help is appreciated.

    > I have
    > one other question, do you know why some browsers are
    set for seeing this
    > bounding box and others (like Safari) are not?
    No, I have no idea. But I realize, I may have given you a bum
    steer. What
    I was describing was the a:focus functionality which happens
    BEFORE you
    click. What you are asking about is something that you see
    AFTER clicking,
    right? In that case, try the CSS rule -
    a img { outline:none; }
    and see if that works.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "webimom" <[email protected]> wrote in
    message
    news:gav2ut$qie$[email protected]..
    > Murray, Thanks for the code and for the information, I
    had no idea it
    > could be
    > useful. It just looked odd on my rollover buttons. I am
    a newbie at all
    > this,
    > barely knowing HTML (planning on taking a class) but
    loving Dreamweaver. I
    > have
    > one other question, do you know why some browsers are
    set for seeing this
    > bounding box and others (like Safari) are not?
    >
    > I really appreciate your help and going to take your
    advice and leave it
    > alone.
    >

  • Can I disable the bounding box grab feature in Elements 10?

    I'm a Photoshop user and recently bought Elements 10 for home use.
    I'm normally not used to having grabable bounding boxes and I keep getting screwed up because I see the active layer, go to grab something (to move it for example) and then I accidently grab another layer because by touching an object in it it becomes active.
    Is there a way to turn this feature off?
    OR....can anyone help me use it more effectively and not get screwed up?
    thanks,
    bob

    Hi,
    Have you tried clearing the Auto select layer option?
    Brian

  • Illustrator CS2 - Uniform scaling (Shift+Bounding Box) Not responding

    After opening a CS3 Illustrator file, now functions such as Uniform scaling (Shift+Bounding Box) and zooming in and out shortcuts, are not responding.
    They still work in other files so the problem is specific to the imported CS3 files. Is there a way to remedy this??

    It might possibly be a language thing if you are using something other than U.S. as your setting in the International System Preferences.
    I normally have my language set to Icelandic but every time I have to re-start Illy I have to switch to U.S. to get keyboard commands to work properly. Just do one keyboard command with U.S. and then switch back to your native language. Dunno why this is, but it works for me.
    If you normally use U.S. I haven't a clue.

  • Scopes limited to a bounding box!

    I've put in a wishform request (  https://www.adobe.com/cfusion/mmform/index.cfm?event=processform&name=wishform#wishprodlan g  ) for something that would have a HUGE effect on the speed of my grading: being able to have the scopes limited to the data in a drawn bounding-box! I'd want it to be a key-boarded shortcut, but one you could set to "on" and just leave as you wanted to.
    Think of how this would assist you in  skin-tone corrections/controls, being able to at any moment draw a quick bounding-box and see where on the vector-scope your "skin" falls, both for rotational degree (hue) and saturation!
    Think of the way this could work in checking for secondary corrections ... both in determining IF you need to do the work of making a secondary, and ... if so ... showing you where you need to start AND where you need to go.
    Currently the only way to do this is to make a top-level primary layer, create a mask on it futzing around to make the mask fit exactly the area you need to "see" in the scope, set the layer for controlling the outside of the mask, and then "grade" the outer area to black.
    You need to do all this anytime you want to restrict the scopes to one small section of the image. The control as I've suggested, only because I've learned it is something available in some other software and is slicker than SNOT to use (    ) ... well, it would be available INSTANTLY all the time. What a huge time-saver this would be for me.
    Y'all are welcome to post this on to Adobe also ... 
    Neil

    FWIW Neil
    In my experience ..."skin tone" and any other is ultimately CC and graded to the "eye-ometer"
    Key to subtleties and control  is the use of Secondaries thru HSL qualifiers and masks.
    Personally ..once I get into areas such as skin tone...its all eye and not a glance at a scope ...apart from the constant eye on Black and highlight levels.
    I would like to see Adobe gain scope consistency across the apps.  SG , PPRO and AEFX
    I am not adverse to a "floating point scope" as an optional tool. ( Another scope).
    If you can get a look at DVRack (Serious Magic)  or Adobe On Location scopes... do so.

Maybe you are looking for