Search - User list
Full Version: Echo messages from the Nuke RPC server back to Hou/PilotPDG
Root » PDG/TOPs » Echo messages from the Nuke RPC server back to Hou/PilotPDG
danielharkness_cmls
print() is echoing data to a log file in houdini temp, but is it possible to get 'live' feedback from nuke from within houdini as we are executing commands in nuke?

Is it possible to do the following in a TOPs nukeserver command chain:

- nukeserver command chain begins
- tell nuke to do some stuff
- print some command from nuke back to houdini so that we get some feedback in the shell that launched houdini

eg

# render 1 at a time so we can still RPC
for x in range (first_frame, last_frame+1):
    nuke.execute(write_node, x, x)
    ## we would want the following to echo back to the terminal
    print ('Rendering %s frame %s' % (write_node['file'].value() , str(x))) 
benC
I haven't tried nuke command chain but I am working on maya command chain. For Maya and probably with an old syntax, it's reportResultData(data,datatype)
https://www.sidefx.com/docs/houdini/nodes/top/sendcommand.html [www.sidefx.com]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB