Width and height (relative values of scene) in Actionscript 3D perspective

Hello!

I have a small square movieclip stage, 100 x 100 width and height.

I translated it 90 ° in the y-axis. Then, it seems almost a vertical line.

I want to know the "3D Perspective" width and '3D Perspective height' values (something like 24 x 120 as the square rotation now looks almost a vertical line).

These values are shown in the movieclip properties, in ' 3D position and mode.

I put an image showing where the values are displayed. Does anyone know how to access values through Actionscript?

Thank you!

3dWidthAndHeight.png

I'm sure that kglad is right, but I think you can use the getBounds method too:

trace (myClip.GetBounds (stage));

gives you a Rectangle whose properties width and height corresponds to the width and height in the 3D properties panel.

Tags: Adobe Animate

Similar Questions

  • Photoshop CS5: TextItem width and height not related export Script not values specific

    Hi all

    I'm writing a script for Photoshop export data on the textItems in a document for use in another tool. What I capture data appear to be accurate for the most part, except for the width and height of the textItems. Here's my document settings (these never change):

    Rule and Type units: pixels

    Resolution document: 300 px/inch

    textItem type = text of paragraph

    When you enter values for height and width, I does no conversion, so the values below are gross exports of ExtendScript. I have included the point of a text data in two separate documents (the text element is not the same in both documents).

    Document 1:

    Photoshop: 125 px ExtendScript height: 22.32 22.32/125 px = 5.6

    Photoshop: 231 px ExtendScript width: 46.39 231/46.39 px = 4.98

    Document 2:

    Photoshop: 123 px ExtendScript height: 30,48 px 123/30.48 = 4.03

    Photoshop: 1407 px ExtendScript width: 370.95 1407/370.95 px = 3.79

    If a conversion must be performed to get the value of ExtendScript to match what shows Photoshop, I understand that. However, there is too much variance in multipliers: the difference in height between the two textItems is only 2 pixels, but the multipliers are 5.6 vs 4.03! I do not understand what might be other factors that affect these values.

    Bug textItem.width ExtendScript, the author has provided what he claimed to be a workaround: multiply the ExtendScript value by the resolution of the document, and then dividing by 72. It close me well the values that I needed, but as evidenced by the variable multipliers, it is not consistent.

    Someone at - it suggestions?

    With the help of the function by Paul Riggott (how read scale boxes paragraph?) and Stefan Beckmann (ExtendScript textItem.width bug), I think I have the solution:

    The value exported in the ExtendScript Toolkit is based on a 72 dpi document, even if it uses a baseValue for a document of 300 dpi. This is the bug that needed to be worked around by using the method of Stefan (value * activeDocument.resolution/72). However, I was always getting incorrect values.

    According the information acquired by reading the wire responded by Paul, I realized that I was working with text boxes transformed. This meant that I had to get the transformation factor, using Paul.

    So, I can get accurate values for any document by using the following:

    var width = activeLayer.textItem.width * getTransformFactor() * activeDocument.resolution/72

    var height = activeLayer.textItem.height * getTransformFactor() * activeDocument.resolution/72

    function getTransformFactor() {}

    Var ref = new ActionReference()

    ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"))

    var / / desc = executeActionGet (ref) .getObjectValue (stringIDToTypeID ('textKey'))

    textSize var = desc.getList (stringIDToTypeID ('textStyleRange')) .getObjectValue (0) .getObjectValue (stringI DToTypeID ('textStyle')) .getDouble (stringIDToTypeID ('size'))

    If (desc.hasKey (stringIDToTypeID ('transform'))) {}

    var mFactor = desc.getObjectValue (stringIDToTypeID ('transform')) .getUnitDoubleValue (stringIDToTypeID ("yy"))

    return mFactor

    }

    Returns 1

    }

  • Cannot change PopUp LOV width and height in version 4.2.5.00.08. I change the values of 450 400 in the Popup list template values (Section of the window), but my function genList0_f07_$ _row (), retains the same settings. Is this a bug?

    Hello

    I use APEX 4.2.5.00.08 to my app.

    I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).

    I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.

    I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.

    I saw in the HTML source code that is the called function:

    <!--


    function genList0_f07_$ _row)
    {
    w = open ("wwv_flow_utilities.gen_popup_list" +)
    « ? p_filter ="+
    "& p_name = ' + escape ('f07') +.
    ' & p_element_index = ' + escape ('0') +.
    ' & p_elem_id = ' + escape ('f07_0000').
    ' & p_form_index = ' + escape ('0') +.
    ' & p_max_elements = ' + escape ("") +.
    ' & p_escape_html = ' + escape ("") +.
    ' & p_ok_to_query = ' + escape ('YES').
    ' & p_flow_id = ' + escape ('114') +.
    ' & p_page_id = ' + escape ('100201') +.
    ' & p_session_id = ' + escape ('16021544706004').
    ' & p_eval_value = ' + escape ("") +.
    ' & p_translation = ' + escape ('NO') +.
    ' & p_lov = ' +.
    ' & p_lov_checksum = ' +.
    ' & p_item_id = ' + escape('-683997768') +.
    ' & p_column_id = ' + escape ('25022622060292812'),
    "winLov,"
    "Scrollbars = 1, resizable = 1, width =400, height =450"); "
    If (w.opener is nothing)
    w.opener = auto;
    w.Focus ();
    }
    ->

    I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.

    The only solution I think is to replace this function, which is NOT ideal.

    Thank you

    Digital

    The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.

    Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:

    (function(){
      var _open = window.open;
      window.open = function(){
        if ( arguments[1] === "winLov" ) {
          arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700";
        };
        return _open.apply(window, arguments);
      };
    })();
    

    Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.

    During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.

    Edit:

    Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.

    Edit2:

    I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.

  • URGENT - Width and height problem

    Hi all
    Here I m facing a problem,
    Please take a look at this reference Image.

    Reference image

    That Strawberry is a MovieClip. He turned about 45 degrees. If I trace the width and height of the MovieClip it will return the value of the Rectangle of the strawberry covers. but I need the exact of the cutter width, which means that I need the width between two lines of Violet. Why BCZ this is the initial width of the content rotation position...

    Please I m urgent aid... Any suggestion is welcome.
    Hope that someone of you will help me out of this problem

    the only problem caused by the use of the Center registration point was the result by placing the registration point of your movieclip to 0,0 on chronology of SCALING_COMPONENT_IMG. When a bitmap is created, it is always created with her superior to 0,0 on the left. 3/4 of your movieclip was so out of reach of the bitmap.

    Here's the code that compensates for the placement of your movieclip. Note, however, that if you rotate your movieclip in the scenes of the scale, no flash function can accurately determine the limits of the movieclip.

  • Image size default width and height units

    I am now using 2015 and when I open the tool to the size of the Image width and height units are default to inches I want to make Pixels. The size is set to Pixels and resolutions has Pixels/inch, but the width and height units always opens on the thumbs. I checked my preferences, units and leaders, units, the rules are Pixels is of Type Points. But the New Document preset resolutions column size and Point/Pica size and see nothing else to settle.

    What is a 'new' to be stuck with the thumbs everytime I open the size of the Image? It's a pain that I almost never work in inches.

    Then, with the size of the Image open, hold down the ALT key. Cancel button will be Reset.  Click on that and the dialog box will go to the default values. See if that fixes it.

  • manipulate the width and height on FORM

    Hello

    I would like to show a thumbnail of the image on a form page.
    I used the apex_util.get_blob_src - something but then it shows a large image.
    The problem is that I can not put the width and height. On a report, it works with a < img - tag > in the query, but I did not have this option in a form.

    Does anyone know how to fix this?

    This option is also possible (http://dgielis.blogspot.nl/2008/07/show-blob-of-other-table-in-apex-form.html), but my text field show only the < img > - tag. I don't know how to set up the field to only show the image... (in a report, you set "standard report column", but in forms?)

    Gr.
    garco

    garcol wrote:

    About P1210_AVATAR, I change "based on" (under settings) to "Image URL stored in the value of the page element.
    Under Source, I put this in the "source or expression value":

    return  'Avatar';
    

    This is not a URL, it's an HTML element. Inspect the source code, and I think you will find that the attribute src of the image element is completely garbled.

    P711_AFB is a part of the image (BLOB), P1210_DNR_ID is the primary key of the table where I get my image of.

    Create the P1210_AVATAR element with

    Display in the form: Image display
    Based on: Image URL stored in the value of the item Page
    The HTML Form element attributes: width = "50" height = "50" alt = "Avatar."
    Type of source: Body of the PL/SQL function
    Source of value or expression:

    return apex_util.get_blob_file_src('P711_AFB', :P1210_DNR_ID);
    
  • Dynamically size movieclip to adjust the width and height of the text string

    Hello

    I'm trying to size a movieclip dynamically to adapt to the size of the height of the strings a text and width (this text is inside the movieclip)

    Here is my code so far...

    var Font1_ = new Font1();

    var Format2:TextFormat = new TextFormat();

    Format2.size = 36;

    Format2.align = TextFormatAlign.CENTER;

    Format2.font = Font1_.fontName;

    var MessageBox:MovieClip = new MessageBoxMC();

    MessageBox.Text1.defaultTextFormat = Format2;

    MessageBox.Text1.embedFonts = true;

    MessageBox.Text1.antiAliasType = AntiAliasType.ADVANCED;

    MessageBox.Text1.wordWrap = true;

    MessageBox.Text1.width = 800;

    MessageBox.Text1.height = 400;

    MessageBox.Text1.textColor = 0xFFFFFF;

    MessageBox.Text1.cacheAsBitmap = true;

    MessageBox.Text1.mouseEnabled = false;

    MessageBox.Text1.text is a String ("use the arrow keys to move");.

    MessageBox.width = MessageBox.Text1.width;

    MessageBox.height = MessageBox.Text1.height;

    MessageBox.x = 400;

    MessageBox.y = 200;

    addChild (MessageBox);

    This does not work for me... someone knows the best way to do it?

    I want also the text is centered in the movieclip, with a border of 2-4 pixels

    Also I'm not sure if I should use text.length? advice and comments was very well received.

    Thanks in advance!

    Essentially, you must check for a change in .textWidth or .textHeight, which are different from the .width and .height.

    This code works for me (guess a box called bottom bg and an instance of inside a moveclip and an X fg foreground text and there delimits variable shift to say what distance you want from the text box and a textFrameNudge to provide a value to tweak).

         // Resize background box
         thisBox.bg.x = thisBox.fg.x - boundsOffsetX + textFrameNudge; // I'm using .4 as the tweak value for textFrameNudge
         thisBox.bg.y = thisBox.fg.y - boundsOffsetY;
         thisBox.bg.width = thisBox.fg.textWidth + boundsOffsetX*2 +textFrameNudge*thisBox.fg.getTextFormat().size;
         thisBox.bg.height = thisBox.fg.textHeight + boundsOffsetY*2;
    
  • Get the width and height of the image

    Hi scripters

    I try to get the width and height of my image file. Here is my code

    myPicFile = File("c:\\ar.eps");

    h = myPicFile.height;

    w = myPicFile.width;

    Alert (h)

    Copy the following code generates error

    ---------------------------
    Script alert
    ---------------------------
    undefined
    ---------------------------
    Ok
    ---------------------------

    How can I get the height and the width of my image? is there another method?

    Thanks in advance

    concerning

    a you are the

    Dear Arul,

    Here, my code is in InDesign. I don't know that we get the size of the Image directly. ?

    Throught InDesign [you using the InDesign Script then] Script here I pasted the code below...

    = Image height / width =.

    myDoc var = app.activeDocument;

    myPicFile = file ("E:\\HariharaSudhan\\Blue hills.jpg");

    App.place (file (myPicFile);

    = Then u please select the Image file in InDesign and then you run the script = / /.

    mySel var = app.selection [0];

    var limit = mySel.geometricBounds;

    var height = related [2] - bound [0];
    var width = Bound [3] - bound [1];

    Alert ("Image Height:" + height + ""+"Image width:" + width);

    = End: getting the Image height / width =.

    Please let me know if you have any questions.

    Thank you & best regards

    Thierry T.R.Harihara

  • How to set the width and height of the Textarea in tabular of.

    Hello

    How the width and height of the Textarea value formatted table.



    Thank you

    Maury

    Go to the article on the report.
    go to the section of the tabular form element and the "width of the element" allows you to change the width and the 'number of lines' to change the height.

    Gus...

  • website valid W3C, initially no error reported by the developer toolbar. But by right clicking (giving the menu validation), the toolbar reports two errors: width and height. Despite the fact that each page is posted! The forum for the toolbar, this i

    website valid W3C, initially no error reported by the developer toolbar. But by right clicking (giving the menu validation), the toolbar reports two errors: width and height. Despite the fact that each page is posted! The forum for the toolbar, it's supposed to be a browser error. So, how can it be fixed? I use FF 3.6.6

    This has happened

    Each time Firefox opened

    is after upgrade to 3.5?

    http://chrispederick.com/forums/viewtopic.php?PID=8239#p8239

    You create a new profile and install only the extension Web Developer, as recommended Chris?

  • Customize the class Edittext with custom width and height

    I need a class of edittext customize where I can adjust the width and height, but I do not find such a custom class that extends the class EditField and the opportunity to set the width and height. I need to access the EditField methods also. Can we have such a class?

    I solved the problem by substituting the positioning method.

    UriField = new EditField ("", strUri, 2000, EditField.READONLY |) EditField.FIELD_LEFT | EditField.FIELD_VCENTER)
    {
    public void layout (int width, int height) {}
    Are police = getFont();
    int _fieldHeight = font.getHeight ();
    int _fieldWidth = 190;
    Super.Layout (Width, Height);
                    
    setExtent (_fieldWidth, _fieldHeight);

    }
    };

    Thank you all

  • Apex 5 display image field, control width and height on the form page

    Hello everyone,

    I try to display the image from a blob directly column on the page, it does not work well, here's my question, how can control the width and height of the screen image field, because its changing dynamically the size of the screen according to the original dimensions, I want to set the dimensions.

    Any help will be appreciated.

    Concerning

    Anil

    set the width and height attributes in the attributes of the image html elements

    for example Width = "200" height = "100".

  • How to change the width and height of the title?

    Program: First Pro CC

    Recently I create da title for my video. I noticed that when I had looked at the preview of the title and the video, the title is so blurry. My settings at first:

    SAve.PNG

    How am I able to change the width and height parameters (to make the title more high definition) , without having to create another title in replacement from that Fuzzy? I don't ask if I have to create another title and insert it in the video, and then having to erase those blurry I had to replace. How are you able to change settings of the original title, without having to make a new title? Should I go to the 'Properties' tab when there is nothing at all (as in there is no option to change the w + h title quality) to change the current settings of the title?

  • Making Photoshop buttons work reactive width and height in Adobe Muse?

    I wanted to see if anyone knows a work-around to operate the reactive width & height in Adobe Muse the Photoshop layer buttons? The option is grayed out on it gives me only the possibility for width sensitive.

    I'm looking for a work around if possible.

    Hi jeffp11233705,

    Unfortunately, the option of width and height sensitive is disabled for a touch of photoshop with layers.

    Although if you directly place one. PSD, that option will be activated.

    The best I suggest you to post that ideas for features in Adobe Muse.

    Kind regards

    Ankush;

  • Why can't I create a rectangle with width and height reagent?

    I created a rectangle with no fill. I gave it a shadow effect. But I can't not only resize with width "sensitive." Why can't resize it with 'width and height sensitive "? It seems that I should be able to do, but I can't (or maybe I'm missing something). Thank you, this should be a simple question to answer, or to present it as an improvement of the obvious feature in the next update.

    An image can be sensitive in width and height !

    So what you could do is to place an image, assign reactive width and height, then double-click it and delete the content, so you no longer have the frame empty to the left, but sensitive to the width and height :-)

Maybe you are looking for

  • Watch locked after resale - purgatory

    Hello I just sold a Apple Watch on eBay. I have reset before sending it. The buyer cannot pair because it is related to my iCloud account. I wasn't aware that aveillez was locked in this way. My watch does not appear in iCloud > parameters as one of

  • Satellite windows P850 8 several cuts Internet

    Someone knows how to fix this? Is really boring have internet cuts every 30 minutes. I called Toshiba and they said that my pc was made with windows 7, what if I installed windows 8 is my problem. Thanks to Toshiba in Spain for his great support...

  • OfficeJet Pro 8600 stopped scanning

    I have my 8600 Officejet Pro connected to my computer and use Windows 7. When I got the all-in-one, he scanned beautifully. Then one day he just stop scanning. I get an error when I try to scan which said"The HP 8600 Pro Ofifcejet not found. » I ran

  • Learning windows

    Have not used a computer since 1999 - the latest os has windos 95 (using an android Tablet for the question) - picked up a laptop much cheaper that a fee of good camera android market today (?) - comes with windows 8.1 - upgrade to windows comes with

  • Best laptop game out there?

    Hi, is anyone aware of the best gaming laptop I can find right now? The price is not really a problem at this point, I just want to see what's out there. Thank you!