Sg2.9
How do I place Symbols?
Recent RSS
How do I place Symbols?
From:  Squis2
Date:  6. October 2009, 14:20

Hi!

Looking through the reference and studying other scripts, I haven't been able to find out how to place a symbol from the symbols palette onto the artboard.

How is this done?

Also: I can't seem to create new topics while logged in :(

Thanks!

Squis

placing symbols
Date:  8. October 2009, 13:41

You can find this in the reference under PlacedSymbol - there is example code when you click on one of the constructors:
http://scriptographer.org/reference/ai/placedsymbol/

This should work, let me know if it doesn't:

var symbol = document.symbols['Name of the Symbol']; 
var placedSymbol = new PlacedSymbol(symbol, new Point(100, 100));
Re: placing symbols
From:  Squis2
Date:  11. October 2009, 10:13

Awesome! Thanks! That's exactly what I was looking for. I'll try to study the reference guide more attentively in future.

Squis

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
L-System 26.10.11