Hello,
I am trying to write my new script. Could someone please help? Also, are there any simple tutorials for Scripts in CorelDraw somewhere? Thank you in advance.
This supposed to duplicate an object and randomly rotate it and make rows of it:
object = host.activeDocument.selection[0];
for(j=0; j<10; j++){ //make a row for (i = 0; i < 10; i++) { newobject = object.duplicate(); newobject.translate(object.width * (i + 1), -object.height * (j + 1)); newobject.rotate(Math.floor(Math.random() * 4) * 90); }}
Thank you so so much, it works now! How can I learn to write scripts? Should I look for java scripts tutorials? It is one that specific for Corel?