I'm struggling to call the imported extension effect() function on.
def incadiff_panes(self, pane_):
import incadiff
diff_layer = self.svg.add(Layer.new('DIFF'))
diff_ = []
for pane in pane_:
diff_shape = pane['shape'].copy()
diff_shape.label = diff_shape.label + '_DIFF'
diff_layer.add(diff_shape)
pane['shape_diff'] = diff_shape
diff_.append(diff_shape)
# select shapes in list and run incadiff on them?
id_list = [d.get_id() for d in diff_]
# inkex.errormsg(id_list)
selection = self.svg.selection
# selection.set(id_list[0],id_list[1])
selection.clear()
for id in id_list:
selection.add(id)
inca = incadiff.IncadiffExtension(self)
Throws
AttributeError: module 'incadiff' has no attribute 'IncadiffExtension'
Hi,
I know I can import other extension scripts.
I'm struggling to call the imported extension effect() function on.
Throws
I see examples of scripts that import pathmodifier, and then inherit it in the main class.
Feels like the wrong thing, but maybe the only way?
I’ll try to get it going with the CLI actions first.
I see examples of scripts that import pathmodifier, and then inherit it in the main class.
Feels like the wrong thing, but maybe the only way?
I’ll try to get it going with the CLI actions first.
I realized I can inherit the classes of the two extensions I'm hoping to use within my script.
Trying it tonight.
The expectation is that all the effect functions shadow each other, but any other methods are available?
I think the idea is to inherit from inkex and then implement your logic by overriding the effect() function.