Thumb

<aside> <img src="/icons/list-indent_gray.svg" alt="/icons/list-indent_gray.svg" width="40px" />

目次:

</aside>

選択しているノードの保存


nuke.nodeCopy(filepath)

ノードの読み込み


D&D 相当

nuke.tcl('drop', filepath)
nodes = nuke.selectedNodes()

ツールセットの読み込み相当

nuke.nodePaste("C:/path/to/nodes.nk")

ダイアログで読み込み

import nuke

def load_nodes_with_dialog():
    path = nuke.getFilename("ノードを読み込む", "*.nk")
    if path:
        nuke.nodePaste(path)

load_nodes_with_dialog()

クリップボード経由

nuke.nodePaste("%clipboard%")