Calling Inkscape from python

Post questions on how to use or achieve an effect in Inkscape.
Robin
Posts: 5
Joined: Thu Dec 17, 2009 6:16 pm

Calling Inkscape from python

Postby Robin » Mon Dec 28, 2009 10:18 am

Is it possible to run the Inkscape command line automatically from a Python script?
Best
R

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: Calling Inkscape from python

Postby RobA » Mon Dec 28, 2009 10:09 pm

Yes, just as python can call any shell command.

either using subprocess.call (preferred) or os.system

-Rob A>

Robin
Posts: 5
Joined: Thu Dec 17, 2009 6:16 pm

Re: Calling Inkscape from python

Postby Robin » Tue Dec 29, 2009 10:46 am

Excellent, so presumably I'd follow that with the necessary inkscape command line options?
Are the command line controls limited to those directly mentioned in the CML help? Or is everything in principal available?
Best
R


Return to “Help with using Inkscape”