When you select a group of products, while being in Ayon’s Load gui (called by AnyDCC–>Ayon menu–>Load), if you chose one of the Load item in the RMB menu, it will execute the load process for each product contained inside the product group.
I would like to know if it’s possible for the first load process to give some information to the next load processes.
Here is an example (it’s the same for every DCC).
Publish products in a way that can be seen as a group by Aton (for example export a TextureSet from Substance Painter, it will produce several image products under a group)
Open Blender, open Ayon–>Load, select the product group (which contains several images).
Right–>Mouse–>Button–>Load in Compositor.
(see my screenshot below)
It works all right, all images are loaded, because the load plugin was executed several times (one time for each image).
Now let’s say we would prefer to execute the load plugin only once for the whole group, instead of executing once for each image, because there is some slow process to do, or because we want to ask a question to the user (using a QtWidget) only once.
I guess it’s not possible to execute load plugin only once for the whole group.
So, the next best thing, is to execute the QtWidget popup on the first execution of the load plugin (the first image of the group), and find a way to give the answer to all the next executions of the same load plugin.
Another example, in Maya, when using “Load imagePlane”, there is a QtWidget that asks for confirmation (I don’t have maya, but seeing the source code I think it is).
Let’s say we want to load a lot of imagePlanes at once, and only answer to the confirmation popup once, instead of replying for each and every imagePlane (which would be tedious if there was a lot of imagePlane).