Weird. Almost certainly a bug that should be reported to
supp...@thefoundry.co.uk
..but, doing this seems to work around it for some reason:
with nuke.root():
all = nuke.allNodes()
for a in all:
if a.hasError():
print a.name() + " has error"
On 08/08/13 09:14, Dennis Serras wrote:
Hi all, I’ve discovered an interesting problem. I have a tool that
checks all the nodes in a script for issues, including whether they’re
erroring. I originally built it as a floating panel (QDialog) with
PySide and it works fine. However, when a couple artists asked me to
make it dockable, I’m getting an interesting result. All the nodes are
showing up as having an error when run this way.
You can test it if you run this (based on the code in the API help):
import nuke
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
from nukescripts import panels
class NukeTestWindow(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setLayout( QtGui.QVBoxLayout() )
self.myTable = QtGui.QTableWidget( )
self.myTable.header = ['Date', 'Files', 'Size', 'Path' ]
self.myTable.size = [ 75, 375, 85, 600 ]
self.layout().addWidget( self.myTable )
all = nuke.allNodes()
for a in all:
if a.hasError():
print a.name() + " has error"
nukescripts.registerWidgetAsPanel('NukeTestWindow', 'NukeTestWindow',
'uk.co.thefoundry.NukeTestWindow' )
When you view the pane, the nodes error.
Any thoughts?
Thanks!
Den
*den serras*
@
senior technical artist | *stereo D*| deluxe 3D
3355 empire ave burbank, ca 91504 | o 818.861.3100 | m 818.468.1380
eon free zone, pune, india | o +91.020.46.60.09.99 | m +91.738.743.1110
This e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain confidential information. If
you are not the intended recipient of this e-mail, you are hereby
notified any dissemination, distribution or copying of this email and
any attachments is strictly prohibited. If you receive this email in
error, please immediately notify the sender by return email and
permanently delete the original, any copy and any printout thereof. The
integrity and security of e-mail cannot be guaranteed.
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python