Inkscape 0.92: interactivity is it only Javascript?

Post questions on how to use or achieve an effect in Inkscape.
Posts: 1
Joined: Wed Mar 13, 2019 7:36 pm

Inkscape 0.92: interactivity is it only Javascript?

Postby thebruuu » Wed Mar 13, 2019 7:39 pm


Is it possible to add non javascript code in the interactivity part of the object properties?
I would like to see the stroke property change within inkscape .... is it possible?


User avatar
Posts: 1204
Joined: Fri May 08, 2009 1:18 am
Location: UK

Re: Inkscape 0.92: interactivity is it only Javascript?

Postby Xav » Thu Mar 14, 2019 5:48 pm

It's only JavaScript. The interactivity sections correspond to attributes that are added to the XML file, and which are only interpreted by browsers - which, in turn, only support JavaScript.

Inkscape itself does not have a JS interpreter, so although you can enter some JS in those sections for use in a browser, Inkscape itself doesn't run the code. I don't know of any other way to add interactivity that will have an effect within Inkscape itself.

My long-running tutorial series is currently in the middle of a lengthy section on JS in SVG and Inkscape. It may not serve your requirements, but it's worth mentioning in case anyone else reads this thread and wants to pursue some JS in SVG for use in a browser.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 8 guests