-
Notifications
You must be signed in to change notification settings - Fork 129
Conversation
still need to add Task information to created layouts
…ya-multishot-layout
…ya-multishot-layout
Task linked: OP-6460 Maya: multishot layout publish |
7 similar comments
Task linked: OP-6460 Maya: multishot layout publish |
Task linked: OP-6460 Maya: multishot layout publish |
Task linked: OP-6460 Maya: multishot layout publish |
Task linked: OP-6460 Maya: multishot layout publish |
Task linked: OP-6460 Maya: multishot layout publish |
Task linked: OP-6460 Maya: multishot layout publish |
Task linked: OP-6460 Maya: multishot layout publish |
25a7cc5
to
2eea78e
Compare
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.
Still getting error when trying to create multishot Layout
instance in the workfile...
Traceback (most recent call last):
File "C:\Users\Libor\AppData\Local\Ynput\AYON\addons\openpype_3.17.2-nightly.3\openpype\pipeline\create\context.py", line 2031, in _create_with_unified_error
result = creator.create(*args, **kwargs)
File "C:\Users\Libor\AppData\Local\Ynput\AYON\addons\openpype_3.17.2-nightly.3\openpype\hosts\maya\plugins\create\create_multishot_layout.py", line 103, in create
shots = self.get_related_shots(
File "C:\Users\Libor\AppData\Local\Ynput\AYON\addons\openpype_3.17.2-nightly.3\openpype\hosts\maya\plugins\create\create_multishot_layout.py", line 201, in get_related_shots
return [f for f in child_folders if f["folderType"] == "Shot"]
File "C:\Users\Libor\AppData\Local\Ynput\AYON\addons\openpype_3.17.2-nightly.3\openpype\hosts\maya\plugins\create\create_multishot_layout.py", line 201, in <listcomp>
return [f for f in child_folders if f["folderType"] == "Shot"]
File "C:\Users\Libor\AppData\Local\Ynput\AYON\addons\openpype_3.17.2-nightly.3\openpype\vendor\python\common\ayon_api\server_api.py", line 3578, in get_folders
parent_ids = set(parent_ids)
TypeError: unhashable type: 'list'
@LiborBatek can you confirm those folders are actually marked as It seems to be the requirement here |
Yes, they need to be of Shot type. I am not sure actually if we should restrict it to it or not - from workflow point of view it makes sense to use shots for that, but does it have to be restricted? |
I would say the folder type should not be important here at all. In Ayon we allow arbitrary per-project folder types and such restriction is just complicating everything. |
I've removed the restriction and improved error message. |
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.
…ayout' into feature/OP-6460_maya-multishot-layout
@BigRoy yes and no...I was told to ignore those exclamation marks :) ...sort of nature of it? I already forgot what was the case so maybe @antirotor could elaborate on that |
those errors are caused by not having Task set in the publisher - you need to set task on the instance but this creator cannot auto-guess what task it should assign so if it cannot set it, it will leave it empty so artist need to do it by himself. There is option to pre-define task name that should be used if it exists, like |
Changelog Description
New Multi-shot Layout creator is a way of automating creation of the new Layout instances in Maya, associated with correct shots, frame ranges and Camera Sequencer in Maya.
Additional info
This works by looking at the specified hierarchy and taking all shots under it, calling Layout creator for each and adding corresponding clip to Camera Sequencer with given
clipIn
/clipOut
data. There is and option to associate some task name automatically with created Layouts.Example
in this case, Shot Parent Folder
shots
has three shots under -sh010
,sh020
andsh030
. Running it will result in:Note the Camera Sequence window with the timeline. You can also notice that the first
layoutMain
instance is invalid - that is becase the shotsh010
doesn't have tasklayout
so the Creator wasn't able to associate it with it.Testing notes:
Documentation PR: ynput/ayon-documentation#82