-
Notifications
You must be signed in to change notification settings - Fork 7
#3487: publish xgen files, 3dpaint textures #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,19 @@ keys: | |
| ass: Arnold (.ass) | ||
| default: ass | ||
|
|
||
| palette_name: | ||
| type: str | ||
| filter_by: '^[a-zA-Z](\w+)?[a-zA-Z0-9]$' | ||
|
|
||
| description_name: | ||
| type: str | ||
| filter_by: '^[a-zA-Z](\w+)?[a-zA-Z0-9]$' | ||
|
|
||
| patch_name: | ||
| type: str | ||
| filter_by: '^[a-zA-Z](\w+)?[a-zA-Z0-9]$' | ||
|
|
||
|
Comment on lines
+30
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these keys in use? If not, please remove them.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. This was added considering the Loader requirements but yeah, removing for now as we can add it later whenever required. |
||
|
|
||
| paths: | ||
|
|
||
| # WORK AREAS | ||
|
|
@@ -129,6 +142,42 @@ paths: | |
| tk-maya_sequence_asset_work_standin: '@tk-maya_sequence_asset_work_area/cache/standin/@geom_subdirs/@sequence_asset_version_name.{maya.std.ext}' | ||
| tk-maya_shot_asset_work_standin: '@tk-maya_shot_asset_work_area/cache/standin/@geom_subdirs/@shot_asset_version_name.{maya.std.ext}' | ||
|
|
||
| # XGEN FILES | ||
| tk-maya_project_work_xgen_file: '@tk-maya_project_work_area/scenes/@project_version_name_xgen_file.xgen' | ||
| tk-maya_sequence_work_xgen_file: '@tk-maya_sequence_work_area/scenes/@sequence_version_name_xgen_file.xgen' | ||
| tk-maya_shot_work_xgen_file: '@tk-maya_shot_work_area/scenes/@shot_version_name_xgen_file.xgen' | ||
|
|
||
| tk-maya_project_asset_work_xgen_file: '@tk-maya_project_asset_work_area/scenes/@project_asset_version_name_xgen_file.xgen' | ||
| tk-maya_sequence_asset_work_xgen_file: '@tk-maya_sequence_asset_work_area/scenes/@sequence_asset_version_name_xgen_file.xgen' | ||
| tk-maya_shot_asset_work_xgen_file: '@tk-maya_shot_asset_work_area/scenes/@shot_asset_version_name_xgen_file.xgen' | ||
|
|
||
| # XGEN Patches | ||
| tk-maya_project_work_xgen_patch: '@tk-maya_project_work_area/scenes/@project_version_name_xgen_file.abc' | ||
| tk-maya_sequence_work_xgen_patch: '@tk-maya_sequence_work_area/scenes/@sequence_version_name_xgen_file.abc' | ||
| tk-maya_shot_work_xgen_patch: '@tk-maya_shot_work_area/scenes/@shot_version_name_xgen_file.abc' | ||
|
|
||
| tk-maya_project_asset_work_xgen_patch: '@tk-maya_project_asset_work_area/scenes/@project_asset_version_name_xgen_file.abc' | ||
| tk-maya_sequence_asset_work_xgen_patch: '@tk-maya_sequence_asset_work_area/scenes/@sequence_asset_version_name_xgen_file.abc' | ||
| tk-maya_shot_asset_work_xgen_patch: '@tk-maya_shot_asset_work_area/scenes/@shot_asset_version_name_xgen_file.abc' | ||
|
|
||
| # XGEN COLLECTIONS | ||
| tk-maya_project_work_xgen_collection: '@tk-maya_project_work_area/@xgen_collection_subdirs' | ||
| tk-maya_sequence_work_xgen_collection: '@tk-maya_sequence_work_area/@xgen_collection_subdirs' | ||
| tk-maya_shot_work_xgen_collection: '@tk-maya_shot_work_area/@xgen_collection_subdirs' | ||
|
|
||
| tk-maya_project_asset_work_xgen_collection: '@tk-maya_project_asset_work_area/@xgen_collection_subdirs' | ||
| tk-maya_sequence_asset_work_xgen_collection: '@tk-maya_sequence_asset_work_area/@xgen_collection_subdirs' | ||
| tk-maya_shot_asset_work_xgen_collection: '@tk-maya_shot_asset_work_area/@xgen_collection_subdirs' | ||
|
|
||
| # 3dPaintTextures FILES | ||
| tk-maya_project_work_3dPaintTextures: '@tk-maya_project_work_area/@3dPaintTextures_subdir/@project_version_name' | ||
| tk-maya_sequence_work_3dPaintTextures: '@tk-maya_sequence_work_area/@3dPaintTextures_subdir/@sequence_version_name' | ||
| tk-maya_shot_work_3dPaintTextures: '@tk-maya_shot_work_area/@3dPaintTextures_subdir/@shot_version_name' | ||
|
|
||
| tk-maya_project_asset_work_3dPaintTextures: '@tk-maya_project_asset_work_area/@3dPaintTextures_subdir/@project_asset_version_name' | ||
| tk-maya_sequence_asset_work_3dPaintTextures: '@tk-maya_sequence_asset_work_area/@3dPaintTextures_subdir/@sequence_asset_version_name' | ||
| tk-maya_shot_asset_work_3dPaintTextures: '@tk-maya_shot_asset_work_area/@3dPaintTextures_subdir/@shot_asset_version_name' | ||
|
|
||
| aliases: | ||
|
|
||
| # PUBLISH AREAS | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
palette_nameoptional? Why are we using this as an optional field?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the earlier approach of collecting xgen palettes as a separate item, The collector was collecting disconnected palettes as well because of the same path patterns. To resolve this issue I referred the collect (layer) render images example in which we are providing node names while collecting item. So followed the same thing here and made palette names optional and passing valid values during collection.
Apparently we moved this collection logics to the as session items properties but I didn't modify those already defined templates. But yeah, since we are passing entire dependency paths from the session, maybe no need of making those as optional fields.
I will check that once and make the required updates. Thanks for pointing this out.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whatever the method of collection, this template looks wrong. making only palette_name optional as in this template means you are looking for a file called
name.v001__. Only make something optional in a template if it is truly optional in real life i.e. if a path should be allowed without that part of the template.Same goes for
xgen_collection_subdirsas well - do we expect only xgen/collections to exist without a palette_name subfolder? If not, make it not optional.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok,
palette_namenot an optional field in the updated templates and also confirmed that its working fine with items that are added as session item properties.