Adobe script for rotation and position

I am new to the adobe script and actions (ultra-actuel. as a start today, right now).

First I just want to know if what I'm trying to do even possible.

Imagine a simple rectangle in photoshop.

I have a table of angles and coordinates (could be an excel file or any type of text file). Let's say only 10 lines. column A = angles and columns B and C are x and are coordinated, respectively.

I want to somehow have photoshop to read this list and 10 layers with the rectangle to the position and the angle specified by each row in the table.

so, I want a timeline with 10 images, each with only the appropriate, sequential visible layer.

Is this possible?

If so, anyone have any suggestions. I have never written a script in adobe, but some experience of programming in other languages oldschool.

and maybe a link explaining how to use the script once it is written?

Thank you

This would create an animation framework based on the layers inside the LayerSet in the foreground.

It assumes that the file has no animation again.

// 2014, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
// define the layers;
var theLayers = myDocument.layerSets[0].layers;
// hide all except topmost layer;
hideOthers (theLayers[0], myDocument);
// make frame animation;
// =======================================================
var idmakeFrameAnimation = stringIDToTypeID( "makeFrameAnimation" );
executeAction( idmakeFrameAnimation, undefined, DialogModes.NO );
// set frame rate;
// =======================================================
var idsetd = charIDToTypeID( "setd" );
    var desc10 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref9 = new ActionReference();
        var idanimationFrameClass = stringIDToTypeID( "animationFrameClass" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref9.putEnumerated( idanimationFrameClass, idOrdn, idTrgt );
    desc10.putReference( idnull, ref9 );
    var idT = charIDToTypeID( "T  " );
        var desc11 = new ActionDescriptor();
        var idanimationFrameDelay = stringIDToTypeID( "animationFrameDelay" );
        desc11.putDouble( idanimationFrameDelay, 0.100000 );
    var idanimationFrameClass = stringIDToTypeID( "animationFrameClass" );
    desc10.putObject( idT, idanimationFrameClass, desc11 );
executeAction( idsetd, desc10, DialogModes.NO );
// work through layers;
for (var m = 1; m < theLayers.length; m++) {
// =======================================================
var idDplc = charIDToTypeID( "Dplc" );
    var desc7 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref6 = new ActionReference();
        var idanimationFrameClass = stringIDToTypeID( "animationFrameClass" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref6.putEnumerated( idanimationFrameClass, idOrdn, idTrgt );
    desc7.putReference( idnull, ref6 );
executeAction( idDplc, desc7, DialogModes.NO );
// hide others;
hideOthers (myDocument.activeLayer, myDocument);
hideOthers (theLayers[m], myDocument);
};
};
////// toggle visibility of others //////
function hideOthers (theLayer, myDocument) {
theLayer.visible = true;
myDocument.activeLayer = theLayer;
// =======================================================
var idShw = charIDToTypeID( "Shw " );
    var desc10 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var list4 = new ActionList();
            var ref7 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref7.putEnumerated( idLyr, idOrdn, idTrgt );
        list4.putReference( ref7 );
    desc10.putList( idnull, list4 );
    var idTglO = charIDToTypeID( "TglO" );
    desc10.putBoolean( idTglO, true );
executeAction( idShw, desc10, DialogModes.NO );
};

Tags: Photoshop

Similar Questions

  • I bought the wrong version of Adobe Acrobat (for windows) and I have a Mac.  I need to exchange the correct software

    I bought the wrong version of Adobe Acrobat (for windows) and I have a Mac.  I need to exchange the correct software

    Hi K.Winger,

    In order to get this change, you need to take assistance from our support team cat.

    Please Contact Customer Care

    * Being to ensure that you are logged on the page with your adobe ID

  • I just bought adobe acrobat for Mac, and it won't download because it says I need a windows computer why?

    I just bought adobe acrobat for Mac, and it won't download because it says I need a windows computer why?

    Hi gary Griffith,

    I checked your records and found that you bought subscription Acrobat Pro DC (at least). To download and install Acrobat DC on MAC, I would ask you to kindly follow the steps mentioned in the link below:

    Acrobat DC subscription | Download and install

  • Does not update Adobe Revel for ipad and iphone

    Adobe Revel for ipad and iphone will not be detected. Download about 3/4 of the update and then stops. I tried several times.

    There is a fix for this. Please see the most recent Adobe response on the following thread:

    Problem installing Adobe Revel 2.3.2

  • Is Adobe Reader for iOS and Android Support with Solution PKI encryption?

    Hello

    I searched for an answer if Adobe Reader for iOS and Android can read PDF files encrypted by infrastructure solution to public key (encrypted by a public key, in order to be decrypted by the private key pair), but to date I have not found the answer.  From the Adobe web site, I understand that Adobe Reader for Android supports to read a document encrypted with AES256 but it does not mention on PKI.  I had to guess it does not support encryption with PKI, but I would just get a formal response and would like to know if Adobe Reader Mobile will support it.

    Thank you!

    Masaya

    Unfortunately, it is still not supported on mobile versions of Adobe Acrobat DC.

    Thank you.

  • CS5 Photoshop - Adobe save for Web and devices error

    Hi people,

    I know subjects similar exist, but this one is different. For some reason, out of the blue, I can't use 'Save for Web'. When I choose "save for web", he opens the dialog preview nicely, until I have save & get this error:

    "Adobe save for Web and devices error ."

    Unable to complete this operation. An unknown operating system error has occurred. »

    save4weberror.png

    Deleted all my settings, and the error remains.

    I uninstalled PS CS5, installed again... always get this error.

    I hope someone knows how to solve this problem!

    TX!

    MacBookPro3, 1, running all the updates (OSX 10.6.4), CS5 Master Collection.

    Luckily still have CS4 Master Collection installed (and Flash CS3).

    (I just what to get off my chest, CS5 has so many of the issues that I have stopped using it, I'm not being paid to play. crashtestdummie ) Please don't rush all future collections CS and try to fix bugs instead. )

    It's fixed!

    I deleted this file:

    / Users / ~ / library/Preferences/Adobe/Plugins/Adobe save for Web, Photoshop/CS5/Adobe save for Web CS5 pret.

    (apparently, yet another settings file?)

    I had to do it manually and all is good now.

    TX Jeff for your help, this thread can be closed.

  • Using the script for import and export

    Hello

    Can any such a me what is the use of the script for import and export.

    After you move the pages from / to server what is the need to import / export command.

    export/oracle/apps/ap/setup/webui/customizations/site/0/SetupPG - rootdir < destination path > - user < database username > - password < database password > - dbconnection "(description = (address_list = (address = (community = tcp.world) (protocol = tcp) (host = < host name > (port < port id > =))) (connect_data = (sid = < sid >)))".) "

    Thanks in advance,
    Roselyne

    Hi Flo,

    Page and the region are stores in database import/export we really want pages/areas to store in the database.

    Thank you
    -Anil

  • Maximum file size for Adobe air for iOS and Androind update apps

    Hi all

    I'm working on a project that has a few videos I need to group in my mobile application for an Ipad app that I created using Adobe Air for iOS. My question is simple there at - it a maximum file size limit on applications compiled using Adobe air for iOS? And if yes what is it? Any help would be great.

    best regards Mike

    It is not a limit.

  • sketch of Adobe photoshop for iphone and android devices

    Hello I just want to know is adobe planing to release Photoshop sketch for mobile iPhone and android , because its good for all users to take advantage of this application and it is difficult for people to buy iPad only for these applications.

    Please release sketch PS for other platforms.

    Thank you

    Kind regards!!!

    M.JUNAID KHAN

    Thanks for the note. We expect to have Photoshop sketch available for the iPhone 2-3 weeks and we are hard at Android and working on the Tablet and phone versions.

    Thank you

    Will be

    Product Manager, Photoshop sketch

  • Can I use a single code of Adobe ID for work and home?

    Hello

    I installed and I bought Adobe CC to my work and I use it. Is there a way I can use the same home? Or should I buy another CC from Adobe for that matter?

    Thank you!

    If you bought the subscription, then you can do sign on two machines.

  • I have a new IMAC and it won't let me open up CS4, it says that I need to contact Adobe support for help and mention code 150:30 can't reach Adobe is very frustrating

    If anyone can help with a way to open the CS4 on my new IMAC.   Send a message with the code 150:30... don't know what to do.  Need your input please

    EV

    @

    Hi ev2068,

    Please follow the steps mentioned in the article.

    http://helpx.Adobe.com/x-productkb/global/error-licensing-stopped-Mac-OS.html

    So if you have used the Time Machine feature for dos applications, then I advise you to uninstall and reinstall the applications.

    Please post on the Adobe Forums.

  • KeyboardEvent for rotation and Flip

    I am turning or flip an object with this code keyboard event

    Stop();
    stage.addEventListener (KeyboardEvent.KEY_DOWN, onKeyPressed);
    function onKeyPressed(evt:KeyboardEvent):void {}
    {Switch (evt.keycode)}
    case Keyboard.R:
    MOD. Rotation += 90;
    break;
    Keyboard.H case:
    mod.scaleX * = - 1;
    break;
    case Keyboard.V:
    mod.scaleY * = - 1;
    break;
    by default:
    trace ("code:", evt.keyCode);
    }
    };

    but it returns these erros:

    1119: access of property may be undefined R through a reference with static type class.

    1119: access of property may be undefined H through a reference with static type class.

    1119: access of property may be undefined V through a reference with static type class.

    Who can help me to fix this problem.

    Thank you

    Right, the Keyboard.R and the others are for AIR only. You must use the key codes themselves. Try this:

    stage.addEventListener (KeyboardEvent.KEY_DOWN, onKeyPressed);
    function onKeyPressed(evt:KeyboardEvent):void {}
    {Switch (evt.keycode)}
    82 decision:
    MOD. Rotation += 90;
    break;
    72 decision:
    mod.scaleX * = - 1;
    break;
    decision 86:
    mod.scaleY * = - 1;
    break;
    by default:
    trace ("code:", evt.keyCode);
    }
    };

  • improved Photoshop CC script for tree and photo frame templates

    flame, tree and photo frame models are missing from my drop-down list in the fill window. They are in the

    Folder design, as is the filling of the symmetry, all with the javascript extensions, but symmetry filling is the only watch in my menu drop-down. Can someone help me solve this problem?

    Hi Kmjc,

    If you use the version of Photoshop CC 2014, you must click the filter menu and choose rendering and you will be able to see the flame, frame photo and the tree options.

    Please post on the Adobe Forums.

  • Can I use the same Adobe ID for Amazon AppStore - and - Play from Google?

    Hello!  We have been on the iPad for two years now and have finally taken the bet to design a version of our magazine for the range fire Kindle from Amazon.  I'm curious to know if we can share an Adobe ID between Amazon AppStore and Google play, so that all of our Android folios remain in the synchronized if the user is on the material from Amazon or another provider.

    Thanks in advance for any ideas.

    Yes, you can use the same ID (title ID) of Adobe for Google Play Store and Amazon Appstore. In DPS App Builder, create two separate applications, each time specifying the target store (in the App Builder, Google play is still called Android Market). However, I do not recommend that you use the same Adobe ID for iOS and Google/Amazon unless you offer a personal right (Enterprise only).

    A key difference between the Kindle Fire viewers and viewers Android is that Kindle Fire viewers do not display the navigation bar. Here's a detailed article on the Amazon/Android devices targeting:

    http://blogs.Adobe.com/indesigndocs/2012/10/creating-DPS-folios-for-Android-devices.html

  • Is it possible to write a script for underlined text export to PDF?

    When I make changes in the financial document, I must emphasize this purpose to show what I edit, these underscore was called "markup". And then print (paper version) and gen (PDF) of the amendment, which means I have to print and gen text underlined (or called markup text) after modification.

    sample PIC:

    back markup.jpg

    If:

    Customer requires a new version of the markup, which means I have to change the last beacon color (color of the underline to the last amendments) in 'back' and then make new 'red' as this markup:

    red markup.jpg

    What I want:

    is it possible to write a script for printing and gen only markup in the document text all open

    and I want two versions

    (1) all text markup gen no matter the color of the underline

    (2) the red color of the markup text gen

    Thank you!

    Hi HarveyLiu,

    Why, you ask? It will export the pages who pointed out the text.

    var doc = app.documents;
    app.findTextPreferences = null;
    app.findTextPreferences.underline = true;
    for(var i=0;i
    

    Kind regards

    Cognet

Maybe you are looking for