Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: importing .nk roto shapes into nuke? #218656

    I had to do something very similar to what you want to do. I had to import several mask from Silhouette and group each one of them…

    So I looked a bit into python and wrote a very simple script that maybe will help you:

    import nuke

    shapesPath = nuke.getFilename(“Choose Silhouette Shapes…”, “*.nk”, “”, “”, “”, multiple = True)
    for i in shapesPath:
    print (i)
    currNode = nuke.nodePaste(i)
    currNode.knob(‘selected’).setValue(True)
    nuke.expandSelectedGroup()

    All you have to do is run the script and select all the different shapes you want to import.

    Hope it helps!

Viewing 1 post (of 1 total)