Set preferences for Unity (Javascript)

I can't find a way to set the unit for Illustrator CS6/CC using JavaScript preferences.

I found that it works (setting for stroke units):

var units = 2; 0-inch, 1-milllimeters, 2-points

app.preferences.setIntegerPreference ("strokeUnits", units)

But I want to put the units of the rule ("general" in the interface), and it does not work:

app.preferences.setIntegerPreference ("rulerUnits", units)

Any help?

Peter

Hello

We can define unit of rule by using the key "rulerType" not "rulerUnit".

Check script below:

units of var = 0; (0-6)

app.preferences.setIntegerPreference ("rulerType", units);

/ * List of units

0: point

1: pica

2: inch

3: mm

4: cm

5: H/Q

6: px

*/

Ten

Tags: Illustrator

Similar Questions

  • Set preferences for 'notifications' in El Capitan

    How to set preferences for the "notifications" in El Capitan?

    System Preferences--> Notifications.

  • Set preferences for all users

    I have an OS X lab with VMware Fusion 5 Professional installed. I would like to have the same default preferences for each user that connects to the machine. I tried to copy the preference plists, but there seems to be no effect on other users. Has anyone found how to do this?

    By default, VMware Fusion suspends a Virtual Machine that is not explicitly shutdown since in the guest operating system, i.e. When you close the VMware Fusion.app all in a Virtual Machine is running or by clicking the close button in the display of the Virtual Machine window.  This behavior can be changed in the General preferences of VMware Fusion and in doing so, it writes the following to the "${USER} / Users / / Library/Preferences/VMware Fusion/preferences ' file.

    pref.vmplayer.exit.vmAction = "poweroff"
    

    Yes, VMware Fusion uses 'vmplayer' in this preference and the specific user file is not global.  And I do not know if this can be set on a global scale however a login script may ensure that adjustment existed when each user logs on.

    The other option is to set the following in the configuration the target Virtual Machine's .vmx file.

    suspend.disabled = "TRUE"
    
  • Set preferences for the text tool

    Is there a way to change the preferences for the TypeTool? For example, when used to create a frame, can I put it so that the vertical justification is Center instead of top? At the present time, I have to use the B command to bring up a Panel to make this change. CS4 on Mac.

    You don't talk about preferences for the text tool. It would be for the character or the formatting. You talk about preferences for a frame type.

    You must create an object Style (window > Styles > object Styles) which creates a frame in the way that you want and apply like a style of object.

  • How to set preferences for what happens / appears when you click the new tab

    I used to have seen my sites more used, but for some reason that I don't have more since I uninstalled a toolbar that has become the default search engine itself!
    So now, I want that, instead of having an error message; the new tab display a tab blank when I click on button ' + '!

    You can check the browser.newtab.url pref on the topic: config page and set this pref to your preferred the new tab page.

    • the new default tab with the tiles page is on: newtab
    • the default homepage is Subject: Home
    • to a blank page, you can use Subject: vacuum

    The pref browser.newtabpage.enabled must be set to true to use the page defined through browser.newtab.url like the new tab page.

    See this article on the page tab (topic: newtab):

  • How to set preferences for the network folder in VMWare Fusion

    I use VMWare Fusion to run a virtual PC on my Mac which I use QuickBooks to MUCH for my business. I'm trying to get the Writer of Intuit, a complementary product to work, QuickBooks statement but there need me to change the security settings on the "network drive" my files are on. Here's what he said I should do:

    "If you choose a network folder for a default save location, the system

    administrator must make some specific changes on the network and address

    some questions of local security. To open the QMD files over a network, the

    administrator must grant full trust to any executable code or to

    all Microsoft Office documents in the folder where the file qsm

    stored. Either the type of access requires a change in the code access

    security strategy for .NET framework on the computer. The

    administrator must ensure that these changes are compatible with any

    other local security policies. For more information, see Networking SIE

    and multiple users. »

    Help! How can I do this?

    Thank you

    Dawn

    I don't use QuickBooks but Google search for EIS networking and multiple users hit Albums is support QuickBooks - statement of Intuit writer (SIE) network and multi-user functionality and he said: 'because we do not recommend this, the files must be local when you work with them. It is necessary to copy the file IF you want to work with on your local disk, and when the finished work with the file, copy it to the server. "so this means to copy the file in the folder shared VMware on the Windows filesystem, as an example the office that you use also the feature and then mirrored folders when it copy in the shared folder of VMware.

    If you don't want to do that, then it seems that the major changes that need to be taken are on the side of Windows and not really a matter of VMware Fusion in itself however in the perspective of VMware Fusion, VMware shared folder should be set to read & write and is the only permissions that VMware Fusion has no control on in this regard.  Another aspect of the permissions would be on OS X and the permissions on the folder as a shared folder on VMware normally, only the owner has read & write permissions and other default permissions for reading only.  You may also need to change the permissions to read & write however what I read after looking at a few other answers the main objective research to resolve that matter Windows itself using the .NET Framework Configuration tool.

    So I really do not see this as a matter of VMware Fusion and see it in the totally as an issue security policy mainly on Windows, although the other mentioned permissions must be at least check and then only modified if necessary after that making the necessary changes on Windows is not sufficient even though as long as the folder shared VMware is set read/write & I think the rest this is totally of the Windows side.

  • Cannot set color for comments JavaScript codes

    The color for my comments JavaScript and JQuery is silver, but looks like I did what I have to make them green:

    Comment Color.jpg

    Nobody knows what they are still money? I use Dreamweaver CS4.

    Thank you

    Yes.  I just did again, by clicking OK twice to exit completely.

    But I got it!

    The code JavaScript is inside a php file, and Dreamweaver color controls have a special section for JavaScript in PHP, that is totally separate from the JavaScript right.

    Thanks for making me look more closely.

  • How to set preferences of creation for all users - machine laboratory at the University?

    I'll put up for our University editing room which has a CC license "per machine". It is a PC facility. This machine will be used by a class of students who will register with their own credentials. I need to set preferences for the first (video output, default working space planning etc. discs) so that it is the same for all users connecting from us want a consistent configuration for educational purposes and not want to help every student to configure so that it displays correctly on monitors. Is there a way to save this default setting for each user?

    The most important of them is the preferences - reading to set up the second monitor.

    Post edited by: Bruce Cooke

    Just copy the files preference and workspace of your user folder.

    Mylenium

  • Determine the Version of InDesign (for equivalent javascript applescript)

    I have next to no knowledge of javascript, or where to go for help? I have an Applescript easy I want to convert it to javascript.

    For starters, anyone knows the equivalent following javascript code for this line of code:

    the version of the application 'com.adobe.InDesign' myVersion id value as string

    The other part of the script, I might be able to understand mine. Unless at some point given I have to find a PC user to provide the path to the folder 'en_US' of the InDesign preferences folder.

    With the help of a File.openDialog (); would get around not knowing the path hard-coded, but defeats the purpose and effectiveness of the script. I want the end user to be able to assign a shortcut to this script, which would open so all their files in InDesign library with a simple keyboard command.

    -Determine what version of InDesign, running as a string

    Tell application id "com.adobe.InDesign".

    activate

    the version of the application 'com.adobe.InDesign' myVersion id value as string

    -Display dialog myVersion

    If myVersion begins with '6' then

    myVersion set to "version 6.0".

    Otherwise, if myVersion begins with "7.0" then

    myVersion set to "Version 7.0".

    Otherwise, if myVersion begins with "7.5" then

    myVersion set to "Version 7.5.

    Otherwise, if myVersion begins with '8.' then

    myVersion set to "Version 8.0".

    Otherwise, if myVersion begins with '9.' then

    myVersion set to "Version 9.0.

    Otherwise, if myVersion begins with "10.0" then

    myVersion set to "version 10.0.

    Otherwise, if myVersion begins with "11.0" then

    myVersion set to "version 11.0.

    end if

    tell the end

    Tell application "Finder".

    Try

    the ((chemin d'accès àle dossier de l'utilisateur actuel en tant que texte Unicode) folder this_folder value & "Library: Preferences: Adobe InDesign:" & myVersion & ": en_US:Valpak_Libraries:")

    in case of error

    Tell application "SystemUIServer".

    activate

    display dialog "cannot find the VPLibraries file. Or maybe it's in the wrong place? "& return & return &" make sure all your libraries {files} reside in: "& return & return &" Admin > library > Preferences > Adobe InDesign > "& myVersion &" > en_US > Valpak_Libraries "buttons {"Cancel"} default button"Cancel"with icon stop

    tell the end

    try to end

    tell the end

    Set question to {'different'}

    Tell application id "com.adobe.InDesign".

    activate

    Repeat with i in this_folder

    Try

    i name the value theName

    If theName contains question then

    I opened

    end if

    try to end

    end repeat

    tell the end

    Hi Jeff,

    for ExtendScript (JavaScript), you can search for properties, values and functions etc.pp. here:

    Excellent documentation of DOM of Jongware. Go for chm files, if you want to search in offline mode:

    InDesign JavaScript help

    And by Gregor Fellenz DOM documentation:

    InDesign ExtendScript API (8.0)

    InDesign ExtendScript API (10.0)

    InDesign ExtendScript API (11.0)

    If you search for 'application', you'll notice, this is a 'version' "app" object property

    var myVersion = "version"+" "+parseFloat(app.version);
    alert(myVersion);
    

    No ifs and ifs remains necessary.

    Uwe

  • Profile of preferences for better performance

    Profile of preferences for better performance

    Hello, I work with image sequences a lot, and I use scripts too much and I often have to change the settings.
    I made a set of preferences for those times where I work like this and not have to manually change the preference.
    I have some properties but im missing a bit.

    I have:
    app.preferences.createFirstSnapshot = false;
    app.preferences.maxRAMuse = 80;
    app.preferences.imageCacheLevels = 1;

    But I did those worked:
    app.preferences.numberofHistoryStates = 3;
    app.preferences.savePaletteLocations = false; is it? or rememberPaletteLocations
    app.preferences.showToolTips = false;

    and I could not found activate version Cue anywhere (including the JavaScript script reference)

    Thank you in advance, if possible direct me to a good reference, thank you.

    ~ l3ny

    These are functions derived from ScriptListener. You'll probably want to change the names and set them up.

    X

    function ftn1() {}
    function cTID (s) {return app.charIDToTypeID (s) ;};}
    function sTID (s) {return app.stringIDToTypeID (s) ;};}

    var desc13 = new ActionDescriptor();
    var ref9 = new ActionReference();
    Ref9.putProperty (cTID ('Rprp'), cTID ('FlSP'));
    Ref9.putEnumerated (cTID ('capp'), ('Ordn') cTID, cTID ('Trgt'));
    desc13.putReference (cTID ('null'), ref9);
    var desc14 = new ActionDescriptor();
    desc14.putBoolean (sTID ('assetManagementEnabled'), false);
    desc13.putObject (cTID ('), cTID ('FlSv'), desc14);
    executeAction (cTID ('setd'), desc13, DialogModes.NO);
    };

    function ftn1() {}
    function cTID (s) {return app.charIDToTypeID (s) ;};}
    function sTID (s) {return app.stringIDToTypeID (s) ;};}

    var desc16 = new ActionDescriptor();
    var ref11 = new ActionReference();
    Ref11.putProperty (cTID ('Rprp'), cTID ('CchP'));
    Ref11.putEnumerated (cTID ('capp'), ('Ordn') cTID, cTID ('Trgt'));
    desc16.putReference (cTID ('null'), ref11);
    var desc17 = new ActionDescriptor();
    desc17.putInteger (cTID ('HsSt'), 3);
    desc16.putObject (cTID ('), cTID ('CchP'), desc17);
    executeAction (cTID ('setd'), desc16, DialogModes.NO);
    };

    function ftn1() {}
    function cTID (s) {return app.charIDToTypeID (s) ;};}
    function sTID (s) {return app.stringIDToTypeID (s) ;};}

    var desc19 = new ActionDescriptor();
    var ref13 = new ActionReference();
    ref13.putProperty (cTID ('Rprp'), sTID ('interfacePrefs'));
    ref13.putEnumerated (cTID ('capp'), ('Ordn') cTID, cTID ('Trgt'));
    desc19.putReference (cTID ('null'), ref13);
    var desc20 = new ActionDescriptor();
    desc20.putBoolean (cTID ('ShwT'), false);
    desc19.putObject (cTID ('), sTID ('interfacePrefs'), desc20);
    executeAction (cTID ('setd'), desc19, DialogModes.NO);
    };

    function ftn1() {}
    function cTID (s) {return app.charIDToTypeID (s) ;};}
    function sTID (s) {return app.stringIDToTypeID (s) ;};}

    var desc22 = new ActionDescriptor();
    var ref15 = new ActionReference();
    ref15.putProperty (cTID ('Rprp'), sTID ('interfacePrefs'));
    ref15.putEnumerated (cTID ('capp'), ('Ordn') cTID, cTID ('Trgt'));
    desc22.putReference (cTID ('null'), ref15);
    var desc23 = new ActionDescriptor();
    desc23.putBoolean (cTID ('PltL'), false);
    desc22.putObject (cTID ('), sTID ('interfacePrefs'), desc23);
    executeAction (cTID ('setd'), desc22, DialogModes.NO);
    };

  • Set preferences to circumvent the new PDF Viewer

    My Firefox preferences for all types of PDF files are set to "always ask" which is what I want. What happens instead, is that they open automatically (very slowly) in the new Firefox PDF viewer. I want to have what I used to have: the ability to decide if you want to open or save, if I choose to open, taking place in Acrobat or Reader. I realize that I can (at least theoretically) set preferences will automatically open in Acrobat, but this isn't what I want. Is it possible to set preferences if I still get the functionality I had before the upgrade to Firefox 19? (I use Firefox on Mac 19.0.2). Thank you.

    Please also make sure that the default action for the entry named portable document (pdf) format in the preferences > applications tab is set to always ask. Then it should work as expected...

    (the screenshot is taken under windows but it will look on your system).

  • Is it possible to set up for multiple users on the same computer to avoid entering the e-mail and the password

    Original title: Multi users

    Is it possible to set up for multiple users on the same computer to avoid entering the email and password every time that a new user want to check emails?

    Hello

    Welcome to the community forums of Microsoft and thanks for posting the question. According to the description, you need help in the creation of multiple user accounts. I've surely you will help find a solution on the issue.

    What is the operating system installed on the computer?

    User accounts, several people can easily share a single computer. Each person can have a separate user account with unique settings and preferences, such as a screen saver or desktop background. User accounts control files and programs users can access and what types of changes users can make to the computer. As a general rule, you'll want to create standard accounts for most computer users.

    If you use Windows Vista or Windows 7, see the article below:

    Create a user account

    http://Windows.Microsoft.com/en-in/Windows7/create-a-user-account

    http://Windows.Microsoft.com/en-in/Windows-Vista/create-a-user-account

    For Windows XP users:

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783?WA=wsignin1.0

    Hope this information helps. Answer please if you have more queries about Windows.

  • HP Deskjet 1051: HP Deskjet 1051 set preferences

    I don't know how to set my preferences for my HP Deskjet 1051.  I want to print on both sides of the paper, and I don't see where it says that in the settings.  Can someone tell me please how to do this?  Thank you.

    Hi @cleo44,

    Welcome to the Forums of HP Support! I see that you do not want to print on both sides of the paper with your HP Deskjet 1051 and the Windows 7 operating system.

    After taking a glance at your User Guide on Page 10, it says:

    ' NOTE: you can print your document on both sides of the paper, instead of one
    side. Click Advanced on the paper/quality or the tab layout. Of the
    Pages to print menu choose print odd Pages only. Click OK to print.
    After the odd numbered pages of the document were printed, remove the
    document from the output tray. Reload the paper in the paper tray with the White side
    facing upward. Back to the Pages to print drop-down list and select print even
    Pages only. Click OK to print. »

    See also here:

    Printing and changing Print Settings (Windows)

    I hope this helps, if you have more questions feel free to ask.

    Thank you

  • Material & fixed issues in "FBX for unity."

    There were some messages referring to specific material questions when you download a model of fuse from the Mixamo website for the unit, but I thought it would be good to collect them in one place and hope we can get an official commentary when expect fixed.

    Overview of the issues:

    1. All materials are assigned to the default material in the unit, the value 'transparent' mode, which is obviously incorrect for all opaque elements (done teeth show through the face, etc.) and also for hair (who seem to need the 'fade', like 'transparent' option gives a strange shadow around the object).
    2. Transparency for each material is stored in a separate "opacity" texture, but for the unit, it should be cooked in the alpha channel of the diffuse texture. Especially a problem for eyelashes and hair.
    3. Eyelashes are affected in the same material as the body, but they require a transparent.
    4. Specular and glossy are the distinct textures, but for the unit should be combined into one, with spec in the R channel and brilliant in channel A.
    5. All documents by default 'Standard' shader, but with specular and glossy as long as they are, the shader 'Standard (specular installation)' seems to be the correct option.
    6. Eyeballs appear to require a hardware configuration that is different than anticipated, although I'm not sure what would be 'okay', as whatever it either by using the provided spec/chandelier doesn't look good for me.

    The steps, as I am currently on each importation of a character:

    1. Download the fuse Mixamocharacter, making sure to choose "FBX for unity."
    2. Place your .fbx inside a new subfolder in your unit project assets. (It will generate a lot of files to sit alongside your .fbx, so I find it very important to assign a subfolder for each character to the front).
    3. The unit will ask you to 'fix' the normal textures so that they import as such. Go ahead and let him do.
    4. Place your character in a stage of trying to work with them. You will notice a lot of questions.
    5. In Photoshop, make a copy of each diffuse texture (body, hair, each item of clothing...) and (using a mask) paste the contents of the corresponding texture of the "opacity" (grey levels) as the transparency for this copy. (I've usually save it as "_DiffuseOpacity" next to the originals. Do not replace the original textures or active refreshment will destroy your work).
    6. Similarly, a copy of each specular and place the texture of gloss (grey levels) correspondent as transparency.
    7. In the unit, apply to these modified copies (diffuse opacity + and spec + gloss) to each corresponding material. (Spec/chandelier should not yet be assigned.)
    8. Select each texture diffuse opacity + in the hierarchy and tick "alpha is transparency" in the Inspector, then 'apply '.
    9. Select each material and change the shader 'Standard' to 'Standard (specular installation) '.
    10. For the opaque body and clothing materials, change "made" "Opaque". For hair, set it to 'Fade '.
    11. In unity, make two copies of the material of the body and their name for "eyelashes" and "eyes".
    12. Assign the material 'eyelashes' purpose of 'Eyelashes' under the root of your character. (You can only do in places or if you do a prefabricated character first, not with the model it is located in your assets).
    13. Assign the material 'eyes' to the 'default' object under the root of your character. (It's a mesh without a proper name for some reason any...)
    14. Change the material 'lashes' to set the Mode 'rendering' to 'Fade '.
    15. (Not sure) Change the material "eyeballs" to... (I love going back to 'Standard' liner, by disabling the metallic texture and playing with the sliders he manually.) Not sure what is 'correct' however.)

    From this point, your character should look on the right. It is quite a lot of steps! They are all little things, however, and I hope that Adobe can solve some in their pipeline to make our lives easier.

    Question for Adobe staff: can you comment on all these problems, whether or not they can be fixed in the pipeline of Fuse / Mixamo.com and when we might see these corrections?

    5.3.1 the unit

    Fuse Adobe Preview 2015.1.0

    Hi Jason - sorry I missed in response to additional questions.  Let me see what I can answer.

    Dethrone export pipeline:

    -C' was sort of an experience at the moment.  Ideally, we would like to have presets that will give you exactly what you need for these different applications, but it requires a bit of work to keep up to date on our end.  This experience that we didn't have enough time to really do things, but we will work to improve it!

    Auto-Rigger / creative cloud of the Interface:

    -Cannot say exactly!  But we certainly keep the auto-rigger autour, you will have access to it.  Where it will be housed can change.  Fuse of rigging and the auto-grimpeur (custom templates) could get separated at some point since fuse rigging has many more features that the platforms non - Fuse only.

  • Connection closed - is there a SQL Developer Tools > setting Preferences?

    Is there a way to set a Pref that will keep my connections open (for long periods of time)?

    Hi Chuck,

    No preference for this, but, as far as I know, a third-party extension should be a help for versions of SQL Developer to 3.2:

    SQL Developer Extension Keep-Alive created!

    For 4.0, the third-party developer will have to update the extension.  Do not know if it took steps again:

    Keepalive Developer SQL does not work in 4.0

    Kind regards
    Gary

    SQL development team

Maybe you are looking for