mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
DL - cleanup, add documentation
This commit is contained in:
parent
039537e711
commit
f82e87787a
5 changed files with 36 additions and 50 deletions
|
|
@ -28,8 +28,8 @@ Default=DEBUG
|
|||
Description=Logging level where printing will start.
|
||||
|
||||
[OpenPypeExecutable]
|
||||
Type=MultiLineMultiFolder
|
||||
Label=Path to OpenPype executable dir
|
||||
Type=multilinemultifilename
|
||||
Label=Path to OpenPype executable
|
||||
Category=Job Plugins
|
||||
CategoryOrder=1
|
||||
CategoryIndex=1
|
||||
|
|
|
|||
|
|
@ -1,13 +1,3 @@
|
|||
[ScriptFile]
|
||||
Type=filename
|
||||
Label=Script File
|
||||
Category=Python Options
|
||||
CategoryOrder=0
|
||||
Index=0
|
||||
Description=The script file to be executed.
|
||||
Required=false
|
||||
DisableIfBlank=true
|
||||
|
||||
[Arguments]
|
||||
Type=string
|
||||
Label=Arguments
|
||||
|
|
@ -18,24 +8,3 @@ Description=The arguments to pass to the script. If no arguments are required, l
|
|||
Required=false
|
||||
DisableIfBlank=true
|
||||
|
||||
[Version]
|
||||
Type=enum
|
||||
Values=3.0
|
||||
Label=Version
|
||||
Category=Python Options
|
||||
CategoryOrder=0
|
||||
Index=2
|
||||
Description=The version of Python to use.
|
||||
Required=false
|
||||
DisableIfBlank=true
|
||||
|
||||
[SingleFramesOnly]
|
||||
Type=boolean
|
||||
Label=Single Frames Only
|
||||
Category=Job Options
|
||||
CategoryOrder=1
|
||||
Index=0
|
||||
Description=If enabled, the plugin will only render one frame at a time even if a single task contains a chunk of frames.
|
||||
Required=true
|
||||
DisableIfBlank=true
|
||||
Default=false
|
||||
|
|
|
|||
|
|
@ -7,18 +7,9 @@ Index=0
|
|||
Default=OpenPype Plugin for Deadline
|
||||
Description=Not configurable
|
||||
|
||||
[ConcurrentTasks]
|
||||
Type=label
|
||||
Label=ConcurrentTasks
|
||||
Category=About Plugin
|
||||
CategoryOrder=-1
|
||||
Index=0
|
||||
Default=True
|
||||
Description=Not configurable
|
||||
|
||||
[OpenPype_Executable_3_0]
|
||||
[OpenPypeExecutable]
|
||||
Type=multilinemultifilename
|
||||
Label=OpenPype 3.0 Executable
|
||||
Label=OpenPype Executable
|
||||
Category=OpenPype Executables
|
||||
CategoryOrder=0
|
||||
Index=0
|
||||
|
|
|
|||
|
|
@ -53,14 +53,11 @@ class OpenPypeDeadlinePlugin(DeadlinePlugin):
|
|||
".*Progress: (\d+)%.*").HandleCallback += self.HandleProgress
|
||||
|
||||
def RenderExecutable(self):
|
||||
version = self.GetPluginInfoEntry("Version")
|
||||
|
||||
exeList = self.GetConfigEntry(
|
||||
"OpenPype_Executable_" + version.replace(".", "_"))
|
||||
exeList = self.GetConfigEntry("OpenPypeExecutable")
|
||||
exe = FileUtils.SearchFileList(exeList)
|
||||
if exe == "":
|
||||
self.FailRender(
|
||||
"OpenPype " + version + " executable was not found " +
|
||||
"OpenPype executable was not found " +
|
||||
"in the semicolon separated list \"" + exeList + "\". " +
|
||||
"The path to the render executable can be configured " +
|
||||
"from the Plugin Configuration in the Deadline Monitor.")
|
||||
|
|
|
|||
31
vendor/deadline/readme.md
vendored
31
vendor/deadline/readme.md
vendored
|
|
@ -1,3 +1,32 @@
|
|||
## OpenPype Deadline repository overlay
|
||||
|
||||
This directory is overlay for Deadline repository. It means that you can copy whole hierarchy to Deadline repository and it should work.
|
||||
This directory is overlay for Deadline repository.
|
||||
It means that you can copy whole hierarchy to Deadline repository and it should work.
|
||||
|
||||
Logic:
|
||||
-----
|
||||
Event
|
||||
-----
|
||||
For each rendering job OpenPype event is triggered, it stores path to OpenPype
|
||||
executable (needs to be configured on `Deadline's Configure Events > OpenPype`)
|
||||
job's extra key 'openpype_executables'.
|
||||
|
||||
This value is used by `GlobalJobPreLoad` to call that executable to pull
|
||||
environment's variables which are needed to add to ALL plugins process environments.
|
||||
These env. vars are injected into rendering process.
|
||||
|
||||
Event is necessary here as a middle man to allow configuring location of executable
|
||||
which is ONLY then used by `GlobalJobPreLoad` (which doesnt have any user facing
|
||||
configuration at all).
|
||||
|
||||
`GlobalJobPreLoad` is triggered before each job, it contains backward compatible
|
||||
logic to not modify old Pype2 or not OpenPype triggered jobs.
|
||||
|
||||
Plugin
|
||||
------
|
||||
For each publishing job `OpenPypeDeadlinePlugin` is called, which calls
|
||||
configured location of OpenPype executable (needs to be configured in
|
||||
`Deadline's Configure Plugins > OpenPype`)
|
||||
and triggers command.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue