mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
feat(nuke): activating KnobSripter in nuke
This commit is contained in:
parent
e60333d996
commit
aa3d976caa
1 changed files with 11 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import sys
|
||||
import atom_server
|
||||
import KnobScripter
|
||||
|
||||
from pype.nuke.lib import (
|
||||
writes_version_sync,
|
||||
|
|
@ -20,3 +21,12 @@ nuke.addOnScriptSave(checkInventoryVersions)
|
|||
nuke.addOnScriptSave(writes_version_sync)
|
||||
|
||||
log.info('Automatic syncing of write file knob to script version')
|
||||
|
||||
def adding_knobscripter_to_nukepath():
|
||||
nuke_path_dir = os.path.dirname(__file__)
|
||||
knobscripter_path = os.path.join(nuke_path_dir, "KnobScripter-github")
|
||||
sys.path.append(knobscripter_path)
|
||||
import KnobScripter
|
||||
log.info('Adding `KnobScripter`')
|
||||
|
||||
adding_knobscripter_to_nukepath()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue