Scriptographer.org - Help
http://scriptographer.org/forum/help/
Scriptographer.org2015年11月24日 02:27:04 +0100enTrouble with save() ? a bug?
http://scriptographer.org/forum/help/trouble-with-save-a-bug/
http://scriptographer.org/forum/help/trouble-with-save-a-bug/2015年11月24日 02:27:04 +0100Graham van de Ruit
<p>Firstly, is there a way to specify a file location for save() so that I can fully automate the saving process and don’t have to respond to dialogues? I want to procedurally create and save about 100 files. I’d also like to be able to specify the file type, if I can, though .ai will work in this case.
</p>
<p>
I’m having some trouble with the save() function of Document. It seems to be linked to point text objects, as the error only happens when save() appears after I create these. I haven’t done extensive testing with other document items.
</p>
<p>
When I run the script I am presented with the Save As dialogue, then the dialogue that lets me choose the Illustrator version. The file then closes, thanks to the close() function I included, but logs “Unknown error” then “null” to the console. When I open the file again it logs “Unknown error” again, and sometimes keeps doing it, even after I’ve closed all documents. Most of the text attributes (character and paragraph styles) applied to the text in the script have not actually been applied. If I quit Illustrator and start it up again the following message appears in the console:
</p>
<p>
“Nov 24, 2015 2:52:57 AM java.util.prefs.WindowsPreferences <br>
WARNING: Could not open/create prefs root node SoftwareJavaSoftPrefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.”
</p>
<p>
The following script reproduces the error for me:
</p>
<pre class="code">var myDoc = new Document('My test document', 450, 300);
var myPath = new Path.Rectangle(new Point(document.size.width / 3, document.size.height / 3), new Point(document.size.width / 3 * 2, document.size.height / 3 * 2));
var myTitle = new PointText(new Point(document.size.width / 2, document.size.height - 30));
myTitle.content = 'Testy McTexticle';
myTitle.characterStyle.font = app.fonts['Chaparral Pro']['Semibold'];
myTitle.characterStyle.fontSize = 12;
myTitle.paragraphStyle.justification = 'center';
myTitle.characterStyle.fillColor = new CMYKColor(0,1,0,0);
myDoc.save();
myDoc.close();</pre>
<p>
If I leave out the text item and its attributes then it works with no problem.
</p>
<p>
I’m using Scriptographer version 2.9.073 in Illustrator CS4 on Windows 10. Let me know if there’s any other info that would be useful. I’d appreciate any help.
Installing
http://scriptographer.org/forum/help/installing/
http://scriptographer.org/forum/help/installing/2015年8月27日 22:41:55 +0200jgot
<p>Hello! when I installed Scriptographer I by accidentally did not put my script folder in my documents.
</p>
<p>
how do I change that?
</p>
<p>
Thanks!
Crop marks error
http://scriptographer.org/forum/help/crop-marks-error/
http://scriptographer.org/forum/help/crop-marks-error/2015年8月18日 17:10:02 +0200mydeen
<p>1. Crop marks error <br>
2. Error 24. palette not function Adobe cc Illustrator
<p><div class="resource">
<a href="/forum/help/crop-marks-error/posts/5719/resources/Crop.jpg/" target="_blank"><img width="240" height="135" src="/forum/help/crop-marks-error/posts/5719/resources/Crop.jpg?v=c8ac17b2da7888722cc9d4bdf8cb7984" id="thumb-1"></a>
</div>
</p>Adobe photoshop cs6
http://scriptographer.org/forum/help/adobe-photoshop-cs6/
http://scriptographer.org/forum/help/adobe-photoshop-cs6/2015年8月08日 23:58:32 +0200Clipping path
<p>how to create a gif image in adobe Photoshop cs6 ?<br>
I am try to do it but i can't do it .please help me to do that ...<br>
thanks
Phyllotactic Spiral Script?
http://scriptographer.org/forum/help/phyllotactic-spiral-script/
http://scriptographer.org/forum/help/phyllotactic-spiral-script/2015年7月09日 20:28:03 +0200Miles-e-piles
<p>Hello,<br>
I'm sorry, I'm clueless. Got Illustrator CS5. Got Scriptographer installed. Downloaded and added Phyllotactic Spiral script (.js file). Able to play/access Phyllotactic Spiral script, so I'm getting the menu window with it's various options. But I can't see any 'OK' button to actually run the script!
</p>
<p>
Anyone know of a tutorial that will take me through the process? Perhaps there's a really simple solution to this problem? What am I not doing?
</p>
<p>
I've attached an example of the type of spiral I want to create.
</p>
<p>
Any/all advice greatly appreciated.
</p>
<p>
Thanks,<br>
Miles-e-piles.
<p><div class="resource">
<a href="/forum/help/phyllotactic-spiral-script/posts/5640/resources/Screen+Shot+2015年07月09日+at+19.21.55.png/" target="_blank"><img width="240" height="212" src="/forum/help/phyllotactic-spiral-script/posts/5640/resources/Screen+Shot+2015年07月09日+at+19.21.55.png?v=c8ac17b2da7888722cc9d4bdf8cb7984" id="thumb-2"></a>
</div>
<div class="resource">
<a href="/forum/help/phyllotactic-spiral-script/posts/5640/resources/sunflowermodel1-svg.jpg/" target="_blank"><img width="240" height="185" src="/forum/help/phyllotactic-spiral-script/posts/5640/resources/sunflowermodel1-svg.jpg?v=c8ac17b2da7888722cc9d4bdf8cb7984" id="thumb-3"></a>
</div>
<div class="icon icon-small">
<a href="/forum/help/phyllotactic-spiral-script/posts/5640/resources/1284/"><div class="icon-image"><img src="/static/type/assets/icons/text_small.gif" width="16" height="16"></div><div class="icon-label"></div></a>
</div>
</p>Working with random position for symbols
http://scriptographer.org/forum/help/working-with-random-position-for-symbols/
http://scriptographer.org/forum/help/working-with-random-position-for-symbols/2015年6月25日 01:01:16 +0200Sacha Finsterbusch
<p>Hello, I'm currently working with the Graffmaster Script. I want to use symbols that works in random positions and sizes, but all I get is the symbol in the middle and not in random positions.
</p>
<p>
This is what I have at the moment.<br>
Any help will be valuable for me.
</p>
<p>
Thanks
</p>
<pre class="code">
var values = {
size: 50,
radius: 100,
dichte: 10
}
function onOptions() {
values = Dialog.prompt('graffmaster:', {
size: { description: 'size' },
radius: { description: 'radius' },
dichte: { description: 'dichte' }
}, values);
}
function onMouseDrag(event) {
for (var i = 1; i < values.dichte; i++) {
var rotation = (Math.random() * 360).toRadians();
var rota = (Math.random() * 105).toRadians();
var ro = (Math.random() * 240).toRadians();
var roma = (Math.random() * 45).toRadians();
var rad = new Point(values.radius * Math.random(), values.radius * Math.random());
var center = event.point + rad.rotate(rotation);
var cen = event.point + rad.rotate(rota);
var cento = event.point + rad.rotate(ro);
var centoro = event.point + rad.rotate(roma);
var newSize = values.size * Math.random();
var newSi = values.size * Math.random();
var newSixe = values.size * Math.random();
var RegularPolygon = new Path.RegularPolygon(cen, 5, newSi);
var Triangle = new Path.RegularPolygon(cento, 3, newSixe);
var Circle = new Path.Circle(center, newSize);
RegularPolygon.fillColor = new CMYKColor(0.1, 0, 1, 0);
Circle.fillColor = new CMYKColor(Math.random(), 1, 0, 0);
Triangle.fillColor = new CMYKColor(1, 0, 0, 0);
var symbol = document.symbols['Rocket'];
var placedSymbol = new PlacedSymbol(symbol, centoro);
var symbol = document.symbols['Ro'];
var placedSymbol = new PlacedSymbol(symbol, cento);
var symbol = document.symbols['Ret'];
var placedSymbol = new PlacedSymbol(symbol, cen);
}
}
</pre>
<p><div class="icon icon-small">
<a href="/forum/help/working-with-random-position-for-symbols/posts/5619/resources/bubbelbubblingMaster.js/"><div class="icon-image"><img src="/static/type/assets/icons/code_small.gif" width="16" height="16"></div><div class="icon-label">bubbelbubblingMaster.js</div></a>
</div>
</p>visibleRange returns only the first character
http://scriptographer.org/forum/help/visiblerange-returns-only-the-first-character/
http://scriptographer.org/forum/help/visiblerange-returns-only-the-first-character/2015年5月27日 13:19:27 +0200vertex
<p>Hello,
</p>
<p>
the following example creates an text area where only the subtext 'Text which will' is visible.
</p>
<pre class="code">
var bottomLeft = new Point(10, 10);
var size = new Size(50, 50);
var rectangle = new Rectangle(bottomLeft, size);
var areaText = new AreaText(rectangle);
areaText.content = 'Text which will appear within the path';
console.log(areaText.visibleRange.content); // prints only 'T'
</pre>
<p>
I've expected, that <tt>areaText.visibleRange</tt> will be the visible subtext, but regardless of the text box size, it returns only the first character.
</p>
<p>
I need this to check, if the whole text in an text area is visible.
</p>
<p>
Ciao Olli
<p><div class="resource">
<a href="/forum/help/visiblerange-returns-only-the-first-character/posts/5599/resources/textbox.png/" target="_blank"><img width="136" height="124" src="/forum/help/visiblerange-returns-only-the-first-character/posts/5599/resources/textbox.png?v=c8ac17b2da7888722cc9d4bdf8cb7984" id="thumb-4"></a>
</div>
</p>Illustrator CS5
http://scriptographer.org/forum/help/illustrator-cs5/
http://scriptographer.org/forum/help/illustrator-cs5/2015年5月01日 12:03:41 +0200HBee
<p>Windows 8 + Illustrator CS5 + Java TM Platform SE 7 U65 + Scriptographer
</p>
<p>
These are the details of my system. I cannot seem to find the Scriptographer file in Illustrator after I've pasted it in the plugins folder of CS5. I've also restarted the program. Anyone any ideas? Thanks!
Scriptographer quary
http://scriptographer.org/forum/help/scriptographer-quary/
http://scriptographer.org/forum/help/scriptographer-quary/2015年4月13日 16:59:34 +0200Sourav Bhattacharyya
<p>Hello -
</p>
<p>
I recently downloaded Scriptographer 2.9.073<br>
Placed the folder into the plug-ins folder of Adobe® Illustrator cs5.<br>
And when I launched "AI", nothing happen.<br>
Furthermore I don't see the "scriptographer folder under the "window" menu" of AI.
Trying to create this halftone effect
http://scriptographer.org/forum/help/trying-to-create-this-halftone-effect/
http://scriptographer.org/forum/help/trying-to-create-this-halftone-effect/2015年3月18日 07:47:31 +0100crease
<p>Hi ive been trying to work out how to create this type of halftone effect which is quite common using shapes arranged uniformly.
</p>
<p>
If someone could help that would be fantastic!
</p>
<p>
Thanks!