fix(nk): removing obsolete plugin

This commit is contained in:
Jakub Jezek 2020-02-28 17:42:41 +01:00
parent 6f545cec66
commit d9f08df589
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -1,22 +0,0 @@
import os
import pype.api as pype
import pyblish.api
class CollectScriptVersion(pyblish. api.ContextPlugin):
"""Collect Script Version."""
order = pyblish.api.CollectorOrder
label = "Collect Script Version"
hosts = [
"nuke",
"nukeassist"
]
def process(self, context):
file_path = context.data["currentFile"]
base_name = os.path.basename(file_path)
# get version string
version = pype.get_version_from_path(base_name)
context.data['version'] = version