Potrace and Moho

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Weber
Posts: 2
Joined: Tue Dec 07, 2004 4:42 pm

Potrace and Moho

Post by Weber »

Hi, Potrace http://potrace.sourceforge.net/ is a powerfull utility to raster to vector conversion. You can see it in action inside inkscape at www.inkscape.org. Potrace is opensource, is best than CorelTrace, Streamline, traceline or others raster to vectors converter aplications. I think that it can be work with moho by a script.
Workflow.
1-A twain script utility to scan from any scanner a sequence of drawings.
2-A script to raster to vector using potrace.

I don´t know if potrace have a option to detect the line not the contour of a object, if yes, potrace can be used to make a raster to vector conversion to make all lines of a object and use moho to change line width or effect. If not, maybe can use autotrace, another raster to vector converter.

I know that Moho isn´t for traditional animation, but this script can be helpful to make some animations that need some drawings by hand.
User avatar
AcouSvnt
Posts: 190
Joined: Wed Aug 04, 2004 4:14 am
Location: Rochester, NY
Contact:

Post by AcouSvnt »

Have you used it successfully with Moho, though? I posted here a little while ago about how I was having trouble importing the EPS files.
-Keith
Weber
Posts: 2
Joined: Tue Dec 07, 2004 4:42 pm

Post by Weber »

See what I mean at:
http://cscott.net/Projects/Mallard/

But I can´t import a EPS file created by Inkscape into Moho. Moho don´t understand the format for while.

I´m not a programmer but I think that someone can be make a powerful script to moho with these suggestions. Moho team can do?
Nichod
Posts: 184
Joined: Fri May 20, 2005 10:12 pm
Location: USA
Contact:

Post by Nichod »

I disagree with it being better then Streamline, but it is a nice conversion tool.
Sometimes in order to accomplish something you need to not sleep.
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

Well, I could use Potrace on my Macintosh PC without a sweat, with the following workflow.

First I drew a bitmap file (see below) in black and white, "test.bmp". Then I used Protrace in Terminal:

Code: Select all

/Applications/protrace/protrace -o test.eps -e test.bmp
I read the resulting file, "test.eps" in Preview and saved as "test.pdf". This file I opened in MacGSView (OS 9 freeware program) and exported to Adobe Illustrator format, "test.ai". This file could easily be loaded into Moho.

The original file
Image

The resulting Moho file (selected all points and created a black 1px outline and white fill, background is colored to show what has happened).
Image

I guess this workflow (EPS file->Preview->MacGSView->Moho->vector layer) can be used for other EPS files as well.

Programs used:
- Protrace (Freeware)
- Terminal and Preview (Mac OS X system utilities)
- MacGSView (Freeware)
- Moho (Shareware)
(Macintosh OS X 10.3.9)

I don't know enough about Linux and Windows, but I guess there is a workflow possible in these systems as well, without having to buy extra software (like Adobe Illustrator).

Good luck and thanks for reading :D

PS Here's some artwork I created by manipulating the imported AI file in Moho:
Image
janimatic
Posts: 136
Joined: Sat Mar 26, 2005 12:22 am
Contact:

Post by janimatic »

i just posted a similar script here

http://www.lostmarble.com/forum/viewtopic.php?t=1404

it use autotrace (ras2vec was the old project name i believe they all rob it)

PS : MAC osX autotrace ?

-> native Autotrace have been ported to os X tiger
http://autotrace.darwinports.com/

-> I don't have a Mac here,
but it seems like delineate
http://delineate.sourceforge.net/download.html
packages autotrace and potrace together in a java app...

Anyone can test it and tell us ?
Post Reply