project_helpers
activeProject()
hiero.ui.activeProject() -> returns the current Project
Note: There is not technically a notion of a "active" Project in Hiero/NukeStudio, as it is a multi-project App. This method determines what is "active" by going down the following rules...
1 - If the current Viewer (hiero.ui.currentViewer) contains a Clip or Sequence, this item is assumed to give the active Project
2 - If nothing is currently in the Viewer, look to the active View, determine project from active selection
3 - If no current selection can be determined, fall back to a globally tracked last selection from trackActiveProjectHandler
4 - If all those rules fail, fall back to the last project in the list of hiero.core.projects()
@return: hiero.core.Project
Source code in client/ayon_hiero/api/startup/Python/Startup/project_helpers.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
openRecentProject(k=0)
hiero.core.openRecentProject(k) -> Opens the most the recent project as listed in the Open Recent list.
@param: k (optional, default = 0) - an integer from 0-4, relating to the index of recent projects. @return: hiero.core.Project
Source code in client/ayon_hiero/api/startup/Python/Startup/project_helpers.py
126 127 128 129 130 131 132 133 134 135 |
|
recentProject(k=0)
hiero.core.recentProject(k) -> Returns the recent project path, specified by integer k (0-4)
@param: k (optional, default = 0) - an integer from 0-4, relating to the index of recent projects.
@return: hiero.core.Project
Source code in client/ayon_hiero/api/startup/Python/Startup/project_helpers.py
112 113 114 115 116 117 118 119 120 121 |
|
recentProjects()
hiero.core.recentProjects() -> Returns a list of paths to recently opened projects
Hiero stores up to 5 recent projects in uistate.ini with the [recentFile]/# key.
@return: list of paths to .hrox Projects
Source code in client/ayon_hiero/api/startup/Python/Startup/project_helpers.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|