Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Is it possible to transform a selected gradient in javascript?

$
0
0

var omf = 2.834645;

var moveMatrix = app.getTranslationMatrix((-10*omf), (-10*omf));

var rotateMatrix = concatenateRotationMatrix( moveMatrix, 0 );

var totalMatrix =  concatenateScaleMatrix (rotateMatrix, 500, 500);

app.activeDocument.selection[0].transform(totalMatrix,false,false,true,false,0, Transformation.CENTER);

 

I wrote the following script but it doesn't seem to transform the gradient.

 

Please help...

 

Cheers Daniel


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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