Page 1 of 1

Anime Studio drawing tools are the best on the mac but..

Posted: Thu Jul 28, 2011 2:50 am
by mykylr
Anime Studio drawing tools are the best on the mac but the fill side of things is not up to scratch for me.

Is it possible to get access in scripting to export the vectors for use in illustrator or something like that?

I use Lua for creating games anyway but am not sure what we have access to within anime studio.

Cheers

Mike R

Posted: Thu Jul 28, 2011 6:01 am
by GCharb
There is but a few scripting docs on the forum, but I would say the best way to learn it is to open existing scripts, as most are well documented inside!

Posted: Thu Jul 28, 2011 11:05 pm
by Rudiger
The biggest problem with using another vector program with AS, is that AS has it's own special type of curves that are a subset of the Bezier curves that most vector programs use.

In version 8, it became possible to access the Bezier control points for a curve in AS, so it should be relatively straight forward to export them to SVG format, for example.

local p1 = LM.Vector2:new_local()
local p2 = LM.Vector2:new_local()
local p3 = LM.Vector2:new_local()
local p4 = LM.Vector2:new_local()
curve:GetControlPoints(segID, p1, p2, p3, p4, forDrawing=false)

However, it's going to be a problem if you want to import them back again, as AS will have to convert them back from Bezier curves and you will end up with at least double the number of points you started with.

Are you sure AS's native fill tools won't do what you want? The paint bucket tool makes it pretty easy, as long as all of the edge of the enclosed area are properly bounded. Also, the new auto-welding feature of the freehand tool can help with this.

Posted: Sat Jul 30, 2011 1:25 am
by mykylr
Thanks for that. That helps a lot.

Cheers

Mike

Posted: Sun Jan 22, 2012 3:55 pm
by kaleswat
Rudiger@ you just made my day seriously :) thanks