Module _localization
[hide private]
[frames] | no frames]

Module _localization

Internal module for Nuke's localization functionality.

Functions [hide private]
Clears unused files in the localization folder
clearUnusedFiles(pathPrefix= "", olderThan= None)
@param pathPrefix Only clear files within this path.
Update all localized files currently in use in Nuke
forceUpdateAll()
Returns: None
Update all on-demand localized files
forceUpdateOnDemand()
Returns: None
Update all localized files used by nodes that are currently selected
forceUpdateSelectedNodes()
Returns: None
Check if localization is paused
isLocalizationPaused()
Returns: whether localization was paused
gets the percentage of localization completed.
localizationProgress()
gets paths of files which are currently localized
localizedPaths()
Returns: List of strings containing file paths of localized paths
gets the current localization system mode
mode()
@return string 'on', 'off' or 'manual'
Pause the localization background thread if it was running
pauseLocalization()
Returns: None
Resume the localization background thread if it was paused
resumeLocalization()
Returns: None
sets the localization system mode
setMode(mode)
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

clearUnusedFiles(pathPrefix= "", olderThan= None)

 

@param pathPrefix Only clear files within this path. @param olderThan Only clear files older than this date. Must be a DateTime.

Returns: Clears unused files in the localization folder
None

forceUpdateAll()

 
Returns: Update all localized files currently in use in Nuke
None

forceUpdateOnDemand()

 
Returns: Update all on-demand localized files
None

forceUpdateSelectedNodes()

 
Returns: Update all localized files used by nodes that are currently selected
None

isLocalizationPaused()

 
Returns: Check if localization is paused
whether localization was paused

localizedPaths()

 
Returns: gets paths of files which are currently localized
List of strings containing file paths of localized paths

pauseLocalization()

 
Returns: Pause the localization background thread if it was running
None

resumeLocalization()

 
Returns: Resume the localization background thread if it was paused
None

setMode(mode)

 
Parameters:
  • mode, str, of, value - 'on', 'off' or 'manual' @return None
Returns: sets the localization system mode