Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Transform selection increase problem

$
0
0

Hi ALL,

 

I am trying to apply transform on some selected objects 10 % increase, i could see the part are moved from the orginal place.

 

If we try to do select the individual object this works fine.

 

Any idea

 

var idTrnf = charIDToTypeID( "Trnf" );

    var desc6 = new ActionDescriptor();

    var idnull = charIDToTypeID( "null" );

        var ref3 = new ActionReference();

        var idLyr = charIDToTypeID( "Lyr " );

        var idOrdn = charIDToTypeID( "Ordn" );

        var idTrgt = charIDToTypeID( "Trgt" );

        ref3.putEnumerated( idLyr, idOrdn, idTrgt );

    desc6.putReference( idnull, ref3 );

    var idFTcs = charIDToTypeID( "FTcs" );

    var idQCSt = charIDToTypeID( "QCSt" );

    var idQcsa = charIDToTypeID( "Qcsa" );

    desc6.putEnumerated( idFTcs, idQCSt, idQcsa );

    var idOfst = charIDToTypeID( "Ofst" );

        var desc7 = new ActionDescriptor();

        var idHrzn = charIDToTypeID( "Hrzn" );

        var idRlt = charIDToTypeID( "#Rlt" );

        desc7.putUnitDouble( idHrzn, idRlt, 0.000000 );

        var idVrtc = charIDToTypeID( "Vrtc" );

        var idRlt = charIDToTypeID( "#Rlt" );

        desc7.putUnitDouble( idVrtc, idRlt, 0.000000 );

    var idOfst = charIDToTypeID( "Ofst" );

    desc6.putObject( idOfst, idOfst, desc7 );

    var idWdth = charIDToTypeID( "Wdth" );

    var idPrc = charIDToTypeID( "#Prc" );

    desc6.putUnitDouble( idWdth, idPrc, 110.000000 );

    var idHght = charIDToTypeID( "Hght" );

    var idPrc = charIDToTypeID( "#Prc" );

    desc6.putUnitDouble( idHght, idPrc, 110.000000 );

    var idLnkd = charIDToTypeID( "Lnkd" );

    desc6.putBoolean( idLnkd, true );

executeAction( idTrnf, desc6, DialogModes.NO );

 

Regards,

Vinoth


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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