Script to activate layers at random, what is visible to export?

Hey, I'm looking for a script that runs on 10 (+/-) random layers that live in one folder, then exports that is visible. Basically, I have a folder of 150 layers and looking for a way to display random assortments of said layers. (Remember, I have two adjustment layers and a background that would need to be on at all times.)

It would be great to be able to run a lot of like ten agreements at the same time, but I'm not sure how these scripts work.

Can pay!

Kyle

Try this. It records in the same folder as the file with all layers. It will save a flattened tiff. It assumes that the name of the group is "Clips". It runs a little slow, because it must navigate the file and turn off all the layers for each new image.

#target photoshop
var doc = activeDocument;
doc.activeLayer = doc.layers.getByName('Clips');
var gp = doc.activeLayer;
var num = 10
var fName = 'MyDoc'

for(var j=0;j<10;j++){
    for(var i=0;i 
         

Tags: Photoshop

Similar Questions

  • There is text on my photo, but there is no text layer in the layers panel. What is everything?

    There is text on my photo, but there is no text layer in the layers panel. What is everything?

    Hi juliannz,

    The layers panel will contain the text only if you have saved the original under a PSD file.

    If it was saved as a jpeg, png, it not the layers.

  • When I try to open a JPEG file in Adobe Bridge I get the following message: "the original application of the bridge is not active.  "Bridge that requires a product calling it launched at least once to activate this feature.  What should I do to fix this

    When I try to open a JPEG file in Adobe Bridge I get the following message: "the original application of the bridge is not active.  "Bridge that requires a product calling it launched at least once to activate this feature.  What should I do for this problem to be able to open JPEGs in Adobe Bridge?

    Open Photoshop first... or any program that you bought that included bridge

  • Bridge now won't let me use camera raw, although I had used every day.  It is said that "the main demand is not active.  Bridge requires that a qualified product has been released at least once to activate this function. "What should I do?

    Bridge now won't let me use camera raw, although I used it every day.  It means that 'main demand is not active.  Bridge requires that a qualified product has been released at least once to activate this function. "What should I do?

    This highlights usually have some kind of earlier trial version still installed on your system. However, without more details you are not likely to find an answer. Try this for starters:

    How to find help

  • What is the best export the configuration when you want to place your video on Facebook or youtube

    What is the best export the configuration when you want to place your video on Facebook or youtube

    Hi Robert,.

    Here are the high quality requirements of Facebook: How can I ensure my videos are of high quality. Facebook Help Center | Facebook

    Formats: this video file formats can I upload? Facebook Help Center | Facebook

    YouTube: recommended encoding download - YouTube Help Center settings

    Thank you

    Kevin

  • What are the best export settings to use for a video posted on facebook

    What are the best export settings to use for a video posted on facebook?

    I used the H.264 > Vimeo HD presets in Media Encoder with excellent results.

    Thank you

    Jeff Puler

  • loop through the layers defining the lock and visibility

    I need to loop through the layers in the active document and the value of the properties of the layer is false or true.  I tried to create a loop using a method 'for', but it doesn't seem to work. I have renounced the method 'for' because I kept running into a problem.  I have set all layers with these settings just the odd ones (2,4,6, etc.). Here is sample if it was written.

    myLayer = myDoc.layers var [2];

    myLayer.visible = false;

    myLayer.locked = true;

    myLayer = myDoc.layers var [4];

    myLayer.visible = false;

    myLayer.locked = true;

    myLayer = myDoc.layers var [6];

    myLayer.visible = false;

    myLayer.locked = true;

    myLayer = myDoc.layers var [8];

    myLayer.visible = false;

    myLayer.locked = true;

    I have 208 layers, so doing it this way would be way to long. Any help would be appreciated.

    Illustrator CC 2014 running.

    After I wrote this and tested, I saw that Carlos had already answered, but I thought that I would post it anyway. Carlos KNOWS how much I love JS... ;-)

    One difference is that, since it was not clear to me which layer you talk like layer #1, I started at the bottom of the scale.  I hope this helps.  -TT

    var aDoc = app.activeDocument;
    var lc = aDoc.layers.length;
    for (var i = 2; i <= lc; i+=2) {
        var curLayer = lc - i
        aDoc.layers[curLayer].visible = false;
        aDoc.layers[curLayer].locked = true;
    }
    
  • What are the best export settings for a first Pro CS4 video HD?

    Hello!

    I had so much trouble with this issue and that's something that continually frustrates my boss. I have a HD video what are the settings for it

    23.98 FPS

    1920 x 1080, then a few lines down he says 1408 x 792

    16-bit,

    2 channels

    48000 Hz

    What should be the parameters when I do a new sequence?

    When I look into the window in Premiere Pro I constantly have to "shrink" the image to fit the window, is that something I should do or he says that the configuration of the sequence is bad?

    But more importantly what should be the parameters of export? I exported a long video of 4 minutes and the size was 1 GB, I know that it's too big.

    I need to export without losing quality and export another one which is consistent with the limits on the size of Youtube and Vimeo.

    Vimeo is 500 MB per week, sometimes I download 4 videos per week. I think that Youtube, you can download 500 MB at a time.

    I need to get the smaller size with lose the least possible quality AND the best export quality settings, so I suppose I have 3 separate issues.

    What are the best settings of sequence for HD video?

    What are the best export settings for HD without losing quality?

    What are the best export settings for the size of out about 500 MB with losing the least possible quality?

    Thank you!

    http://forums.Adobe.com/thread/713070

    On the thread that above, I used the 5th anwer, and it will take about 7 hours to export a 4 minute video :/

    All your questions are answered here.

    http://forums.Adobe.com/community/premiere/faq_list?view=discussions

  • When I type the redemption code, the police immediately becomes small. Therefore, I can not activate my membership. What should I do?

    When I type the redemption code, the police immediately becomes small. Therefore, I can not activate my membership for cloud creative adobe. What should I do?

    Hello

    This link might help: help code them redemption

    Kind regards

    Sheena

  • Script to activate the memory add Hot

    Hi all

    I'm working on a script enable hot-memory add for all of the virtual machine in the environment. Here's what I have so far:

    # The vCenter connection #.

    $a= Read-Host "Please enter the name of the Virtualcenter: '

    SE connect-VIServer

    Connect-VIserver-Server '$a' -credential (Get-Credential)

    # Function to allow hot-memory add #.

    Int Enable-MemHotAdd()$vm) { }

    $vmview = Get-vm $vm | Get-View

    $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec

    $extra = New-Object VMware.Vim.optionvalue

    $extra . Key='mem.hotadd'

    $extra . Value="true"

    $vmConfigSpec .extraconfig += $extra

    $vmview . ReconfigVM ($vmConfigSpec)

    }

    Get-Host | Get-VM : enable-memhotadd

    # Disconnect vcenter after configuration #.

    disconnect-viserver -confirm:$false

    I'm not 100% sure on how to get the function to run several times. I found the function online, I think it's good. Is there a better way to do it? I better do it by clusters or do I just do it on all the virtual machines in the vCenter lvl? Am I close?

    What do you think guys?

    Thank you!

    You should be able to do something like this (instead of Get-Host |) Get - VM: enable-memhotadd) :

    $vms = get - VM

    {foreach ($vm to $vms)

    Enable-MemHotAdd ($vm)

    }

    This allow for all the virtual machine in your vCenter, keep in mind that it can take some time if you have a large number of virtual machines.

  • Activate frames? In what order?

    Hi guys,.

    I have 3 ESXi hosts with 4 VM (so far) on an iSCSI SAN.  Performance is absolutely amazing at the moment, but I'll add spread 20 more VM through the 3 hosts.

    You think that I need to enable frames for iSCSI traffic?  If so, what order should change the MTU?  For example... should I change to 9000 iSCSI SAN ports, change the switch ports, then change servers... or?

    What would you suggest?

    I have permission to close the 4 VM this weekend if I need to.

    Thank you!

    Jumbo Frame must be enabled at the end... so is not an order of preference... until one piece is not activate, they will not be used.

    Remember, you must turn on also on the vSwitch (in this case, you do not need to destroy).

    Also, for some type of physical switches it may required a cold reboot.

    André

  • Script to move the playhead randomly to executives?

    Is it possible to have a script that sends the playhead to specific images at random, wait about 8 seconds then go?

    For example, frames 1-20 will have an image on each image. I want the playhead to land on these images in a different order and keep a loop.

    Thank you

    I did not code it if you return to section 1, code it so that when you return to frame 1, you launch a setInterval another... you want only a job.  If you place the following code in frame 1 it will take care of it, leaving a setInterval be activated...

    Stop();

    var intervalID; intervalID is undefined here because there is nothing assigned

    if(!intervalID) {/ / will only when intervalID is undefined}
    intervalID = setInterval (moveToFrame, 3000); defines intervalID
    }

    function moveToFrame() {}
    gotoAndStop (Math.floor (Math.random () * 4) + 1);
    }

  • Script: rename the layers?

    Hi, is there a quick way to renumber or rename the lot all the layers in a file so that they would be called the number? Doesn't have to be from the exact number, I was wondering if maybe there's some kind of script that could help me with this? Thank you Pavel

    #target illustrator

    var app.activeDocument = docRef;

    with (docRef) {}

    for (var i = 0; i)< layers.length;="" i++)="">

    layers [i] .name = layers.length - i;

    }

    }

  • Our life to activate windows has expired, what should we do to activate it?

    Everything works, it just says: time to activate it is upward.

    Hello

    See if that helps you.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • Is it possible to use iDoc script to activate the Oracle text search?

    Hello, I created a query to search for files in a specific Department and I want to check if the files are uploaded in fact properly so I would combine the first part of my request that a comprehensive document, search for a key word.

    The server is configured to search for metadata database only, but I was wondering if you could create a script that would do a search for possible text anyway? If so, an example would be appreciated.

    Kind regards

    Iwona


    Be sure to check the documentation for your answers. They must be a primary (i.e., first) resource for you.

    http://docs.Oracle.com/CD/E28280_01/doc.1111/e26692/searchindex.htm

    No information contained in the response of section "Configuration of the search Index" your question?

    Hope this helps,

    -ryan

    * may not be the most recent document, but this is the first returned by a quick search on google on your keywords.

Maybe you are looking for

  • Version of Virtual Box - tiny screen

    How to run Windows on Mac 100% FREE 10 (Yosemite / El Capitan) https://www.YouTube.com/watch?v=LCC-qg6MmDw This is a copy of the letter I wrote to the gentleman who made the video above. Any of you have any idea if there is a solution to my problem?

  • How to compare the contents of the cell against a series list range of values?

    Hi all! I really need help. I have tried to help myself using the formula of numbers and other discussions Apple guide but do not find a method using the info. Unfortunately, in two days and no work done, I feel rather useless! I read the guides but

  • Problems with the receipt of a copy of Windows Vista

    They gave me a free Express Upgrade to Windows Vista when I bought my laptop. I him have not yet received after 8 weeks of waiting. Is anyone else having the same problem or I am one of the few unlucky? Any help would be appreciated.

  • SimplePass does not work

    Hello I have just purchase a TouchSmart from HP ENVY 17-j153 with Windows 8.1 and I'm implementing SimplePass fingerprint reader. But the problem is that when I open the center of the HP utility and I try to open SimplePass it just doesn't open, I cl

  • Need help to import the DVD that I made using Windows Movie Maker

    I made a slide show DVD in my computer XP using WMM. I thought that I taped on the C drive first, but I can't access either one to make changes. I can view the DVD using Windows Media Player, but I want to change it