give a value in c and show in inkscape

Discussion about writing code for Inkscape.
mohsin
Posts: 1
Joined: Sat Jun 15, 2013 8:41 pm

give a value in c and show in inkscape

Postby mohsin » Wed Jun 19, 2013 3:45 pm

Hi everyone,

I am a programmer, new to inkscape. i need to know about connectivity of inkscape with programming languages like c, c++.
For instance, i just need to give a value lets say int i =10; i need this value to show on inkscape screen.

help please. . !

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: give a value in c and show in inkscape

Postby Lazur » Thu Jun 20, 2013 8:47 am

Welcome aboard!

For such basic things you can write extensions, where you can use mainly python.
http://wiki.inkscape.org/wiki/index.php/Script_extensions
Some other languages can be included as well but the whole thing is not so well documented.

User avatar
shawnhcorey
Posts: 149
Joined: Mon Jan 07, 2008 12:17 pm

Re: give a value in c and show in inkscape

Postby shawnhcorey » Fri Jun 21, 2013 5:41 am

I haven't tried this but you can create your own extensions. When you make a selection in Inkscape and run an extension on it, the SVG for the selection is sent to it via stdin and it expects the convert SVG back thru stdout.


Return to “Programming”