This content has been marked as final.
Show 4 replies
-
1. Re: Help With Script That Apply Blend Mode:Multiply To All Graphic
milligramme Jul 25, 2013 6:08 PM (in response to boris_m25)Hi.
try code below.
I think it is unnecessary to select the objects
var graphics = app.activeWindow.activePage.allGraphics; app.select(graphics); //=> undefined. because select method return undefined // apply filter to each graphic var i = graphics.length; while (i--) { graphics[i].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY; };thank you
mg.
-
2. Re: Help With Script That Apply Blend Mode:Multiply To All Graphic
boris_m25 Jul 26, 2013 1:21 AM (in response to milligramme)thnx it's working i have just one question
var i = graphics.length;
lenght is how much objects is selected? thna you itereated every graphic object ?
-
3. Re: Help With Script That Apply Blend Mode:Multiply To All Graphic
milligramme Jul 26, 2013 1:39 AM (in response to boris_m25)Yes every graphic. (=.allGraphics)
if you want to apply only selected object
for example
var sel = app.selection; // graphic container; var i = sel.length; while (i--) { try { sel[i].graphics[0].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY; } catch(e){} };thank you
mg.
-
4. Re: Help With Script That Apply Blend Mode:Multiply To All Graphic
boris_m25 Jul 26, 2013 2:38 AM (in response to milligramme)selecting all (instead CTRL + A)
app.select(app.activeWindow.activePage.allPageItems);
after i run this in editor, i get selected rectengules (frames) and graphics, how to select just rectengules i whont to apply tham an object style or maybe it's better to say, all frames that have graphic in themselves.

