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

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
mykylr
Posts: 60
Joined: Fri Nov 23, 2007 1:15 pm

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

Post 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
User avatar
GCharb
Posts: 2276
Joined: Sun Oct 09, 2005 6:31 pm
Location: Montreal, Quebec, Canada
Contact:

Post 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!
Rudiger
Posts: 786
Joined: Sat Dec 17, 2005 5:25 pm

Post 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.
mykylr
Posts: 60
Joined: Fri Nov 23, 2007 1:15 pm

Post by mykylr »

Thanks for that. That helps a lot.

Cheers

Mike
kaleswat
Posts: 1
Joined: Sun Jan 15, 2012 10:55 am
Contact:

Post by kaleswat »

Rudiger@ you just made my day seriously :) thanks
Post Reply