03)オブジェクトを作成する

| コメント(0) | トラックバック(0)

rectangleを作成

tell application "Adobe Illustrator"
	tell document 1
		make new rectangle at beginning with properties ¬
		{bounds:{0, 200, 200, 50}, fill color:{cyan:100, magenta:100, yellow:0, black:0}}
	end tell
end tell

text frameを作成(ポイントテキストとエリアテキスト)

tell application "Adobe Illustrator"
	tell document 1
		--ポイントテキスト
		make new text frame at beginning with properties ¬
		{position:{0, 200}, contents:"あいうえお"}
		--エリアテキスト
		make new text frame at beginning with properties¬
		 {geometric bounds:{100, 90, 160, 180}, contents:"かきくけこ", kind:area text}
	end tell
end tell

path itemを作成(entire pathで線の両端の座標を指定する。)

tell application "Adobe Illustrator"
	tell document 1
		make new path item at end with properties ¬
		{stroke color:{cyan:C, magenta:M, yellow:Y, black:K}, ¬
		stroke width:W, entire path:{{class:path point info, anchor:{X1, Y1}}, ¬
		{class:path point info, anchor:{X2, y2}}}}
	end tell
end tell

トラックバック(0)

トラックバックURL: http://www.adg7.com/mt/mt-tb.cgi/54

Comments are nofollow setting

コメントする

エントリー一覧

OpenID対応しています OpenIDについて
Powered by Movable Type 7.902.0
漢字イラストロジック-脳トレ京
FREE ONLINE SUDOKU