Hi, I'm quite new to writing extensions but have been altering and adding parameters to one that saves paths as an open SCAD format.
Everything is working fine... except I'm stuck on trying to somehow get <id> and <_name> into the python script so I can write the values into comments.
Tried to find a way to grab the values directly... then tried to make a hidden parameter in the .INX file to pass it.
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>OpenSCAD Bezier V1.0</_name>
<id>au.gov.aims.openscad.bezier</id>
Have been googling for a few hours now and no closer.
The full .INX is attached.
I need to be able to either "copy" the values into the hidden parameter default values or find a way in the .py script to just read the values similar to what's done with :-
self.m_prec = int(self.options.prec)
self.m_testcode = int(self.options.testcode)
self.m_suffix = makeSuffix(self.options.fn) # make sure a valid name
self.m_name1 = "imageDim_" + self.m_suffix
self.m_name2 = "imageDraw_" + self.m_suffix
self.m_libcode = makeSuffix(self.options.libcode) # whether to include internal bezier library code
self.m_libname = makeLibname(self.options.libname)
Any help appreciated.