https://bugs.kde.org/show_bug.cgi?id=412846
            Bug ID: 412846
           Summary: Expose ways to select/deselect nodes in the Layer
                    docker
           Product: krita
           Version: 4.2.7
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: dev.lar...@gmail.com
  Target Milestone: ---

SUMMARY
I'm working on a python plugin (https://github.com/Larpon/krita-bulk-actions)
that can trigger actions/functions on multiple nodes at once based on layer
name matching.

I'd like to include a way to select and deselect nodes. The reason for this is
to have a way to quickly select a group of layers I want to export (currently
using "Batch Exporter" from GDQuest but it's useful for all types of operations
done on selected layers).

Now, I can't find any calls in the API to toggle the selection state of a Node.

I've found this with help from @tiar-dg on IRC:
https://code.woboq.org/kde/calligra/krita/ui/kis_node_manager.h.html#_ZN14KisNodeManager16setSelectedNodesE5QListI12KisSharedPtrI7KisNodeEE
 

My guess is that we'd also need a setDeselectedNodes or setDeselectedAll()
function as well - if not already there somewhere.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to