Package nuke :: Module scripts
[hide private]
[frames] | no frames]

Module scripts

source code

This module define the scriptSaveAndClear method for Nuke API. nuke.scriptSaveAndClear will call nuke.scriptSave() if any changes were made and then calls nuke.scriptClear()

Functions [hide private]
None
scriptSaveAndClear(filename=None, ignoreUnsavedChanges=False)
Calls nuke.scriptSave and nuke.scriptClear
source code
Variables [hide private]
  __package__ = 'nuke'
Function Details [hide private]

scriptSaveAndClear(filename=None, ignoreUnsavedChanges=False)

source code 

Calls nuke.scriptSave and nuke.scriptClear

Parameters:
  • filename - Save to this file name without changing the script name in the project.
  • ignoreUnsavedChanges - Optional. If set to True scripSave will be called, ignoring any unsaved changes
Returns: None
True when sucessful. False if the user cancels the operation. In this case nuke.scripClear will not be called