Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
362 B
1
Indexable
Never
viewer = nuke.activeViewer()

if viewer is not None:
    for node in nuke.selectedNodes():
        node['selected'].setValue(False)
    dot = nuke.createNode("Dot", inpanel=False)
    viewer = viewer.node()
    viewer['xpos'].setValue( dot.xpos() - viewer.screenWidth()/2 )
    viewer['ypos'].setValue( dot.ypos() - viewer.screenHeight()/2)
    nuke.delete(dot)