CGTalk > Software > Compositing Software > The Foundry Nuke
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 11-09-2012, 03:06 AM   #1
traltixxx
New Member
portfolio
Stan
NSW, Australia
 
Join Date: Mar 2011
Posts: 24
ViewerProcess.node() in terminal shell

Hi,
I'm running a python script in nuke. Something like this in a nuke_simple_python.py:

Code:
import nuke vpNode = nuke.ViewerProcess.node() #processing vpNode here


and then run this script like this : <path to nuke exec>\nuke.exe -t nuke_simple_python.py
but it seems that nuke.ViewerProcess.node() creates nothing (and errors out) . I've tried other flags such as -x and -x -t but still fails the same way.
I tried to run the script like this : <path to nuke exec>\nuke.exe -i nuke_simple_python.py
and it fails the same way (but with a GUI box)
If I run nuke normally and in the script editor, copy and paste the contents of the python script, everything runs fine.

Is this something that works in an interactive mode only (and not render mode)? Is there an alternative to this?
Thanks for any help
Cheers

Last edited by traltixxx : 11-09-2012 at 04:46 AM.
 
Old 11-12-2012, 07:44 AM   #2
nookie
Know-it-All
 
nookie's Avatar
portfolio
Luca Fiorentini
Lighting Artist
Lucasfilm Animation
Singapore, Singapore
 
Join Date: Jan 2004
Posts: 367
Send a message via MSN to nookie
The viewer process affects only the way you see your image in the viewer and doesn't change the data in any way. So I guess it is available only in GUI mode.
What are you trying to achieve?
 
Old 11-12-2012, 07:44 AM   #3
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:58 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.