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 03-15-2010, 09:00 AM   #1
BasHe
animator
 
BasHe's Avatar
portfolio
Bas Hesen
Netherlands
 
Join Date: Jul 2008
Posts: 57
python, reload read node

hi,

I have been trying to get the read node to reload with a python command. Sofar I have tried setting the `last` and `version` attributes, which with the gui would trigger a reload. The values are being updated just fine, but there`s no reload of the node. The reason I want to do this, is because I`m working with a digital camera and add frames as I work. Now I have to press several buttons to see my last captured frame. I want to put all of that in one button or keyboard shortcut.
this is what I got sofar:
Code:
def lbNext(): seq = nuke.selectedNode() seq['last'].setValue(seq['last'].value()+1) nuke.frame(nuke.frame()+1) toolbar = nuke.toolbar("Nodes") toolbar.addCommand('', 'lbNext()', '+N', icon = 'lbNext.png')


I hope there`s someone who can help me

Bas
__________________
my site
 
Old 03-15-2010, 01:10 PM   #2
beaker
Meep!
 
beaker's Avatar
CGSociety Member
portfolio
Deke Kincaid
VR Pipeline Supervisor
DD
Los Angeles, USA
 
Join Date: Apr 2002
Posts: 8,540
Send a message via ICQ to beaker Send a message via AIM to beaker Send a message via MSN to beaker Send a message via Yahoo to beaker
__________________
-deke
 
Old 03-17-2010, 10:00 AM   #3
BasHe
animator
 
BasHe's Avatar
portfolio
Bas Hesen
Netherlands
 
Join Date: Jul 2008
Posts: 57
Thank you very much, that worked like a charm!

Bas
__________________
my site
 
Old 03-17-2010, 10:00 AM   #4
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
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 05:19 AM.


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