Skip to content

use simpIncScr in other extension #141

Answered by spakin
pat123456 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the code sample. I was able to use it to reproduce the problem.

What's happening is that Simple Inkscape Scripting initializes its data structures during execution of its effect method. But Simple Inkscape Scripting's effect method is never called; only Hello's effect method is called. Unfortunately, the solution is not as simple as explicitly invoking Simple Inkscape Scripting's effect method because effect relies on variables that inkex initializes when invoking the extension. But inkex isn't invoking the Simple Inkscape Scripting extension; it's invoking the Hello extension. Ugh.

As a horribly ugly solution, you can manually initialize just enough of Simple Inkscape Scriptin…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@spakin
Comment options

@pat123456
Comment options

@spakin
Comment options

Answer selected by pat123456
Comment options

You must be logged in to vote
4 replies
@spakin
Comment options

@svalade
Comment options

@spakin
Comment options

@svalade
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants