Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: abc options for Pointcache/Animation family - OP-5920 #5173

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
e19e7e1
initial working version of abc options.
tokejepsen Jun 21, 2023
d87e64e
Docs
tokejepsen Jun 22, 2023
c07729d
Hound
tokejepsen Jun 22, 2023
e4a7641
Backwards compatibility attributes.
tokejepsen Jun 22, 2023
cda9089
Debug logging
tokejepsen Jun 22, 2023
1a5201a
Remove redundant code.
tokejepsen Jun 22, 2023
0342870
Failsafe
tokejepsen Jun 22, 2023
fab76c6
Ensure includeUserDefinedAttributes gets correct value
tokejepsen Jun 22, 2023
9923328
Update openpype/hosts/maya/plugins/publish/collect_pointcache.py
tokejepsen Jun 23, 2023
b601aa6
Hound
tokejepsen Jun 23, 2023
b63f5c5
Ensure list arguments are valid
tokejepsen Jun 28, 2023
e722fbe
BigRoy feedback
tokejepsen Jun 28, 2023
38be2be
Fix list arguments.
tokejepsen Jul 3, 2023
5aa5215
Working animation family
tokejepsen Jul 4, 2023
2f8dafd
Hound
tokejepsen Jul 4, 2023
e447e6a
Initial working animation family
tokejepsen Jul 6, 2023
db3dac4
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
tokejepsen Jul 13, 2023
9ac4017
Working pointcache
tokejepsen Jul 14, 2023
c1e771b
Revert post_imprint
tokejepsen Jul 14, 2023
9887035
Combine CreateAnimation and CreatePointCache
tokejepsen Jul 14, 2023
711fe5d
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
tokejepsen Aug 22, 2023
eafe2d0
Working merge of develop
tokejepsen Aug 22, 2023
7d1f009
Working hidden animation creator
tokejepsen Aug 22, 2023
d8ee0a6
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
tokejepsen Aug 22, 2023
178f184
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
tokejepsen Sep 1, 2023
fcf1c1e
Fix writeNormals
tokejepsen Sep 1, 2023
ee8b230
Remove redundant code.
tokejepsen Sep 1, 2023
de5c1ce
Add tooltip to preRollStartFrame
tokejepsen Sep 1, 2023
af6f157
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
tokejepsen Sep 18, 2023
7f152b9
Sync with develop plugin.py
tokejepsen Sep 18, 2023
99f7191
Merge origin/develop
Minkiu Nov 13, 2023
bb8b4c1
`maya` Define Alembic attributes as enums
Minkiu Nov 13, 2023
14fc3ab
`maya` Display Alembic settings for Animation
Minkiu Nov 14, 2023
f4be711
`maya.api.alembic` Move all the Alembic methods into it's own
Minkiu Nov 14, 2023
38a3ea4
`maya.api.alembic` Alphabetically order arguments
Minkiu Nov 14, 2023
6363064
`maya` Rename Alemebic settings, update `pointcache` creator
Minkiu Nov 14, 2023
3a14c8e
`maya.publish.pointcache` Use the `api.alembic` instead of `lib`
Minkiu Nov 14, 2023
33784f7
`maya.api.alembic` Fix missing `cmds` import
Minkiu Nov 15, 2023
fca2442
`maya.plugin.pointcache` Rework settings names
Minkiu Nov 15, 2023
608c7eb
`maya.extract_pointcache` Adapt to new settings
Minkiu Nov 15, 2023
2427477
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
Minkiu Nov 15, 2023
70e4883
`maya.api.alembic` Fix missing imports
Minkiu Nov 15, 2023
c379e7f
`maya.create_animation_pointcache` Fix publisher widgets population
Minkiu Nov 15, 2023
b0ab45b
Merge remote-tracking branch 'origin/develop' into enhancement/OP-592…
Minkiu Nov 20, 2023
e700f28
`maya.publish.pointcache` Log out the Alembic argumetns used.
Minkiu Nov 20, 2023
5935ef5
`maya.create_animation_pointcache` Ensure we set defaults
Minkiu Nov 20, 2023
326c210
`schemas.maya.create` Remove `stripNameSpaces` setting
Minkiu Nov 21, 2023
ca7998e
`maya.settings` Add AYON settings for Animation and PointCache
Minkiu Nov 21, 2023
0e905f3
`maya` Fix faulty logic in pointcache creator
Minkiu Dec 12, 2023
cd26a89
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
Minkiu Dec 12, 2023
f2f8345
`maya.create_animation_pointcache` Ensure there are `maya_cached_subs…
Minkiu Jan 4, 2024
749b3b4
`maya.create_animation_pointcache` Fix `_ensure_defaults` logic
Minkiu Jan 15, 2024
afc7967
`maya.creat_pointcache` Fix boolean arguments not being correctly par…
Minkiu Jan 15, 2024
a9fbb68
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
Minkiu Jan 31, 2024
97e8ccd
`server_addons.maya` Fix creator settings using legacy `Field`
Minkiu Jan 31, 2024
8c999fb
`server_addons.maya` Fix creator settings using legacy `Field`
Minkiu Jan 31, 2024
8e284aa
`settings.maya` Rename Alembic settings
Minkiu Jan 31, 2024
2652397
`maya.plugins.pointcache` Fix togglable flags defaults and adapt to n…
Minkiu Jan 31, 2024
76a6e2e
`maya.plugins` Fix create pointcache and apply format
Minkiu Jan 31, 2024
534bc82
`server_addons.maya.settings` fix missing `Literal` type in creators
Minkiu Feb 1, 2024
43bbf5a
`server_addons.maya.settings` Fix missing `creator` defaults
Minkiu Feb 1, 2024
87b3d7f
`hosts.maya.create` Ensure we get a `set` in `abc_args_overrides` in …
Minkiu Feb 1, 2024
698e5db
Working version of attributes on extractor
tokejepsen Feb 20, 2024
4e8ea03
Tidy up changes.
tokejepsen Feb 20, 2024
70982d9
Backwards compatibility wip
tokejepsen Feb 20, 2024
64b366c
Backwards compatibility
tokejepsen Feb 21, 2024
05dd980
Revert AYON settings
tokejepsen Feb 21, 2024
c123e83
revert ayon settings
tokejepsen Feb 21, 2024
8fee7b5
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
LiborBatek Feb 22, 2024
1f1d7c3
Missing writeNormals flag
tokejepsen Feb 22, 2024
242ea77
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
LiborBatek Feb 26, 2024
0c40340
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
LiborBatek Mar 5, 2024
59c0079
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
tokejepsen Mar 7, 2024
2e76f27
Change labels and export_overrides key
tokejepsen Mar 7, 2024
370e422
Fix plugin
tokejepsen Mar 7, 2024
3def9fe
Validate alembic options defaults
tokejepsen Mar 28, 2024
b645c62
Hound
tokejepsen Mar 28, 2024
50ff436
Merge branch 'develop' into enhancement/OP-5920_abc-options-for-Point…
antirotor Apr 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions openpype/hosts/maya/plugins/publish/collect_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,28 @@ def process(self, instance):
instance.data["families"].append("publish.farm")

# Collect user defined attributes.
if not instance.data.get("includeUserDefinedAttributes", False):
return

user_defined_attributes = set()
for node in hierarchy:
attrs = cmds.listAttr(node, userDefined=True) or list()
shapes = cmds.listRelatives(node, shapes=True) or list()
for shape in shapes:
attrs.extend(cmds.listAttr(shape, userDefined=True) or list())

user_defined_attributes.update(attrs)

instance.data["userDefinedAttributes"] = list(user_defined_attributes)
if instance.data.get("includeUserDefinedAttributes", False):
user_defined_attributes = set()
for node in hierarchy:
attrs = cmds.listAttr(node, userDefined=True) or list()
shapes = cmds.listRelatives(node, shapes=True) or list()
for shape in shapes:
attrs.extend(
cmds.listAttr(shape, userDefined=True) or list()
)
tokejepsen marked this conversation as resolved.
Show resolved Hide resolved

user_defined_attributes.update(attrs)

instance.data["userDefinedAttributes"] = list(
user_defined_attributes
)

# Backwards compatibility for attributes.
backwards_mapping = {
"write_color_sets": "writeColorSets",
"write_face_sets": "writeFaceSets",
"include_parent_hierarchy": "includeParentHierarchy",
"include_user_defined_attributes": "includeUserDefinedAttributes"
}
for key, value in backwards_mapping.items():
tokejepsen marked this conversation as resolved.
Show resolved Hide resolved
instance.data[value] = instance.data[key]
29 changes: 20 additions & 9 deletions openpype/hosts/maya/plugins/publish/collect_pointcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,26 @@ def process(self, instance):

# Collect user defined attributes.
if not instance.data.get("includeUserDefinedAttributes", False):
return
user_defined_attributes = set()
tokejepsen marked this conversation as resolved.
Show resolved Hide resolved
for node in instance:
attrs = cmds.listAttr(node, userDefined=True) or list()
shapes = cmds.listRelatives(node, shapes=True) or list()
for shape in shapes:
attrs.extend(
cmds.listAttr(shape, userDefined=True) or list()
)

user_defined_attributes = set()
for node in instance:
attrs = cmds.listAttr(node, userDefined=True) or list()
shapes = cmds.listRelatives(node, shapes=True) or list()
for shape in shapes:
attrs.extend(cmds.listAttr(shape, userDefined=True) or list())
user_defined_attributes.update(attrs)

user_defined_attributes.update(attrs)
instance.data["userDefinedAttributes"] = list(
user_defined_attributes
)

instance.data["userDefinedAttributes"] = list(user_defined_attributes)
# Backwards compatibility for attributes.
backwards_mapping = {
"write_color_sets": "writeColorSets",
"write_face_sets": "writeFaceSets",
"include_user_defined_attributes": "includeUserDefinedAttributes"
}
for key, value in backwards_mapping.items():
instance.data[value] = instance.data[key]
7 changes: 1 addition & 6 deletions openpype/hosts/maya/plugins/publish/extract_pointcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ def process(self, instance):
# direct members of the set
options["root"] = roots

if int(cmds.about(version=True)) >= 2017:
# Since Maya 2017 alembic supports multiple uv sets - write them.
options["writeUVSets"] = True

if instance.data.get("visibleOnly", False):
# If we only want to include nodes that are visible in the frame
# range then we need to do our own check. Alembic's `visibleOnly`
Expand All @@ -96,8 +92,7 @@ def process(self, instance):
)

suspend = not instance.data.get("refresh", False)
self.log.info(nodes)
self.log.info(options)
self.log.debug(nodes)
with suspended_refresh(suspend=suspend):
with maintained_selection():
cmds.select(nodes, noExpand=True)
Expand Down