Thread: Add Channel in Shuffel Node with python

Reply to Thread
Results 1 to 2 of 2
  1. #1 Add Channel in Shuffel Node with python 
    Join Date
    May 2008
    Posts
    2
    hi
    i'm writing a simple python scritp that create a simple network node. In my network i have some shuffle copy node and in the out2 of this node i need to add a new channel. How can i do that with python?

    Thx
    idioteque
    Reply With Quote  

  2. #2  
    Join Date
    May 2008
    Posts
    2
    Ok, i found a solution but there is a problem. I can add a new layer and channels with tcl function add_layer{"layername" "channels..."} but there is a problem. There isn't a python wrap of this function in nuke 5.1? One possible solution is to execute a tcl command from python but how can do this? On the dev documentation there anren't that can help me, i don't know why a software like nuke has a so bad documentation!!!


    EDIT: i found the solution nuke.tcl('add_layer { mylayer2 mylayer2.R mylayer2.G mylayer2.b }')
    Last edited by idioteque; November 21st, 2008 at 08:37 AM.
    Reply With Quote  

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Nuke 5.1 v1 Released
    By shot_grable in forum NUKE from The Foundry
    Replies: 36
    Last Post: July 17th, 2010, 01:33 AM
  2. [learning] - Is there a way to get Custom Node Names?
    By anewhobby in forum NUKE from The Foundry
    Replies: 2
    Last Post: October 22nd, 2008, 02:16 AM
  3. Python script to mimic Shake's "insert multiple"
    By mclemens in forum NUKE from The Foundry
    Replies: 3
    Last Post: September 21st, 2008, 12:36 PM
  4. Asking Nuke not to number a node?
    By tim.bowman in forum NUKE from The Foundry
    Replies: 11
    Last Post: August 27th, 2008, 11:07 AM
  5. Python usage in Nuke
    By worc in forum NUKE from The Foundry
    Replies: 4
    Last Post: June 15th, 2008, 03:26 AM
Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts