Regroup objects after running an extension

Asked by Pablo Salce on 2018-09-28

Hey everyone I am working on an extension that adds labels to objects and would like to know if there is a way to either group the objects after the extension runs or keep the objects selected after the extension runs any help would be appreciated thank you

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-29
Last reply:
2018-11-14
Hachmann (marenhachmann) said : #1

In Inkscape 0.92.3, there is no way to change the document *after* an extension has run, and objects are deselected automatically.

In future versions (from 1.0 on), objects will stay selected. There is even a rudimentary Live Path Effect that adds labels to objects (but doesn't seem to allow to position the text, and the text stays in place when the object is moved...and it cannot be removed again ?!?).

You can group objects from within the extension.

There's also this extension: https://inkscape.org/en/~whidev/%E2%98%85ids-to-text-elements

Pablo Salce (pabs13) said : #2

Do you have any examples of grouping objects in an extension, a code snippet or an existing extension?

Hachmann (marenhachmann) said : #3

Interpolate, for example. Many others in the 'Render' submenu, too.

Launchpad Janitor (janitor) said : #4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.