renél80416020
Advocate
renél80416020
Advocate
Activity
Oct 23, 2018
10:17 AM
2 Upvotes
Salut! Sur les anciennes versions (pour Windows) CTRL+ALT+A Sélection > inverser CTRL+3 Pour revenir en arrière CTRL+ALT+3 De LR
... View more
Oct 13, 2018
03:55 AM
Salut ! I can do this script, my details are under my profile picture. de elleere
... View more
Oct 12, 2018
06:13 AM
Avec un boucle de ce type ? var nb = placeDoc.groupItems.length; for (k = nb-1; k >= 0; k--) { ..... }
... View more
Oct 12, 2018
03:48 AM
Salut ! For me it's France. Do you create a predefined parameter that includes the vectorization options ? it makes things a lot easier. De elleere
... View more
Oct 12, 2018
02:58 AM
Salut ! Tu veux un groupe par document ? Donne des explications en français. Cordialement René PS Peut-être un exemple, mon adresse est sous mon profil.
... View more
Oct 11, 2018
01:32 PM
1 Upvote
Salut ! Move spot in group... var doc = activeDocument; if (doc.spots.length >1) { var colorgroup = doc.swatchGroups.add(); colorgroup.name = 'ArtiosCad'; for (i = 0; i < doc.spots.length-1; i++) { colorgroup.addSpot(doc.spots); } }
... View more
Oct 04, 2018
06:12 AM
Salut ! // JavaScript Document var aD = app.activeDocument; var nC = new CMYKColor(); nC.cyan = 0; nC.magenta = 100; nC.yellow= 0; nC.black = 0; var nCo = aD.spots.add(); nCo.colorType = ColorModel.SPOT; nCo.color = nC; /*var newSpotColor = new SpotColor(); newSpotColor.spot = nCo; newSpotColor.tint = 10; aD.pathItems[0].fillColor = newSpotColor;*/ var im = aD.rasterItems[0]; im.colorize(nCo.color); im.opacity = 10; // for tint = 10 de elleere
... View more
Sep 17, 2018
07:00 AM
I can adjust my script to place the starting point in the top left of all the tracks automatically selected. It would be nice to have an example : (When we cut the letter out there is the potential for a minuscule bump to be at the Starting Anchor ??) Cut with that Tool ? And to do what ? de LR
... View more
Sep 17, 2018
02:12 AM
Bonjour Bryan, (pardon d'écrire en français) J'ai réalisé le script qui modifie le point de départ d'un tracé. Voilà le travail : change-0point-01.js But du script Modifier si besoin le point d’entré d’un tracé ainsi que le sens de parcours. Fontionnement Soit l’exemple du texte vectorisé PUBLIC, il s’agit d’un groupe composé de six tracés transparents (comprenant neuf tracés sans fond, contour noir 1pt), certains tracés sont en sens horaire et d’autres en sens trigo. 1 Sélectionnez le groupe. 2 Lancez le script. 3 Affichage des informations sur l’ordre des points du premier tracé (pathItem). 4 Saisie du nouveau point d’entrée , 0 si pas de changement, ajouter la lettre r si inversion du sens de parcours. pour la lettre U je choisi 9 comme point de départ. 5 Retrait des informations. 6 retour en 3 tracé suivant... Si intéressé me joindre par mail, mon adresse est sous ma photo. De LR PS C'est pour programmer une machine à commande numérique ?
... View more
Sep 14, 2018
12:29 PM
Hi ! Un moyen simple pour identifier le point de départ d'un tracé fermé est d'utiliser Contour / flèche début A simple way to identify the starting point of a closed path is to use stroke/ arrow start
... View more
Aug 30, 2018
01:36 PM
1 Upvote
Bonjour Off Topic, J'ai réalisé un script à partir de ton idée, il place les trois faces de la perspective angles 10 30 40° Je traite 3 images directement (tracés, groupe, tracé transparent, image bitMap, etc. Si tu aimes la perspective isométrique voilà un aperçu (à partir de 3 carrés angle 30°) les mosaïques sont réalisées par un script de ma conception. les couleurs sont aléatoires à l'intérieur d'une plage dans le nuancier. Le Cloud d'Orange Ps Tu n(as pas répondu à mon mail ? LR
... View more
Aug 28, 2018
01:10 PM
Salut ! Puisque tu as écrit (var item = sel.pathItems😉 je suppose que tu veux examiner les objets de type PathItem. Je corrige strictement ce que tu proposes sans rien ajouter pour que ça fontionne. Remarque : Color.black --> "CMYKColor" sinon résultat "undefined" //----------------------------------- var myDoc=app.activeDocument; var sel = myDoc.pathItems; // A collection of PathItem objects (myDoc) for (var i = sel.length-1; i >= 0; i--) { var item = sel; if (item.fillColor.typename == "CMYKColor") { if (item.fillColor.black == 100) { alert('myDoc.pathItems['+i+'] black = 100') } else {item.remove();} } } //------------------------------------ de LR
... View more
Aug 27, 2018
07:08 AM
1 Upvote
Salut ! Application est l'application Illustrator. Je ne pense pas que le document ouvert soit en cause ? Le message d'attente dure une fraction de seconde. (ici Document 4photos_3.ai) Je n'utilise pratiquement pas extendScript.
... View more
Aug 27, 2018
01:21 AM
1 Upvote
Salut ! Cela est peut-être dû à la position de l'origine des règles (globale), en haut à gauche ou en bas à gauche Sinon, applique le script suivant : var thisDoc = app.documents[0]; var tb = thisDoc.visibleBounds; w = tb[2]-tb[0]; h = tb[1]-tb[3]; x = tb[0]; y = tb[1]; cadre = thisDoc.pathItems.rectangle(y,x,w,h); cadre.filled = false; cadre.strokeDashes = [3.5,2]; alert(thisDoc.visibleBounds.join("\r")); alert("rulerOrigin = \r"+thisDoc.rulerOrigin); de LR PS Si vous ouvrez le fichier .pdf dans Illustrator, Il faut, avant de lancer le script supprimer le masque d'écrêtage.
... View more
Aug 26, 2018
01:35 PM
1 Upvote
Salut ! alert(app.documents[0].visibleBounds) Retourne un tableau de 4 nombres Lecture seule. Limites visibles du document, incluant l’épaisseur de contour de tous les objets de l’illustration. - Si le document est vide retourne 0,0,0,0 ------------------- en anglais Read-only. The visible bounds of the document, including stroke width of any objects in the illustration.
... View more
Aug 25, 2018
01:13 AM
Salut William, IL manque tmpBlock.selected; LR
... View more
Aug 22, 2018
01:26 AM
Salut ! Tout est possible, moi, j'ai utilisé seulement des noms Top Left Right est ZOrderMethod if (obj.name == "Top") { Je me suis intéressé seulement aux modes 0 2 5, c'est juste une approche par curiosité, l'objet de base étant Top. Il serait important pour moi de connaître le but exact du script (pour faire quoi exactement ?) Mes coordonnées sont sous la photo de profil. De elleere
... View more
Aug 21, 2018
01:31 AM
3 Upvotes
Salut ! Tu veux réaliser ce genre de travail ? avec 3 objets 1 2 3, je lance le script 3 fois. var j = "0"; j = prompt("Mode ? 0-5",j,""); switch (j) { case ("0"): SSR(-30, 'Top'); break; case ("1"): SSR(30, 'Top'); break; case ("2"): SSR(-30, 'Right'); break; case ("3"): SSR(30, 'Right'); break; case ("4"): SSR(-30, 'Left');break; case ("5"): SSR(30, 'Left'); } De LR
... View more
Aug 17, 2018
01:50 PM
Salut ! Exemple : app.activeDocument.path.modified; donne /i/Documents_ren%C3%A9/illustrator/courbe Sat Apr 05 2014 15:24:16 GMT+0200 alors que : app.activeDocument.fullName.modified donne : /i/Documents_ren%C3%A9/illustrator/courbe/courbeCS.ai Fri Nov 01 2013 13:45:30 GMT+0100 Ensuite, reste à isoler le date et l'heure et comparer. Donnez un exemple de date fixe ? De elleere File object properties modified Date The date of the referenced file’s last modification, or null if the object does not refer to a file on disk. Read only.
... View more
Aug 13, 2018
04:14 AM
1 Upvote
Résultats identiques sur CS2 et CS5 mais pas sur CS (OK). Ce qui pose problème est la police "MyriadPro-Regular", il faut spécifier une autre police de caractères. var orange = macmykColor(0,50,100,0); var noir = macmykColor(0,0,0,100); var nomPolice = "MyriadPro-BoldIt"; //"MyriadPro-Regular"; //Create a new text frame item and assign it to a variable var sampleText = documentRef.textFrames.add(); //Set the contents and position of the TextFrame sampleText.position = new Array(200, 200); sampleText.contents = "Hello World!"; sampleText.textRange.fillColor = orange; sampleText.textRange.textFont = textFonts.getByName(nomPolice);//app.textFonts[315]; sampleText.textRange.characterAttributes.size = 20; sampleText.textRange.characters[1].characterAttributes.size = 12; sampleText.textRange.characters[1].fillColor = noir; //documentRef.textFrames[0].textRange.characters[1].characterAttributes.Size = 12; wordColor(sampleText,1,12,noir,1); function wordColor(objetText,rang,size,couleur,nbMot) { //Change la couleur de 1 ou plusieurs mot(s)) var firstWord; for (var i = rang; i < rang+nbMot; i++){ firstWord = objetText.words; firstWord.fillColor = couleur; firstWord.size = size; } } function macmykColor(c,m,j,n) { //cree une nouvelle couleur CMJN var cmykColor = new CMYKColor(); cmykColor.cyan = c; cmykColor.magenta = m; cmykColor.yellow = j; cmykColor.black = n; return cmykColor; }
... View more
Aug 13, 2018
01:26 AM
Salut ! Effectivement, j'ai essayé sur CS6 et j'ai rencontré le même problème 11.99 ou 12.01 > OK mais pas 12 ?? Idem en JavaScript : // JavaScript Document var documentRef = app.documents.add(); //Create a new text frame item and assign it to a variable var sampleText = documentRef.textFrames.add(); //Set the contents and position of the TextFrame sampleText.position = new Array(200, 200); sampleText.contents = "Hello World!"; sampleText.textRange.characterAttributes.size = 20; sampleText.textRange.characters[1].characterAttributes.size = 11.99; // ou 12.01 OK //documentRef.textFrames[0].textRange.characters[1].characterAttributes.size = 12; de LR
... View more
Aug 08, 2018
02:35 AM
Salut ! Utilisez plutôt JavaScript ----------------------... Rem visual Basic Document Rem Hello World Set appRef = CreateObject("Illustrator.Application") Rem Create a new document and assign it to a variable Set documentRef = appRef.Documents.Add Rem Create a new text frame item and assign it to a variable Set sampleText = documentRef.TextFrames.Add Rem Set the contents and position of the TextFrame sampleText.Position = Array(200, 200) sampleText.Contents = "Hello World!" sampleText.TextRange.CharacterAttributes.Size = 20 ' sampleText.TextRange.Characters(2).CharacterAttributes.Size = 32 documentRef.TextFrames(1).TextRange.Characters(2).CharacterAttributes.Size = 32 --------------------- de LR
... View more
Aug 07, 2018
10:46 AM
Bonjour, Ce devrait être 420x297 non ?
... View more
Aug 06, 2018
10:14 AM
1 Upvote
Salut ! // traite les tracés sélectionnés function test() { var o1 = 80; var o2 = 60 if (!selection.length) return; var sel = selection; function changeOpacity(items) { for(var n = 0; n < items.length; n++) { if (Math.round(items .opacity) == o1) { items .opacity = 60; } } } changeOpacity(sel); } if (app.documents.length) {test();} de LR
... View more
Aug 05, 2018
10:49 AM
Salut ! Je me permet de proposer une autre façon plus souple. I allow myself to propose another more flexible way. // JavaScript Document function test() { if (!selection.length) return; var reverse = false; var sel = selection; function sortVertically(items,zd) { var tab = []; for(var n = 0; n < items.length; n++) { tab = []; tab [0]= items .top; tab [1]= items ; } tab.sort(); if (zd) tab.reverse(); for (n = 0; n < sel.length; n++) { tab [1].zOrder(ZOrderMethod.BRINGTOFRONT); } } sortVertically(sel,reverse); } if (app.documents.length) {test();} de LR
... View more
Jul 30, 2018
02:35 AM
Salut, J'ai réalisé un script qui je pense correspond à ta demande : Avant en haut et après en bas. Me contacter par mail elleere
... View more
Jul 27, 2018
05:38 AM
CompoundPathItem A compound path. These objects are composed of multiple intersecting paths, resulting in transparent interior spaces where the component paths overlap. The pathItems property provides access to the paths that make up the compound path. Paths contained within a compound path or group in a document are returned as individual paths when a script asks for the paths contained in the document. However, paths contained in a compound path or group are not returned when a script asks for the paths in a layer that contains the compound path or group. All paths within a compound path share property values. Therefore, if you set the value of a property of any one of the paths in the compound path, the properties of all other component paths are updated with the new value.
... View more
Jul 27, 2018
04:00 AM
1 Upvote
Salut ! var swatch = documents[0].swatches.getByName("6"); swatch.name = "toto"; de elleere
... View more
Jul 27, 2018
01:46 AM
Salut ! // JavaScript Document function test() { var docRef = activeDocument; var obj, type, liste, tabs, ch; liste = ""; tabs = docRef.pathItems; alert("tabs.length = "+tabs.length) if (tabs.length) { for(var i = 0, o = 0; i < tabs.length; i++) { obj = tabs; type = obj.parent.typename; if(type == "CompoundPathItem") { ch = obj.parent.pathItems[0].fillColor.typename; i += obj.parent.pathItems.length-1; o++; liste += "Objet "+o+" "+type+"\r"+ch+"\r"; } else { ch = obj.fillColor.typename; o++; liste += "Objet "+o+" "+obj.typename+"\r"+ch+"\r"; } } alert(liste); } else alert("Aucun tracé trouvé ?","De Elleere"); } test(); de elleere
... View more