mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
let nuke not to run workfiles at start
This commit is contained in:
parent
84b6efbbf6
commit
29325c3fa2
1 changed files with 10 additions and 6 deletions
|
|
@ -1,3 +1,5 @@
|
|||
|
||||
from avalon.tools import workfiles
|
||||
import nuke
|
||||
# auto fix version paths in write nodes following root name of script
|
||||
cmd = '''
|
||||
|
|
@ -20,9 +22,11 @@ else:
|
|||
nuke.knobDefault('onScriptLoad', ffmpeg_cmd)
|
||||
|
||||
|
||||
# run avalon's tool Workfiles
|
||||
workfiles = '''from avalon.tools import workfiles
|
||||
if nuke.Root().name() == 'Root':
|
||||
nuke.scriptClose()
|
||||
workfiles.show(os.environ["AVALON_WORKDIR"])'''
|
||||
nuke.knobDefault('onCreate', workfiles)
|
||||
# # run avalon's tool Workfiles
|
||||
# workfiles = '''from avalon.tools import workfiles
|
||||
# if nuke.Root().name() == 'Root':
|
||||
# nuke.scriptClear()
|
||||
# workfiles.show(os.environ["AVALON_WORKDIR"])'''
|
||||
# nuke.knobDefault('onCreate', workfiles)
|
||||
|
||||
# workfiles.show(os.environ["AVALON_WORKDIR"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue