Stone Design Forums

Discussion for all things pertaining to Stone Design software
It is currently Sat May 25, 2013 7:49 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Scripting layers?
PostPosted: Sun Feb 26, 2006 4:30 pm 
Offline

Joined: Sun Feb 26, 2006 3:37 pm
Posts: 1
When I manually create graphics I can use layers to separate them.

Trying to do the same on a script created doc.

Make a new doc with layers

property symcalLayers : {"timeLine", "grid", "annotations"}
tell application "Create"
make new document at before front document
repeat with layername in symcalLayers
tell last page of front document to make new pagelayer at end with properties {layername:layername}
end repeat
end tell

This makes my doc with layers but cannot figure how to get grahics in each layer. This will get graphics in page but each graphic is in all three layers.

tell application "Create"
set cnt to 1
repeat with layername in symcalLayers
tell last page of front document
make new text area at end with properties {x position:200, y position:(100 + (cnt * 80) + 20), width:129, height:17, text contents:(layername & " layer")}
end tell
set cnt to cnt + 1
end repeat
end tell

But I can't 'tell pagelayer 2 of last page of front document' because pagelayers don't have graphics. Seems I need to set some context that causes drawing to be done in the 'selected' pagelayer?

Suggestons appreciated.

Terry


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group