Highlighted

same clipping mask for multiple objects - repeating

Community Beginner ,
May 20, 2020

Copy link to clipboard

Copied

Hi everybody, please help!!

 

does anybody know how to use same mask clipping for each other object.. I`m creating a product catalogue, and have installed creator for ean codes in it, but they are all too big. so I have made smaller rectangle and clipped, and now is there any solution to repeat this (like for example "transform each again (ctrl-D) - but this is not transforming because I want numbers to stay big and just lines to be shorter)

I hope I explained it ok.. I have about 400 ean codes and have to finish it very soon so I`m looking for fastes solution

 

left code is after clipping mask, right code is original size... is there any repeating action shortcut or something similar

 

majak51206612_0-1589984514694.png

 

thanks in advance for creative thinking 🙂

Hello ,

It must to be with Script, try this,

***************************

//created by Cmartinez-Gdelgado
//Make sure all artworks must to be in a separate artboards//

var i, ii, doc, count, itemList, countArtboards, artboardIndex;
doc = app.activeDocument;
countArtboards = doc.artboards.length;

for (ii = countArtboards-1; ii >= 0; ii--) {
artboardIndex = doc.artboards.setActiveArtboardIndex(ii);
app.executeMenuCommand("selectallinartboard");
app.executeMenuCommand("makeMask");
}
doc.selection = null;
app.redraw();

*********************************

any cuestion let me know! 🙂

Topics

Draw and design, How to, Scripting, Tools

Views

940

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

same clipping mask for multiple objects - repeating

Community Beginner ,
May 20, 2020

Copy link to clipboard

Copied

Hi everybody, please help!!

 

does anybody know how to use same mask clipping for each other object.. I`m creating a product catalogue, and have installed creator for ean codes in it, but they are all too big. so I have made smaller rectangle and clipped, and now is there any solution to repeat this (like for example "transform each again (ctrl-D) - but this is not transforming because I want numbers to stay big and just lines to be shorter)

I hope I explained it ok.. I have about 400 ean codes and have to finish it very soon so I`m looking for fastes solution

 

left code is after clipping mask, right code is original size... is there any repeating action shortcut or something similar

 

majak51206612_0-1589984514694.png

 

thanks in advance for creative thinking 🙂

Hello ,

It must to be with Script, try this,

***************************

//created by Cmartinez-Gdelgado
//Make sure all artworks must to be in a separate artboards//

var i, ii, doc, count, itemList, countArtboards, artboardIndex;
doc = app.activeDocument;
countArtboards = doc.artboards.length;

for (ii = countArtboards-1; ii >= 0; ii--) {
artboardIndex = doc.artboards.setActiveArtboardIndex(ii);
app.executeMenuCommand("selectallinartboard");
app.executeMenuCommand("makeMask");
}
doc.selection = null;
app.redraw();

*********************************

any cuestion let me know! 🙂

Topics

Draw and design, How to, Scripting, Tools

Views

941

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
May 20, 2020

Copy link to clipboard

Copied

Looks like a candidate for a script.

Are these images? Then maybe a Photoshop action can do the job.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
May 20, 2020

Copy link to clipboard

Copied

jesus! vector mask and action. i automatically avoid photoshop when doing ean codes, professional deformation 🙂

 

no, they are not images, I just did screen shot, has to be vectors.

I`ll try and let you know!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
May 21, 2020

Copy link to clipboard

Copied

Hi,

 

I created an action, but I did it succesfully in Illustrator! 😄 With clipping mask action wasn`t working, but removing numbers, ungrouping and resizing each line of a code step by step and move lines down to numbers - WORKED! The numbers are left from ean-maker extension.. I think so far this is the fastest solution for someone who has to create "million" ean codes in one/two days, and looks nice.

ean maker extension in Illustrator is great but the smallest size is still too big for nice page layout. It is good for exaple for packaging etc

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
May 22, 2020

Copy link to clipboard

Copied

Good to hear the Action way worked.

You are resizing each line step by step, but you can speed it up by recording Object > Transform >  TransformEach... and scale the lines verically from the bottom (with Scale Strokes unchecked).

The lines need to be ungrouped  for Transform Each to work.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
May 20, 2020

Copy link to clipboard

Copied

There may be different approaches to achieve that, but it would be helpful if you were providing at least a couple of sample .ai files, so one may check what could be a reasonably simple way to do what you want to do.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
May 20, 2020

Copy link to clipboard

Copied

Salut majak!

 Tu règle H à ta mesure et Après sélection des codes barre (image ou groupe)

tu lance le script...

// JavaScript Document for Illustrator
// Réalisation Landry R Wed, 20 May 2020 21:21:52 GMT
// INIT -----
var H = 40;
var dec = 2;
//-----------
var docRef = app.activeDocument;
var selectedItems = selection;
    for (var i = 0; i < selectedItems.length; i++) {
      var item = selectedItems[i];
      var newGroup = layerParent(item).groupItems.add();
          item.move(newGroup,ElementPlacement.PLACEATEND);
      var GBounds = item.geometricBounds;
      var propGobj = prop(GBounds);
      var cadre = newGroup.pathItems.rectangle(GBounds[3]+H,GBounds[0]-dec,propGobj[0]+2*dec, H+dec);
          newGroup.clipped = true;
          newGroup.selected = false;
    }
//--------------------
function layerParent(obj)
{ // détecte le calque parent de obj
  var parent = obj.parent;
  while (parent.typename != "Layer") parent = parent.parent;
  return parent;
}
//---------------
function prop(Bounds) {return [Bounds[2]-Bounds[0],Bounds[1]-Bounds[3]];}
//---------------

de elleere

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
May 21, 2020

Copy link to clipboard

Copied

sory Rene! speed error..

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
May 22, 2020

Copy link to clipboard

Copied

Hi majak!

C'est compris, j'ai cependant une petite remarque, la méthode des masques bien que pratique ne me semble pas très adaptée aux éléments vectoriels.

Je te propose un script qui ajuste la longueur des traits à partir de la base, ainsi les codes barre sont modifiables à tout momment (quelque-soit l'orientation).

(on peut même ajouter des boutons +   -  et view accepté si satisfait)

Le script ne sera pas gratuit.

Si intéressé me contacter par mail.

René

https://share.orange.fr/#qHoaG4zxEY33580601e4

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
May 20, 2020

Copy link to clipboard

Copied

Hello ,

It must to be with Script, try this,

***************************

//created by Cmartinez-Gdelgado
//Make sure all artworks must to be in a separate artboards//

var i, ii, doc, count, itemList, countArtboards, artboardIndex;
doc = app.activeDocument;
countArtboards = doc.artboards.length;

for (ii = countArtboards-1; ii >= 0; ii--) {
artboardIndex = doc.artboards.setActiveArtboardIndex(ii);
app.executeMenuCommand("selectallinartboard");
app.executeMenuCommand("makeMask");
}
doc.selection = null;
app.redraw();

*********************************

any cuestion let me know! 🙂

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
May 20, 2020

Copy link to clipboard

Copied

yes it looks like it is the only way, it just takes little time to prepare all artworks on different artboards, but it`s working for one at each board, and then repeat

 

thank you Gdelgado!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
May 21, 2020

Copy link to clipboard

Copied

Bonjour majak,

Soit, tu as remercié Gdelgado, mais tu as oublié les autres intervenants...

Un peu de correction serait de mise.

René

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...