Skip to content

Commit

Permalink
Merge branch 'wip' into enhancement/AY-6599_export_camera_fbx
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Sep 5, 2024
2 parents 703e45e + 9642074 commit da70348
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions client/ayon_nuke/plugins/load/load_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
)


class _NukeCameraLoader(load.LoaderPlugin):
class AlembicCameraLoader(load.LoaderPlugin):
"""
This will load a camera into script.
"""

product_types = {"camera"}
representations = {"*"}
enabled = False
extensions = {"abc"}
label = "Load Alembic Camera"
enabled = True

settings_category = "nuke"

Expand Down Expand Up @@ -206,22 +208,12 @@ def remove(self, container):
nuke.delete(node)


class AlembicCameraLoader(_NukeCameraLoader):
"""
This will load alembic camera into script.
"""
extensions = {"abc"}
label = "Load Alembic Camera"
enabled = True


class FbxCameraLoader(_NukeCameraLoader):
class FbxCameraLoader(AlembicCameraLoader):
"""
This will load fbx camera into script.
"""
extensions = {"fbx"}
label = "Load FBX Camera"
enabled = True

def load(self, context, name, namespace, data):
fbx_camera_node = super().load(context, name, namespace,data)
Expand Down

0 comments on commit da70348

Please sign in to comment.