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

Show/Hide guides via JavaScript?

$
0
0

Show/Hide guides via JavaScript?

 

With this script I can delete all guides in all open documents:

 

for (d = 0; d < app.documents.length; d++) {

  var targetDocument = app.documents[d];

  activeDocument = targetDocument;

  var doc = app.activeDocument;

  for (var i = doc.pathItems.length-1; i >= 0; i--) {

  var p = doc.pathItems[i];

  if (p.guides == true) {

  p.remove();

  }

  }

}

 

But, how can I modify this script for show/hide guides?

 

Thanks.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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