Home Page › forums › fx Art and Technique › Compositing, Roto, Keying › importing .nk roto shapes into nuke?
- This topic has 4 replies, 5 voices, and was last updated 10 years, 9 months ago by alessandro mattielli.
-
AuthorPosts
-
February 5, 2010 at 12:04 am #203332robdParticipant
can somebody please tell me how to import a .nk roto shape exported from silhouette into nuke?
thanks
rd
February 5, 2010 at 1:09 am #218653DejanParticipantUsing the “import script” on the file menu should do it.
February 5, 2010 at 1:47 am #218655AnonymousInactivethanks, that does work but i was hoping to be able to have controls for the shape so it would be editable and not have to go back and forth to silhouette to make fixes. also there are also no visible key frames.
is there a way to edit the shape after its imported?
February 5, 2010 at 1:05 pm #218654mariaclark18ParticipantThe nodes come inside a group, to access the bezier node:
Edit > Node > Group > Expand Group
You may have to do this several times if you have the shapes inside layers on Silhouette.
February 17, 2010 at 9:59 pm #218656alessandro mattielliParticipantI 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!
-
AuthorPosts
- You must be logged in to reply to this topic.
