Hello Phil,
Thank you for responding. I am just following the panel tutorial and using the code provided in the Rack SDK, more specifically helper.py, and not any of my own code. I’m trying to import my component information from my .svg file. I figure this should be a generic issue, since I am just following instructions and using the example code. Let me walk you through what I did, and perhaps it will be more clear where I went wrong:
I created two layers in Inkscape; one for the panel and one for the components. I created a test parameter component by using the circle object, changing its color to #ff0000 and making sure it is in the “components” layer. I then run the python script:
/helper.py createmodule res/.svg src/.cpp
But modified to address the files I am working with. When I try this, I get the result:
Module MyModule already exists in plugin.json. Edit this file to modify the module manifest.
Panel found at /Users/ryanpage/Downloads/Rack-SDK/MyPlugin/res/MyModule.svg. Generating source file.
/Users/ryanpage/Downloads/Rack-SDK/MyPlugin/src/plugin.cpp already exists. Overwrite? [n]: y
Found 0 params, 0 inputs, 0 outputs, 0 lights, and 0 custom widgets.
Components extracted from /Users/ryanpage/Downloads/Rack-SDK/MyPlugin/res/MyModule.svg
Source file generated at /Users/ryanpage/Downloads/Rack-SDK/MyPlugin/src/plugin.cpp
To enable the module, add
*extern Model modelMyModule;
to plugin.hpp, and add
p->addModel(modelMyModule);
to the init() function in plugin.cpp.
I hope this clarifies things a bit.