mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added loader for matchmove family in NUke
This commit is contained in:
parent
c234e332f8
commit
b840fca4de
1 changed files with 24 additions and 0 deletions
24
pype/plugins/nuke/load/load_matchmove.py
Normal file
24
pype/plugins/nuke/load/load_matchmove.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from avalon import api
|
||||
|
||||
|
||||
class MatchmoveLoader(api.Loader):
|
||||
"""
|
||||
This will run matchmove script to create track in script.
|
||||
"""
|
||||
|
||||
families = ["rendersetup"]
|
||||
representations = ["py"]
|
||||
defaults = ["Camera", "Object"]
|
||||
|
||||
label = "Run matchmove script"
|
||||
icon = "empire"
|
||||
color = "orange"
|
||||
|
||||
def load(self, context, name, namespace, data):
|
||||
if self.fname.lower().endswith(".py"):
|
||||
exec(open(self.fname).read())
|
||||
|
||||
else:
|
||||
self.log.error("Unsupported script type")
|
||||
|
||||
return True
|
||||
Loading…
Add table
Add a link
Reference in a new issue