How to apply the random value "seed" to multiple images

So, I'm in a weird situation, have been surfing the net for the solution for more than a day now and can't really find the solution.

What is it?

Its a small school project I chose and can't really find a way to do it.

What I want to achieve?

I have an image and I want to have like 50 variations of it.

What have I done?

I have loaded an image, performed an action that applies the filter called "Wave", the wave dialog I selected a rangeminimum and maximum values.

The problem I have:

I made 50 copies of the same image, and then I applied the action through treatment for these 50 images in batches. However, it applies exactly the same settings/values that I saved. It does not really use the beach that is the maximum and minimum values , I selected in the wave dialog box. It seems that when I closed the wave dialog box, the action creates a new value called 'Random seed' when recording and maybe this number seed tells photoshop what to choose between the min and max range provided by the user.

So is it possible that when I run the action, he'll be looking for a new random value in the range max and the min provided?

Thank you

Marolina

Save the script below in the text with the .jsx extension. Replace the wave filter step in your action with a step that runs the script. The rest of the action can stay the same.

// seed range detemined by running the filter with the desired settings 10 times
// and getting the lower and upper range from the scriptlistener log
// the seed seems to depend on the other values. In another test the seed was
// a 8 digit number
var seed = Math.floor((192000-186000)*Math.random()) + 186001;
app.activeDocument.activeLayer.applyWave(1,93,198,5,35,100,100,WaveType.SINE,UndefinedAreas.REPEATEDGEPIXELS,seed);

Tags: Photoshop

Similar Questions

  • How to lock the random values?

    Hi all

    I want that my input voltage in the range of 250-280... entry mV of i. e get to LV via PSC... I converted that 280 mathematical manipulations.

    now, I want that if the values exceed 280, he should give 280 as a constant value and if values go down 250 according to mV, it should give output constant 250 despite incoming values...

    Can someone guide me?

    Thank you

    a simple addition to the previous but to adapt to your needs:

  • How to apply the Trace Bitmap function on multiple charts at the same time?

    Hi all!

    I is currently experiencing a difficult period for the application of the function of trace bitmap on multiple charts.

    It is as I have 101 graphic symbols in my library, retracing the one is so would take a lot of time, though, I created an order for the Trace Bitmap function, it takes time. While I was looking for a way to track all of them at once?

    -Thanks!

    This should do what you say you are willing to:

    var threshold = 100; // 0 - 500
    var minimumArea = 8; // 1 - 1000
    var curveFit = "normal"; // "pixels", "very tight", "tight", "normal", "smooth", "very smooth"
    var cornerThreshold = "normal"; // "many corners", "normal", "few corners"
    
    function main() {
        var i, type;
        var _dom = fl.getDocumentDOM();
        var _lib = _dom.library;
        var items = _lib.getSelectedItems();
        if (!items.length) return;
        for (i = 0; i < items.length; i++) {
            type = items[i].itemType;
            if (type == "graphic" || type == "movie clip") {
                _lib.editItem(items[i].name);
                _dom.selectAll();
                if (_dom.selection.length == 1 && _dom.selection[0].elementType == "instance" && _dom.selection[0].instanceType == "bitmap") {
                    _dom.traceBitmap(threshold, minimumArea, curveFit, cornerThreshold);
                }
            }
        }
        alert("Conversion complete!");
    }
    main();
    

    Copy and paste into a new text document and save it as tracebitmaps.jsfl. Select clips in the library to convert, then go to double click the JSFL file.

  • How to use the same paths (selection) in multiple images to the batch?

    I have a whole bunch of pictures, that I need a batch, but, when you create a to-do for this, I came across the problem paths I have selected with the pen tool and is recorded on the "Paths" tab must be in each image to be used in action. I'm trying to solve for a while, but not could not understand. Any ideas?

    Thank you very much

    Carlos

    Usually batch processing is to use actions that you have registered.  In Action, you can insert path that can be used during the processing of documents.  Path have some size so you can only the process document that have the same size.  Look in the actions Palette drop-down menu for the path of insertion.  It inserts | records the current working document traced in action being developed, and when the action is played it inserts the path in the document under the current path of work...

  • How to get the updated values of the loops while they are running

    Hello

    I am trouble with a very basic problem, how to access the updated values of the "loop FOR" during operation?  Basically, the VI I is currently working on two sub vis calls each sub VI has a loop for, and the two screws may or may not work for the same number of iterations. My goal is to read the values in each terminal within the loop of two sub VIs, in primary VI. I tried to do this using Global Variables, but in main VI it will display only the last iteration of the two value sub live. Could someone please tell me whrere I go wrong? Is there any other/better way to do this.

    I appreciate any input on this issue.  

    Pass a reference of the main VI control to the Sub screws.  See attached example.

  • kindly tell how to use the unique value of a table with the index 0

    kindly tell how to use the unique value of a table with the index 0

    Hi
     
    Yep, use Index Array as Gerd says. Also, using the context help ( + h) and looking through the array palette will help you get an understanding of what each VI does.
     
    This is fundamental LabVIEW stuff, perhaps you'd be better spending some time going through the basics.
     
    -CC
  • How to add the full value of two buttons?

    How to add the full value of two buttons (any key) VI and display it in the output text box? I am attaching a sample program, but I know that his evil... Help, please

    Try this

  • How to apply the "Slate Pro Light" using CSS font?

    Hello

    Could you tell me how to apply the font of "Slate Pro Light" using CSS? I have not found a solution for the 'Light' slate Pro variation selection.

    Thank you.

    I usually use the definition of CSS of police-family at the following address on my html and body elements:

    font-family: "Slate Pro", Slate, "Myriad Pro", "BBAlpha Sans", Helvetica;
    

    Potentially adding "slate Pro Light" should do the trick. Alternatively, you could take advantage of the make-weight property when you need a lighter framework:

    font-weight: normal|bold|bolder|lighter|number|initial|inherit;
    

    In this case, lighter, might do the trick?

  • How to apply the strategy of UCS1.4 collection (1 d)

    Hi all

    I try to collect statistics on the performance of the network. but do not know how to apply the policy to the collection.

    Service profile, I cam see political Stats. But within the political framework of Stats, there are onlu available in config/choice is political threshold.

    Can someone help out me? Thank you very much!

    I think this is what you are looking for?

    UCS stores the past 5 statistics records at the "Reporting Interval" setting;
    There is no configuration to change that number.  You can put this interval out 8 hours but then you only get a snapshot every 8 hours. Trending or history retrieval would require an interval based extraction and storing application that utilizes the UCS XML API.

    This is a link to the UCS XML API information.
    http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/ucs_api_book.html

  • How to get the decimal value of a string of international currency

    Hi all

    How to get the decimal values to a string of international currency.

    Finally, we get to the real problem.

    You can use location functions or write your own using string functions already mentioned...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/internationalization/

  • How to apply the theme of Oracle Alta UI in ADF

    Hi all

    I use Jdeveloper 11.1.1.1.7.2 release1.

    Can anyone provide your inputs on how to apply the theme of Oracle Alta UI in the ADF.

    For any consultation on Alta IU @ http://www.oracle.com/webfolder/ux/middleware/alta/start-develop.html

    Thank you and best regards,

    Miko Auntie.

    http://www.Oracle.com/WebFolder/UX/middleware/Alta/start-develop.html

    http://www.Oracle.com/WebFolder/UX/middleware/Alta/patterns/PageDesign.html

    http://www.Oracle.com/WebFolder/UX/middleware/Alta/new-dev-w-Alta-skin.html

    Oracle ADF: Customized design

  • How to assign the next value in the sequence directly in a variable?

    How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.

    BluShadow wrote:

    How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.

    ...

    Nope... no obvious difference.

    This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.

    create sequence s;
    alter system flush shared_pool;
    declare
    l_num number;
    begin
    l_num := s.nextval;
    end;
    /
    select sql_text from v$sql where parsing_schema_name = user;
    
    SQL_TEXT
    Report the number of l_num; begin l_num: = s.nextval; end;
    Select sql_text from v$ sql where parsing_schema_name = user
    Select double S.NEXTVAL
  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • How to set the initial value programmatically in af:selectOneChoice

    Hi all

    How to set the initial value programmatically in af:selectOneChoice

    filled with view object instance, but I want to show the value initial programmactically

    This can help you: Re: how to set the default value of the component selectOneChoice in ADF

    and the default af:selectOneChoice programmatically from backing bean

  • How to remove the decimal value (. 00) of the slider control

    Please ask me how to remove the decimal value (. 00) of the slider control and Add (if possible) % in after effects cs6.

    I guess you mean to animate text with a slider.

    Add a slider (options for expressions) to your text layer and then add this expression in your Source text:

    x = Math.Floor (effect ("Slider Control") ("Slider"));

    x+" %"

    That's all

Maybe you are looking for

  • How to reconfigure wireless network extended with several base stations

    I have a wifi network in an Airport Extreme wired to the modem from our Internet service provider and an Airport Express Terminal extended wireless in another part of the House. I recently added a second Airport Extreme (also extended wireless) to bo

  • Records are blue &amp; semi-transparent dock

    After you restore an iPad Air, records appear in a light blue instead of gray, and the dock is semi-transparent revealing the color of the wallpaper. Any thoughts on how to solve this problem. It is running iOS 9.3.2

  • activation of a hyperlink in e-mail creates two browser windows

    From now on, whenever I click on a hyperlink that is in an e-mail message, it opens two windows of the browser instead of one.

  • Satellite A200: Slow speed WLAN Atheros AR5007EG

    Hello I recently bought a Satellite A200 with Atheros 5007eg wireless LAN adapter. I use Vista. And I use a d-link router. My problem is the following: Somehow, when I download only product 1/4th of the speed I get when I connect it directly to a mod

  • Stuck transport - DeskJet 842C

    The cartridges are stuck on the right side of the cart and will not spend. When I turn on the printer it makes a grinding noise and I can see the cartridges trying to get around, but they do not. I have cleaned the printer and made sure there is no p