Change the levels adjustment layer?

I use PS CS6 x 64 for Win7. I'm trying to find a way to change the values on a 'levels' adjustment layer using javascript. I can't find any info anywhere. Curiously, the listener script does not seek to change the adjustment layer.

Does anyone have some luck with this?

(Edit: more info)

Another way might be this function that allows you to specify inputBlack, gamma, outputWhite, inputWhite, outputBlack

setLevelAdj = function(inBlack, inWhite, gamma, outBlack, outWhite) {
  var d, d1, d2, l, l1, l2, r, r1, s2t;
  if (outBlack == null) {
    outBlack = 0;
  }
  if (outWhite == null) {
    outWhite = 255;
  }
  s2t = function(s) {
    return app.stringIDToTypeID(s);
  };
  d = new ActionDescriptor();
  r = new ActionReference();
  r.putEnumerated(s2t('adjustmentLayer'), s2t('ordinal'), s2t('targetEnum'));
  d.putReference(s2t('target'), r);
  d1 = new ActionDescriptor();
  d1.putEnumerated(s2t('presetKind'), s2t('presetKindType'), s2t('presetKindCustom'));
  l = new ActionList();
  d2 = new ActionDescriptor();
  r1 = new ActionReference();
  r1.putEnumerated(s2t('channel'), s2t('channel'), s2t('composite'));
  d2.putReference(s2t('channel'), r1);
  l1 = new ActionList();
  l1.putInteger(inBlack);
  l1.putInteger(inWhite);
  d2.putList(s2t('input'), l1);
  d2.putDouble(s2t('gamma'), gamma);
  l2 = new ActionList();
  l2.putInteger(outBlack);
  l2.putInteger(outWhite);
  d2.putList(s2t('output'), l2);
  l.putObject(s2t('levelsAdjustment'), d2);
  d1.putList(s2t('adjustment'), l);
  d.putObject(s2t('to'), s2t('levels'), d1);
  return executeAction(s2t('set'), d, DialogModes.NO);
};

Davide

Tags: Photoshop

Similar Questions

  • Only the layer below levels adjustment layer?

    How do you apply a levels adjustment layer to the layer underneath?

    Thanks in advance.

    Layer > create a mask of clipping or alt-click on the line of separation between the two layers in the layers panel.

  • When you play Chess Titans, how can I change the level of difficulty?

    When you play Chess Titans, how can I change the level of difficulty?  I keep coming back to the level where I first started.

    You can adjust the level of difficulty, animation and sound settings and more.

    1. Open the Games folder by clicking the Start button. In the search box, type games and then in the list of results, click Games Explorer.

    2. Double-click Chess Titans.

      (Do not see? Check where are my games?)

    3. Click the game menu, and then click Options.

    4. Make your choices, and then click OK.

    http://Windows.Microsoft.com/en-us/Windows7/Chess-Titans-how-to-play

  • I need to generate 3.3 V logic level Digital train of pulses with the NI PCI-6221. Can I change the level of 6221 OR logic output?

    I need to generate 3.3 V logic level Digital train of pulses with the NI PCI-6221. Can I change the level of 6221 OR logic output?

    The output cannot be changed. 5V to 3, 3V level controllers are readily available (Maxim, I think). As long as the scanning speed (etc.) is fast enough for your pulse train, even 3, 3V regulator would work. I don't know if NEITHER offers a module to condition TTL levels.

  • Minesweeper - can't change the levels - always goes back to 'Intermediate' as the first chosen

    Minesweeper - I started on 'Intermediary', and now I can't seem to change the levels - it boils down to "Intermediary" as the first chosen

    Hello

    I suggest tryuninstalling and reinstall the game and check to see if it helps:

    a. click the Start button, select Control Panel, click programs and then click turn on turn Windows features on or off. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    b. click girls games, uncheck the Minesweeper and click ok.
    3. restart the computer, follow the same procedure and check the Minesweeper.

    For more information, connect to:
    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    It will be useful.

  • MY QUESTION: IS IT POSSIBLE TO CHANGE THE LEVEL OF DIFFICULTY OF THE GAME OF CHESS TITANS? Thanks in advance.

    I got the game "Chess Titans" runs under Vista 32 bit. It works OK. But it seems impossible to change the difficulty level"of the game. The only time I was able to change the "level of difficulty" is when I installed MS Vista. I tried 'Options' - but it does not contain something immediately useful in this regard.

    Hi Provob,

    Thanks for posting on Microsoft Answers!
     
    Certainly, you can change the difficulty level of Chess Titans.
    1. Once you start the game.
    2. click on the game and then go to options.
    3. in the new window that opens, in the top right of windows, you can cursor diffculty.
    4. move the slider from left to right to increase the difficulty. There are 10 levels of difficulty from 1 to 10.
    5. Once you have customized your settings click Ok.

    * If the slider is dimmed or crashes, you can try to uninstall and reinstall the game using "turn Windows Feature On or Off.
    You can consult the following links for assistance.
    http://Windows.Microsoft.com/en-us/Windows-Vista/Chess-Titans-how-to-play
    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-features-on-or-off

    Please let us know if this helps you resolve the problem or if assistance is needed.
    It will be useful.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Change the level of internet security via cmd

    I have no internet explore installed, after update, I lost my ability to change internet options. I am not install so I need to change the level of security via the command prompt. OR could someone tell me what that update the required internet options carried out through IE8 + so I can remove it. I had access without IE before the update.

    Hello TSM Dyrus,.

    Welcome to Microsoft Community forum.

    I would be grateful if you can provide us with the following information to help us better understand the issue.

    1. After that update, you are facing problem?
    2. You did the changes recent (hardware or software) on your computer?

    According to my research and knowledge, it is not possible to uninstall Internet Explorer from your computer permanently.

    Internet Explorer is a component integrated Windows which can not be uninstalled. More recent versions of Microsoft Internet Explorer are sometimes released for existing operating systems, replacing the old version. Eventually, users can then choose to return to this upgrade. Starting with Windows 2000, it is possible to disable Internet Explorer: the user cannot launch it but its web browser engine

    remains operational for the applications that use it.

    As you mentioned that you do not want to install Internet Explorer, but want to use internet options to change the security level. You can see the steps below to start using internet options without using Internet Explorer.

    • Press window and R key at the same time.
    • This will open the run window.
    • In the Run dialog box, type inetcpl.cpl in the
    • Now, press OK.
    • This will open the internet options window.
    • Then you can select the Security tab and change the level.

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • How can I change the level of difficulty in the version of Windows 8 of spider solitaire

    How can I change the level of difficulty in the version of Windows 8 of spider solitaire?

    How can I change the level of difficulty in the version of Windows 8 of spider solitaire?

    Hello

    Press F5 on your keyboard and the options will open on the right side

    You can select the number of combinations, it

    Fun :)

  • Change the level of confidentiality OTN profile field to yourself

    I think that some of the information that appears in OTN profile are external site home of Oracle. I gave my business information there and it is translated here by OTN with level of protection of personal information for registered users. I tried to change that for yourself, but it always throws error message: Unhandled Exception. So I have to update the name of the company (as is required) in the private sector in oracle's profile page.

    Is this a bug or we cannot change the level of confidentiality for external fields in OTN profile page.

    I wanted everyone to know that I was able to reproduce this error and filed a priority ticket with the technical team. I will keep posted you.

  • How do 'Video on layer' to the new adjustment layer IT as default.

    How do 'Video on layer' to the new adjustment layer IT as default.

    Thank you

    What version of photoshop are you using?

    In recent versions, you can go to window > adjustments and click on the Clip to layer and this should be the default value after that.

  • Change the level of Logger ADF 11g

    Gurus,

    Is it possible to change the level of ADF Logger in one place in the application so that the newspaper above the threshold values are recorded, similar to the way that we do in Log4j.

    thnks
    11.1.1.5 Jdev

    You use the logging.xml for this file. In the "Application Server Navigator" open the integrated WLS, right-click on it and select "Configure Oracle Diagnostig slaughter". Small opens the correct logging.xml file that you changed through the built-in user interface.

    Timo

  • Change the level of redundancy

    I have a RAC database, using 1 disk group.
    This disk group using HIGH redundancy. It has three discs.

    Can I change the redundancy externally?
    I want to do it because I need to remove 2 of the 3 disks.

    Hello

    You are right, that the current DG should be destroyed anyway in order to "change" the level of redundancy for the disk group.
    The two options are:
    -The data migration to a new group of disks created with the desired level of redundancy.
    -Perform a backup on the database current DG you remove, re-create it with different level of redundancy then do restore/recovery.

    I hope this helps as well.
    Kind regards
    József

  • Change of the pipette in the curves adjustment layer

    In versions previous of the PS when you opened a curves adjustment layer, hovered over the image, the cursor was a dropper, and when you pressed the mouse button a point appears on the curve showing the wherever the task on the image fell on the curve.  I used a lot.

    In CS4 that the pipette has been replaced by the line of sight (plus sign?), and when you click on a location in the image, nothing happens.   How to bring back the former function?

    Always available, but with different commands.  Here is a link that describes in detail.

    http://photoshoptipstricks.blogspot.com/2009/03/curves-in-Photoshop-CS4.html

  • levels adjustment layer.

    Hello.

    Ive done this simple tutorial for an image I'm working on.

    his creation of a starry sky, but when I get the desired effect in the adjustment layers in the habit of saving my effect.

    white canvas - complete with black

    filter - noise 100% with monochrome checked.

    0.3 Gaussian blur filter

    levels of top layer black cursor 190. White cursor top of page 218. to create the stars.

    flatten the image.

    for some reason my settings in the adjustment layer is not registered.

    Thank you

    Phil.

    Agree. That's the whole point of flattening. If this isn't what you want, then save it as Native PSD with layers.

    Mylenium

  • How to change the level of zoom on a Web page

    How to change the zoom of a Firefox Web page level? In Internet Explorer, you can do this with the right end of the status bar icon. Any advice would be appreciated. Thank you.

    This article should help: https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages

Maybe you are looking for