What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Reply to thread

Report the bug in the adobe forum > https://feedback.photoshop.com/


A short test showed that it is possible to combine styles using a script (must saved as *.jsx)...


If you need this feature often, then you can try to ask at the Adobe scripting forum for a script - otherwise just wait and see if Adobe corrects the error.


[URL unfurl="true"]https://community.adobe.com/t5/photoshop/bd-p/photoshop?page=1&sort=latest_replies&filter=all&topics=label-actionsandscripting[/URL]


[CODE=javascript]#target photoshop


var idASty = charIDToTypeID( "ASty" );

    var desc39 = new ActionDescriptor();

    var idnull = charIDToTypeID( "null" );

        var ref2 = new ActionReference();

        var idStyl = charIDToTypeID( "Styl" );

        ref2.putName( idStyl, "Double Green Slime" ); // change style name

    desc39.putReference( idnull, ref2 );

    var idT = charIDToTypeID( "T   " );

        var ref3 = new ActionReference();

        var idLyr = charIDToTypeID( "Lyr " );

        var idOrdn = charIDToTypeID( "Ordn" );

        var idTrgt = charIDToTypeID( "Trgt" );

        ref3.putEnumerated( idLyr, idOrdn, idTrgt );

    desc39.putReference( idT, ref3 );

    var idGrup = charIDToTypeID( "Grup" );

    desc39.putBoolean( idGrup, true );

executeAction( idASty, desc39, DialogModes.NO );


// =======================================================

var idASty = charIDToTypeID( "ASty" );

    var desc35 = new ActionDescriptor();

    var idnull = charIDToTypeID( "null" );

        var ref5 = new ActionReference();

        var idStyl = charIDToTypeID( "Styl" );

        ref5.putName( idStyl, "Stamped Aluminium" ); // change style name

    desc35.putReference( idnull, ref5 );

    var idT = charIDToTypeID( "T   " );

        var ref6 = new ActionReference();

        var idLyr = charIDToTypeID( "Lyr " );

        var idOrdn = charIDToTypeID( "Ordn" );

        var idTrgt = charIDToTypeID( "Trgt" );

        ref6.putEnumerated( idLyr, idOrdn, idTrgt );

    desc35.putReference( idT, ref6 );

    var idMrge = charIDToTypeID( "Mrge" );

    desc35.putBoolean( idMrge, true );

    var idGrup = charIDToTypeID( "Grup" );

    desc35.putBoolean( idGrup, true );

executeAction( idASty, desc35, DialogModes.NO );[/CODE]


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top