It's a method to get the main window as a QT object at startup. In the
example changes the title window.
Import this module inside init.py

import nuke
from PySide.QtGui import QApplication
qNuke = None
def getMainWindow():
    if 'viewer' in nuke.thisNode().name().lower():
        nuke.removeOnCreate(getMainWindow)
        global qNuke
        qNuke = QApplication.activeWindow()
        qNuke.setWindowTitle('NUKE 7 | QT Window')
nuke.addOnCreate(getMainWindow)
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to