Script tool and burn

Hi all!!

HOE can the engraving tool parameter: range, exposure, size, fits in a script? 

Thank you.

Janou.

range

Values: 'burnInS ' | "burnInM" | 'burnInH '.

Get script: true

Defined by script: false

Exhibition (or "opacity" in this engraving tool)

Values: 1-100%

Get script: true

Defined by script: false

size

Values: 1 to 1000%

Get script: true

Defined by script: true

Also all that can be get and set by script:

[1-500] diameter, hardness %, [- 180/180] Angle, roundness %, spacing [0-1000], Flipy Boolean, Flipx Boolean

The problem is the exhibition

My suggestion would be to do this workaround:

For each tool, create a group of presets like this:

'burnInS010', 'burnInS020', 'burnInS030', 'burnInS040', 'burnInS050', 'burnInS060', 'burnInS070', 'burnInS080', 'burnInS090', 'burnInS100 '.

where "burnInS010" means opacity shadows burn 10%, etc. (you could have more precision with more opacity values, of course)

Then do the same for the other beaches in aid

"burnInM010", "burnInM020"...

"burnInH010", "burnInH020"...

"dodgeS010", "dodgeS020"...

"dodgeM010", "dodgeM020"...

"dodgeH010", "dodgeH020"...

Then by script you could pre-select the desired Preset and set the other preferences by code.

After you have ALL of the presets created, you can use this code:


// Select BurnTool with all parameters
// collected from several sources and compiled
// If the preset doesn't exist, it gives a warning, telling how to create a new specific preset so the error doesn't comes again

app.currentTool = "burnInTool";

var Range = 'S';  // 'S' shadows | 'M' midtones | 'H' highlights
var Exposure = 30;  // 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
selectPresetBurnDodge(Range, Exposure);

setBrushFeatures_Burn(150, 80,undefined,undefined,undefined,undefined,undefined);

///////////////////////////////////////// Use Range and Exposure to choose the right Preset
function selectPresetBurnDodge(range, exposure) {
    exposure = (exposure < 100) ? '0'+exposure.toString() : 100;
    var presetName = app.currentTool.replace(/Tool/,'') + range + exposure;
    //
    var Presets = getPresetList();
    var thisPresetExists = false;
    for(var v in Presets){
        if (String(Presets[v]) == presetName) {
            thisPresetExists = true;
            break;
        }
    }
    if (thisPresetExists) {
        if (app.currentTool == "burnInTool" || app.currentTool == "dodgeTool") {
            var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putName( stringIDToTypeID( "toolPreset" ), presetName );
            desc.putReference( charIDToTypeID( "null" ), ref );
            executeAction( charIDToTypeID( "slct" ), desc, DialogModes.ALL );
        }
    } else {
        alert("This Preset name '"+presetName+"' doesn't exist.\n\nCreate new " + app.currentTool + " preset.\nName:\t"+presetName+"\nRange:\t" + range+ "\nExposure:\t" + Number(exposure));
    }
}
///////////////////////////////////////// Set Brush
// Diameter [1-500], Hardness%, Angle [-180/180], Roundness%, Spacing [0-1000], Flipy Boolean, Flipx Boolean
function setBrushFeatures_Burn (Diameter,Hardness,Angle,Roundness,Spacing,Flipy,Flipx) {
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var appDesc = executeActionGet(ref);
    var toolDesc = appDesc.getObjectValue(stringIDToTypeID('currentToolOptions'));
    var brushDesc = toolDesc.getObjectValue(stringIDToTypeID('brush'));
    if (Diameter == undefined) Diameter = brushDesc.getDouble(stringIDToTypeID('diameter'));
    if (Hardness == undefined) Hardness = brushDesc.getDouble(stringIDToTypeID('hardness'));
    if (Angle == undefined ) Angle = brushDesc.getDouble(stringIDToTypeID('angle'));
    if (Roundness  == undefined) Roundness = brushDesc.getDouble(stringIDToTypeID('roundness'));
    if (Spacing == undefined) Spacing = brushDesc.getDouble(stringIDToTypeID('spacing'));
    if (Flipy == undefined) Flipy = brushDesc.getBoolean(stringIDToTypeID('flipY'));
    if (Flipx == undefined) Flipx = brushDesc.getBoolean(stringIDToTypeID('flipX'));
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID( "Brsh" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
    desc.putReference( charIDToTypeID( "null" ), ref );
    var desc1 = new ActionDescriptor();
    desc1.putDouble(stringIDToTypeID('diameter'), Diameter);
    desc1.putDouble(stringIDToTypeID('hardness'), Hardness);
    desc1.putDouble(stringIDToTypeID('angle'), Angle);
    desc1.putDouble(stringIDToTypeID('roundness'), Roundness);
    desc1.putDouble(stringIDToTypeID('spacing'), Spacing);
    desc1.putBoolean(stringIDToTypeID('flipY'), Flipy);
    desc1.putBoolean(stringIDToTypeID('flipX'), Flipx);
    desc.putObject( stringIDToTypeID('to'), charIDToTypeID( "Brsh" ), desc1 );
    executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
}
// get all Presets
function getPresetList(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var appDesc = executeActionGet(ref);
    var List = appDesc.getList(stringIDToTypeID('presetManager'));
    var presetNames=[];
    var list = List.getObjectValue(7).getList(charIDToTypeID('Nm  '));
    for (var i = 0; i < list.count; i++) {
        var str = list.getString(i);
        presetNames.push(str);
    }
    presetNames=ReturnUniqueSortedList(presetNames);
    return presetNames;
}
function ReturnUniqueSortedList(ArrayName) {
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {
    unduped[ArrayName[i]] = ArrayName[i];
    }
    var uniques = new Array;
    for (var k in unduped) {
        uniques.push(unduped[k]);
    }
    return uniques.sort();
}

Tags: Photoshop

Similar Questions

  • I have Photoshop CC... but it lacks the corrector, the task Healing Brush tool and the dodge tool and burn... am I missing something

    I have Photoshop CC, it is fairly new for... but me it is missing the Healing Brush, spot corrector tool tool and the tool dodge and burn... I missed something

    left Adobe Creative Cloud for Photoshop for beginners

  • After Effects cs5 - need to Dodge and burn tool effects in an area of an image

    Hello

    Y at - it Tools in After Effects CS5 having the same effect as " "Dodge tool" and " " "Burn tool"I have Photoshop?
    I have 2 faces de fade de "layer . « 1 "to"2 " but there are a few dark regions of layer " layer 1 " I need to clarify, because is dark. » Is there a solution or tool for the work ?





    Compose the layer 2, 4 and 5, and then add an adjustment layer or use masks that I demonstrated.

  • do I need Windows PowerShell integrated scripting tool for home computer and access to the internet, powershell

    do I need Windows PowerShell integrated scripting tool for computer and internet access

    No you didn't he need for home computer and internet access

  • Dodge and burn tool - exhibition of CS5 spring pressure

    Hello

    Can someone tell me if its possible to allow feather of pressure when using the dodge and burn tool (I have a wacom). I can do this when you use a shape tool, but not with the tool D and B. do I missed something or is - not possible.

    Thanks in advance

    j

    If this should be what you're looking for you can mark the thread as answered.

  • Help required with HARD drive recovery tool and reinstall windows 8.1 recovery discs on aspire or v15

    Hi guys. I am new to this and in total confusion. I bought a aspire v15 nitro preloaded with win 8.1. I've updated to win 10 but decided to decline to 8.1. Process has failed and I got the blue screen error msg and a useless piece of plastic. I had to buy a set of recovery disks (reluctanlty at a cost of £51 - yes I know stupid me). I tried to reinstall from the disc, but I suck. I have acer cntacted and they have now tell me that I have to first download and install and disk formatting tool. I am confused now totally frustrated and quietly seething. I need help, I'm outta my depth here. Can anyone provide assistance as to what HD formatting of tool to download - what should I do with it to finally lift the laptop and run again? Your help is greatly appreciated!

    If you recovery media standard windows options, you can try to select "repair my computer" - Troubleshooting - Advanced Search - command prompt
    Once in the command prompt type
    DiskPart
    then, type diskpart
    list disk
    take note of the correct disc ID to clear
    type
    Select disk x
    (where x is the ID of your disk to erase)
    type
    clean
    Type exit

    If you do not have this option:

    http://www.partitionwizard.com/Partition-Wizard-bootable-CD.html
    Download the .iso file
    then use a software to burn CD/DVD or USB flash drive and burn the .iso file
    Once completed, put the CD/DVD/USB on your PC, boot from CD/USB (maybe you need to start under the legacy if you have the UEFI BIOS)
    Press F12 on startup and choose the CD or USB
    at the level of the Office
    Select your HARD drive
    Right-click on the icon for your HARD drive and choose completely erase your HARD drive (it will erase any GPT or MBR at the disk), choose the first option after selecting the clear function.
    Exit the wizard partition, boot from the BIOS, UEFI return of the Legacy (if you have the UEFI BIOS) and boot from media erecovery.

  • solution for the script error and what it

    I'm not very tech savy, so I need details on how to solve this problem and what he does. I got a script error the reads as follows:

    Online: 52

    Char: 2

    Error: Cannot move the focus to the control because it is invisible, not enabled, or of a type that does not accept focus.

    Code: 0

    URL: file:///C:/Program%20Files/HP/Digital%

    20Imaging/skins/HP1/UL/js/unload_startup.js

    Please be gental with the solution, as I said I'm not a programmer at all. I recently had a virus and my computer "cleaned" and had reinstalled it. So this might help explan the problem. I have also problems with Windows media player.

    When I encountered this problem I have installed software from a disc to a new digital camera.

    Thanks in advance for your help

    Hi famcole1,

    1. do you have an Antivirus installed on the computer software?
    2. what questions do you have with Media Player?

    Disable the script debugger, and then check the issue.

    a. open Internet Explorer, click Tools and then click Internet Options.

    b. in the Internet Options dialog box, click the Advanced tab.

    c. Click to select the script turn off debugging (Internet Explorer) and disable script debugging (other) check boxes, and then click to clear the display a notification of every script error box.

    d. click OK to close the Internet Options dialog box.

    Review the links below, I'm sure that this will help solve your problem better:

    How to fix script errors in Internet Explorer on Windows computers?
    http://support.Microsoft.com/kb/308260

    To keep your computer safe in the future, you can useMicrosoft Security Essentials , which is a free software from Microsoft, which provides coverage in real time to your PC at home that protects against viruses, spy software and other malicious software.

    Kind regards
    Manasa P - Microsoft technical support.

  • Eclipse 12.1.3: "WebLogic Scripting tools require Weblogic Target Runtime"

    Hi all

    I try to prepare the new Eclipse 12.1.3 with WebLogic 12.1.3 and at the last step, I get the following error:

    -> WebLogic Scripting tools require Weblogic Target Runtime

    It seems that everything is OK, but eclipse displays this error. Is there a solution for this error?

    Kind regards

    Ministry of health

    Hi Kosta,

    Thanks for your reply. The problem is resolved. In my case with these steps:

    1 - try first to cancle

    2. create a new project of facets again

    3. I get the same error, but I could create project for WLST

    4 - later in Eclipse--> Windows > preferences > PyDev > interpreter - Jython

    and work...

    Kind regards

    Ministry of health

  • My free trial of Illustrator 2015 crashed and burned after 2 days of trial. How can I get my trial free back before buy you. and if I decide to buy it, will I get another version to download. As I'm not crushed version tha

    My free trial of Illustrator 2015 crashed and burned after 2 days of trial. How can I get my trial free back before buy you. and if I decide to buy it, will I get another version to download. As I don't want the broken version that will not reopen.

    Cindy,

    I believe you can reinstall right under the trial, use preferably the full path in three steps (the otherwise strange things may persist):

    (1) uninstall (check the box to delete the preferences),

    (2) run the cleanup tool, see the link below,

    (3) reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

    The cleaning tool works for all versions of CS3 on (you can see the top of the page).

    Here are the instructions for use, including individual applications:

    https://helpx.Adobe.com/creative-cloud/KB/CC-cleaner-tool-installation-problems.html

  • Dodge and burn similar to LR

    How can I optimize Dodge and burn similar to Lightroom. If I go to the same area in Lightroom on photo the dodge or burn remains the same. In Photoshop do the same thing it intensifies. How can I mimic Lightroom technique for this? Example: I want to enlighten the eyes +.25 and a few passes with the brush to make sure that I had each pixel will work. PS a few transforme.25 maybe passes 1.75 if I spend on it several times. Where can make adjustments and does this work for other tools like the brush.

    Use a fill layer to 50% gray with the blend mode of overlay the value. Then use the tool brush (B) with white and black to low opacity.

    I'm going to do this move from photography to Photoshop General Discussion

    Benjamin

  • Preferences option "vector Snap tools and transforms to the pixel grid" on the options bar

    Hello! Is it possible to put the preferences option ' Snap vector tools and transforms to pixel grid "option vector toolbar.

    I draw web-graphics and icons. I often use vector layers for scalable graphics. So, sometimes I need snaps to the pixel grid is turned on, sometimes I need it's off?

    Whenever I press Ctrl + K to open the dialog box Preferences checkbox enabled. It will be great to have shortened keyboard or button in the options bar to LENGTH fast.

    Is an idea?

    P.S. sorry for my English ^)

    You can record an Action and assign a keyboard shortcut.

    (Another option would be a Script that you could use in a panel of html5, but maybe it's not worth it).

  • I would like to cut out an object using the Quick Selection tool and drop the object into another image. Can anyone help

    I use background images and want to cut objects of other JPEG files using the Quick Selection tool and drop them in the background image. So if I have a banana and select the object, I need to copy the banana in the context on the other.

    Hope it makes sense.

    Gary

    Select the banana. Right click > copy layer. Move tool. Click and drag to the other file. Place on the image.

    GOLD: load history and banana in a stack (file > Scripts > load file in the stack). Select banana and layer for copy or create the layer mask.

    Benjamin

  • Copy an existing DVD and burn

    I've been on a learning curve and has completed several projects, I learned recently how to archive a project so that I can return to it after that she was burned and able to burn another disc at a later date. However, I have a project that has been burned to a disc, and I have not the saved project so that I can go back to the archives and burn another disc.

    Is my question there a way I can "copy" the existing drive so that I can burn it again to another blank DVD? Or do I have to re-create this project again? Thank you

    PS, I did the project with Adobe 8 and still this program on my computer, however I have a new Adobe Photoshop and first 12 items, ready to download.

    AuroraAz

    Thanks for the good news of the successful copy of your DVD-VIDEO to DVD disc.

    I suspect the part on

    When he finished he did not "come back" at the beginning, I had to leave the game remaining empty DVD and she returned at the beginning.

    was related to something which was on rails after the end of your presentation.

    a. extend the Timeline with the - + cursor above the timeline.

    b. press the end key on the main keyboard to the computer and to determine where the 'end' is in line with the programme.

    c. remove what's never on this "end".

    d. after the removal of the debris or else detect you, then press the end key to make sure that it ends at the last point planned to your presentation.

    Please let us know if it worked for you.

    On the other issue, the 'script', without more details, I don't know what happened there.

    Thank you.

    RTA

  • By script tool install abandoned or forgotten in ESX 4 generator?

    I know that, in version BETA RC of ESX 4, generation tool of numerical facility you would find by allowing a tomcat configuration was not available. He said that this should be available on the version of ESX 4 GA and I have not found any mention/mention in the documents.

    In previous versions of ESX, you would change the following file:

    /usr/lib/vmware/webAccess/tomcat/apache-tomcat-5.5.17/webapps/ui/WEB-INF/struts-config.xml
    

    comment on the scriptedinstaller module and restart the webAccess service.

    By the RC release, I noticed the structure was not similar and that the struts - config.xml existed under the standard repertoire is no longer but that it found another file that seems as he controlled webAccess page and which can be seen at: /usr/lib/vmware/hostd/docroot/index.html

    When you open a file, you will notice the following line:

         <!-- XXX: Bug 270062
    
          <h4><script type="text/javascript">document.write(ID_ESXServerSI);</script></h4>
    
          <p><script type="text/javascript">document.write(ID_ESXServerSIDesc);</script></p>
    
          <ul>
             <li><script type="text/javascript">document.write('<a href="/ui/scriptedInstall.do">'+ ID_LogInSI +'</a>');</script></li>
          </ul>
          -->
    

    This has existed in the RC BETA and still does in the GA release and uncomment comments and restarting the webAccess service, you will get a link for the scripted Installer but modules aren't always load.

    Someone at - he managed to get this working or has been deleted or forgotten?

    FYI - I know that you can take a look at KS.cfg previous and a part of the documentation provided in the installation guide to create a new kickstart for ESX 4, but the question is about the generation tool and if it's been deleted.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

    If you find this information useful, please give points to "correct" or "useful".

    Sorry again - btw, I found this in the release notes at

    http://www.VMware.com/support/vSphere4/doc/vsp_esx40_vc40_rel_notes.html

    as I wanted it too this feature...?  :|

    • VMware Web Access kickstart script Builder is not supported
       
      For installation ESX scripted, the generator script VMware Web Access is not available in vSphere 4.0.
       
       
      Solution: You can use the startup script that is automatically generated
      After an interactive installation. After the first interactive
      ESX installation, the installer creates an * /root/ks.cfg * script in the ESX filesystem. This text reflects the choices you make
      in the interactive installation. For a complete list of supported


    commands and a sample script, see the ESX and vCenter Server Installation Guide.

  • Dodge and burn overkill CS5

    I don't know if anyone else has this problem, but, since the upgrade to CS4 CS5 versions, I have noticed a big difference in the dodge and burn tools.  In CS4 I would always set them to 10% so that I'd get subtle changes - accumulate gradually to how I wanted to look at changes.  Now, the changes affecting even as little as 5% are drastic, especially the dodge tool.  Yes, I protect the selected tones.

    Any ideas?

    Did you change the range of the drop-down lists in CS4 or CS5? Maybe you have changed the spacing of the brush, try resetting the Dodge/Burn tools in right + clicking on their icon in the Options bar (upper-left)

Maybe you are looking for

  • Why FF spends CPU both on google search results?

    I have the problem that Firefox spends more than 10% of CPU on the display of a static page like google search results. I use Firefox on a late 2012, MacBook Pro and the constant use of the CPU so drains the battery and produces a lot of heat after s

  • Atheros Driver for DV7-1245dx.

    Hello, I recently had a failure of the HD on a DV7 1245dx. Put in a new HD and install Vista Home Premium 32 bit, I went to the HP website to solve my driver problems. All the drivers seem to be working fine except for one problem. HP does not have m

  • MAC - impossible to find "Pictures folder" / Iphoto photo library and open the Iphoto Application at all

    Hi all I have Apple devices for a few years now, but I still find it difficult to understand the system. I want to put an end to that, so I finally registered. I try to look at the tutorials and read the forums, but I can't find concrete answers to m

  • Stable aid application: change of visa of 8.5 to 8.6 refnum cleaning?

    Hello I had big problems to sort some problems of communication series in a very broad program with parts dating back to Labview 3. A few mistakes intermittent comms started occurring after the upgrade of LV8.5 to 8.6. After much headscratching it se

  • Highlight string and boolean set on front panel

    I feel like this should be very simple, and I did a lot of research and can't find an answer In my program I get channels and see if they are active or not. If they are active, it is a Boolean that turns on. What I want to do is display with a shared