Renamed and updated plugin, added colorbleed.camera

This commit is contained in:
wikoreman 2018-09-19 10:42:42 +02:00
parent e9aac13039
commit abbcd30f86

View file

@ -7,17 +7,16 @@ import colorbleed.api
class ExtractAlembic(colorbleed.api.Extractor):
order = pyblish.api.ExtractorOrder
label = "Extract Pointcache (Alembic)"
label = "Extract Alembic"
hosts = ["houdini"]
families = ["colorbleed.pointcache"]
families = ["colorbleed.pointcache", "colorbleed.camera"]
def process(self, instance):
ropnode = instance[0]
# Get the filename from the filename parameter
# `.eval()` will make sure all tokens are resolved
output = ropnode.parm("filename").eval()
output = ropnode.evalParm("filename")
staging_dir = os.path.dirname(output)
instance.data["stagingDir"] = staging_dir