mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
Revert back key change on "bakeToWorldSpace" in instance
This commit is contained in:
parent
25365e8727
commit
cc1ca111cf
3 changed files with 6 additions and 6 deletions
|
|
@ -22,6 +22,6 @@ class CreateCamera(avalon.maya.Creator):
|
|||
|
||||
# Bake to world space by default, when this is False it will also
|
||||
# include the parent hierarchy in the baked results
|
||||
data['bake_to_world_space'] = True
|
||||
data['bakeToWorldSpace'] = True
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class ExtractCameraAlembic(colorbleed.api.Extractor):
|
|||
"""Extract a Camera as Alembic.
|
||||
|
||||
The cameras gets baked to world space by default. Only when the instance's
|
||||
`bake_to_world_space` is set to False it will include its full hierarchy.
|
||||
`bakeToWorldSpace` is set to False it will include its full hierarchy.
|
||||
|
||||
"""
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ class ExtractCameraAlembic(colorbleed.api.Extractor):
|
|||
instance.data.get("endFrame", 1)]
|
||||
handles = instance.data.get("handles", 0)
|
||||
step = instance.data.get("step", 1.0)
|
||||
bake_to_worldspace = instance.data("bake_to_world_space", True)
|
||||
bake_to_worldspace = instance.data("bakeToWorldSpace", True)
|
||||
|
||||
# get cameras
|
||||
members = instance.data['setMembers']
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class ExtractCameraMayaAscii(colorbleed.api.Extractor):
|
|||
will be published.
|
||||
|
||||
The cameras gets baked to world space by default. Only when the instance's
|
||||
`bake_to_world_space` is set to False it will include its full hierarchy.
|
||||
`bakeToWorldSpace` is set to False it will include its full hierarchy.
|
||||
|
||||
Note:
|
||||
The extracted Maya ascii file gets "massaged" removing the uuid values
|
||||
|
|
@ -92,12 +92,12 @@ class ExtractCameraMayaAscii(colorbleed.api.Extractor):
|
|||
instance.data.get("endFrame", 1)]
|
||||
handles = instance.data.get("handles", 0)
|
||||
step = instance.data.get("step", 1.0)
|
||||
bake_to_worldspace = instance.data("bake_to_world_space", True)
|
||||
bake_to_worldspace = instance.data("bakeToWorldSpace", True)
|
||||
|
||||
# TODO: Implement a bake to non-world space
|
||||
# Currently it will always bake the resulting camera to world-space
|
||||
# and it does not allow to include the parent hierarchy, even though
|
||||
# with `bake_to_world_space` set to False it should include its
|
||||
# with `bakeToWorldSpace` set to False it should include its
|
||||
# hierarchy to be correct with the family implementation.
|
||||
if not bake_to_worldspace:
|
||||
self.log.warning("Camera (Maya Ascii) export only supports world"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue