Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Is there a way to change the Layer Color Tag via Script?

$
0
0

Just solved my own question:

 

Photoshop was being weird so I had to change the color 2 times for the event to be recognized...idk why but it worked: heres the code:

 

desc66.putReference( idnull, ref55 );

    var idT = charIDToTypeID( "T   " );

        var desc67 = new ActionDescriptor();

        var idClr = charIDToTypeID( "Clr " );

        var idClr = charIDToTypeID( "Clr " );

        var idVlt = charIDToTypeID( "Vlt " );

        desc67.putEnumerated( idClr, idClr, idVlt );

    var idLyr = charIDToTypeID( "Lyr " );

    desc66.putObject( idT, idLyr, desc67 );

executeAction( idsetd, desc66, DialogModes.NO );


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>