diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-08-02 13:52:37 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-08-02 13:52:37 +0400 |
commit | 9d2173518cd7da7d18bb032c8537c8952abc2b78 (patch) | |
tree | 5fd02e1b8013ed6a37915cacfabb960dd9f66877 /source/blender/blenkernel/BKE_node.h | |
parent | 0a782a4550904cdec15efbf5bf81c8be144896ee (diff) |
Clipboard feature for nodes. With the Copy operator a copy of all selected nodes and links between them is stored in an offscreen list (not in the library). The Paste operator then in turn copies these into the active node tree in the editor.
Currently does not support copying of animation data. This would require copying of individual fcurves etc. between data block, which is not implemented yet.
Also it is currently possible to circumvent some constraints of the nodes, in particular for node groups (e.g. no groups inside groups, render layer not inside groups).
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 93b5e748987..00bdbbf4537 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -384,6 +384,13 @@ void nodeFreePreview(struct bNode *node); int nodeSocketIsHidden(struct bNodeSocket *sock); void nodeSocketSetType(struct bNodeSocket *sock, int type); +/* Node Clipboard */ +void nodeClipboardClear(void); +void nodeClipboardAddNode(struct bNode *node); +void nodeClipboardAddLink(struct bNodeLink *link); +const struct ListBase *nodeClipboardGetNodes(void); +const struct ListBase *nodeClipboardGetLinks(void); + /* ************** NODE TYPE ACCESS *************** */ struct bNodeTemplate nodeMakeTemplate(struct bNode *node); |