How to get or set units?

Hey guys!

I have a few extensions that measure the width and the height...

But if the

Edit > > Preferences > > units are in centimeters

the result of the measurement will be different than in pixels faaaarrr

as:

43 in cm

500000 in pixels...

y at - it an option to get the type of units or set permanently or temporarily?

I found this one, but it didn't do anything:

app.scriptPreference.measurementUnit = app. MeasurementUnits.PIXELS;

any help would be appreciated!

Thank you!!

Ben

app.preferences.rulerUnits = Units.PIXELS;//sets the units to pixels
var whatUnits = app.preferences.rulerUnits;//gets whatever the current units are.

Tags: Photoshop

Similar Questions

  • How to get and set the length and the width of the content of the layer?

    How to get and set the length and the width of the content of the layer

    All layers are packed not equal. a layer as adjustment have no limits. Layer to smart object can have two different sizes. The size of the object and the size of the object may be transformed. All smart object layers have an associated transform. To transform a smart object layers you need to work with the size of the object the generated pixels fot the layer. Text layer can be resized with a transform or by changing the font size. Pixelated layers are resize via a transformation.  The script method is resize.  When you resize the number of pixelsits made by interpolation. You can specify what method to use or set Photoshop interpolation preferably by default.

    There is also a bug in Photoshop scripts if you pause the story said make a selection and use resize. Photoshop will properly support up to a State before where you suspended history. This bug seems to be in all versions of Photoshop.

    If you look ate the script in my bug report, you should get a good idea of how to resize a layer.

    Photoshop: Bug Script resize the rear paper folded to a history State

  • How to get and set values a HSlider

    Hello

    I haven't used flex for a while and I'm a little slow today.  My question is simple: how to get and set my HSlider values in a class.  My HSlider lives in an mxml file and class lives in a separate actionscript file.  First of all, I want to get the value of the hslider.  I use property change in the hslider to call a method in my class called Update(. ) In my class, I have the function called Update() and Interior using the id of the cursor to get the value of it.  The compiler is complainiing of 1120: access of undefined property hslider. I gave an example of pseudocode below:

    MXML

    < mx:HSlider id = minimum "hslider" = "0" maximum = "100" value = "100" dataTipPlacement = 'top' tickColor = '0 x 323232 '.
    snapInterval = "1" tickInterval = '10' allowTrackClick = "true".
    liveDragging = "true" change = "aClass.Update ()" / > "

    as file

    public void Update (): void {}
    myVar = hslider.value / 100.0;
    }

    Think how and then set the value of the hslider?

    Maybe the update to this other file function must accept a parameter of the event and then you can probably get this value from the event

    or maybe give the function a parameter of the cursor

    change = "AClass.Update (hslider.value)" "

    public void Update(value:int):void {}
    myVar = value / 100.0;
    }

  • How to get and set permissions of VM

    Hello

    I'm trying the new powershell CLI for VMWare ESX.

    Y at - it a way to get and set permission on a Virtual Machine, not host.

    Get - VM, I get my VM, but I do not see effective permissions on this object.

    Thanks for your help!

    No, that would be a little different.

    To create a new permission on a virtual machine, you will need using the New-VIPermission cmdlet.

    You can do the following:

    Get-VM-name MyVM | New-VIPermssion-role (Get-ferrule-name 'Admin') - main "ADDomain\ADGroup."

  • How to get Ubuntu 11 unit interface to work in VMWare Workstation

    I can't get the new Ubuntu Unity 11 work in VMWare Workstation interface.  Any help would be appreciated.

    I'm running the virtual machine with 2 GB of RAM, 2 processors and 3D graphic acceleration.  I think that it is a more powerful configuration than an old laptop on which I easily got the work unit.

    It still works, whenever Ubuntu starts, Gnome rather than unity.  This happens even if I have, that he set up on the logon screen to run Ubuntu (which is Unity) instead of Gnome.

    It's hard to find since VMWare also uses the term of the unit. Please be clear that I am wondering about the new Unity of Ubuntu 11 interface, NOT interface of the VMWare unit.

    VMware does not support what is needed to make it work in 3D and the only choice I've seen is to use unity 2D

    In a Terminal:

    sudo apt-get install unity-2d-default-settings
    
    

    See also:

    How to install unity 2D (Qt) in Ubuntu 11.04 / 10.10 ~ Web Upd8 ...

    Unity 2D is available as an Option in Ubuntu 11.04 Natty Narwhal

  • Satellite A200: How to get old setting for touchpad

    Last Saturday, I bought my A200 satellite with Vista Home Premium. I found that I could set the properties for the touchpad via Control Panel-> mouse and (on the last tab)-> advanced settings.

    A few hours later the last tab was suddenly replaced by a tab named 'Device settings' and I left there are tabs with settings for a standard mouse instead for the touchpad.

    Now, my question is: How can I get the old situation, so that I can change the settings for the touchpad?
    Michel

    Have you tried to redefine the windows about to start?
    It would be interesting to know if this will bring back the button early state.

    Have you tried reinstalling the driver for the Touchpad? Check it!
    Delete the old and after restarting again install the Toshiba page!

  • How to get the setting of audio equalizer - Acer Aspire 3970 - Windows 8

    Hello

    I have a set of Altec Lansing speakers hung on the sound board. Its a speaker setup nice for the money - but the sub has a higher than low normal output level and do not have a bass level button. In any case, after installing Windows 8 Pro I've only the standard options for enhancements such as bass boost and room correction etc. There is nothing for the taste of an equailizer everywhere are. Living in an apartment and not wanting to annoy people, I am eager to find some drivers who will give me an equalizer to play with. Neighbors of downstairs must hate me...

    Can anyone suggest how I could go about this? The only driver Acer offer here for Windows 8 are to do with TV tuners.

    Google results  <----Check these="">

    If a program specifies win - 7, but not 8 (on your box of victory-8) all run from the table rather than the metro interface. I haven't had a problem of compatibility.

  • How to get and set the size of the pool AM in life

    Hi, I want to get and programmatically, set the following parameters:


    ------------------------------------------------------------------------------

    Size of the initial Pool (jbo.ampool.initpoolsize)

    Maximum Pool size ( jbo.ampool.maxpoolsize )

    Referenced Pool size ( jbo.recyclethreshold )

    The maximum lifetime of Instance ( jbo.ampool.timetolive )

    --------------------------------------------


    In AMImpl or other place?


    Is it methods?


    Thank you.

    To get information about the pool, you can use code like this in your applicationModuleImpl

    help to dump pool statistics to log

    private void dumpAMPoolStatistics() {}

    Download the pool manager

    PoolMgr poolMgr = PoolMgr.getInstance ();

    get the managed pools

    Key of the poolMgr = enumeration. getResourcePoolKeys();

    If (key! = null) {}

    If (keys.hasMoreElements ()) {}

    can handle several pools, we will get the name of first successful

    String poolname = (String) keys.nextElement ();

    System.out.println ("pool of AM name:" + poolname);

    get the AM pool

    ApplicationPool pool =

    PoolMgr (ApplicationPool). getResourcePool (poolname);

    Journal of diagnostic AM pool

    PrintWriter out = new PrintWriter (System.out, true);

    pool. dumpPoolStatistics (new PrintWriter (out));

    out. Flush();

    }

    }

    }

    Or read Getting Application Module pool statistics to help with setting the size

    I'm not sure you can change the settings at run time. As far as I know, the pool bed settings only when it is first created.

    Timo

  • How to get the Business Unit

    Hi all
    Working in Oracle R12 Application,

    for the purchase order, I made the request,
    In the request window I select the name of the Business Unit (BU) from the values of field flex,.
    Is it possible to directly fetch or the business unit name based on the name of responsibility, load
    For example, if my liability name is xxxx then matching code Business Unit must be loaded,
    I should not select it by clicking on the field of Flex.

    Thank you.

    Hello
    As I told you before there is no automated process for this.
    Whenever you enter the value manually.

    HTH
    -Arif.

  • Reg:-how to get revision set implemented in the Org for a part number

    Hi all

    Can I know how to extract the review implemented in the org to a number based on the date of implementation of the MTL_ITEM_REVISIONS_B table

    You mean something like this?

    SELECT   msi.segment1, MAX (revision)
        FROM mtl_system_items_b msi, mtl_item_revisions mir
       WHERE msi.organization_id = mir.organization_id
         AND msi.inventory_item_id = mir.inventory_item_id
         AND msi.organization_id = &org_id
         AND msi.segment1 = '&item'
         AND mir.implementation_date IS NOT NULL
    GROUP BY msi.segment1
    

    Sandeep Gandhi

  • How to get the parameter values of a step type custom when I create file and adding a type of step seq

    I use lv 8.5 and teststand 4.0.

    I did a step type custom and recorded at the MyTypes.ini in pallets of type.

    I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.

    T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.

    But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.

    Using joint file, how to get the setting custom step type values I put in *.ini?

    Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.

    Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?

    I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.

    Everyone knows Q2?

    Thank you.

  • How to get the PDM

    I have 2 firewall PIX, 6.1 (1) and the 6.2 (2). I want to eat them through PDM. I know that I need to level at 6.3, but I don't know which is to know how to get and set PDM?

    Please direct me to a reading onlien and the software if avaialable frm the cisco Web site.

    HI -.

    Check this URL:

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2030/products_installation_guide_chapter09186a008017a421.html

    Thank you - Jay

  • get the setting of HTTP command in cfml

    How to get the setting for HTTP command in cfml?

    for example

    If the command HTTP

    GET /DATA/pg/index.cfm?lang=en HTTP/1.1

    Then, the parameter must be

    lang = en

    If the command HTTP

    GET /DATA/pg/index.cfm?lang=fr HTTP/1.1

    Then, the parameter must be

    lang = en

    Try to create a file named "cgitest.cfm" with the content:

    #cgi.query_string. #

    Go to http://localhost/cgitest.cfm?lang=en (or substitute the path on your server).

    The fact that HTTP_REFERER is filled makes me suspect that you have a redirect, such as CFLOCATION code, in your index.cfm file.

  • I'm trying to set up a second computer on my wireless connection. How to get my security code?

    Internet

    I'm trying to set up a second computer on my wireless connection. How to get my security code?

    http://www.practicallynetworked.com/sharing/xp_ics/

  • When I set uo Outlook Express, all of my emails that were on my cox mail server have been transferred to outlook express and then dissapered. Where have all my messages and how to get them back?

    When I set uo Outlook Express, all of my emails that were on my cox mail server have been transferred to outlook express and then dissapered. Where have all my messages and how to get them back?

    You did not indicate EO to leave a copy of messages on the server, so when he downloaded from the server, they have been removed from it.  Go to tools | Accounts | Mail | Properties | Advanced and check the box leave a copy on the server for the future.
     
    Steve
     

    When I set uo Outlook Express, all of my emails that were on my cox mail server have been transferred to outlook express and then dissapered. Where have all my messages and how to get them back?

Maybe you are looking for

  • Twitter videos - "the media could not be played" - Solution

    In case others have encountered this, the problem was due to the 1.5.18.1 - signed FlashBlock add-on. The solution was to add: amp.twimg.com to the FlashBlock whitelist. (I appreciate that this isn't directly a Mozilla issue, but the FlashBlock add-o

  • I can't change the automatic update settings

    I noticed recently that the automatic update of windows is no longer asked me whether to download updates. When I checked the settings via the Control Panel setting had been changed to "Install updates automatically". The toolbar is now grayed out an

  • Narrator does not work.

    very good for a I have Windows 7 Home Premium and the 'Narrator' does not work She says nothing. I checked the map his... good work Device Manager (shows no error) check the default audio output for the same Narrator audio output that tested above. S

  • Battery blackBerry 10 draining with the new operating system

    Hello... has anyone else experienced battery drain with the new OS?  I downloaded 10.2 yesterday night and plugged my Z10 into a wall outlet.  She enrolled in the 33% autonomy this morning after an hour 5 responsible... anyone else have this problem?

  • I get the following popup when I start my Acer laptop with Windows 7 - Microsoft dynamic C++ Debug Library...

    I get the following popup when I start my Acer laptop with Windows 7 and I use Google Chrome as My browser - I would like to know how to it stop what happens when windows starts. -Thank you---> Dynamic Microsoft C++ Debug Library program: C:\Windows\