🚧 change to new creator style

This commit is contained in:
Ondřej Samohel 2022-08-30 18:46:00 +02:00
parent 20e25e111b
commit 8ce7d45dd9
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -1,14 +1,23 @@
# -*- coding: utf-8 -*-
from openpype.hosts.houdini.api import plugin
from openpype.hosts.houdini.api import list_instances
from openpype.pipeline import CreatedInstance
class CreatePointCache(plugin.HoudiniCreator):
"""Alembic ROP to pointcache"""
name = "pointcache"
identifier = "pointcache"
label = "Point Cache"
family = "pointcache"
icon = "gears"
def collect_instances(self):
for instance_data in list_instances():
instance = CreatedInstance.from_existing(
instance_data, self
)
self._add_instance_to_context(instance)
def create(self, subset_name, instance_data, pre_create_data):
pass