Apply a load plugin to a group of products, and transfer info from the 1st invocation

Hi,

Inside a DCC, the Ayon-->Load gui allows to select a product group, and apply a load plugin to all the members of that group (let’s say 20 products).

But, if the load plugin displays a popup to ask a question to the user (example : “Are you sure ?” ), the popup will appear 20 times :sweat_smile:

It appears one by one, each time I close the previous one, so there doesn’t seem to be a risk of race condition.

Is there a way to transfer the 1st answer to the 19 remaining invocations of the plugin ?

Thanks.

Hello,
could you share reproducible steps?
e.g. open a particular DCC and use a particular loader.

Hi,

This is not a bug report.

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.

That’s what I am searching, a way to code that.

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).

How to code that ?

Thank you for this valuable insights.

As far as I know, the system works per product, and they are independent.
Feel free to create an enhancement request in ayon-core repo.

For reference, you can check the load logic.

Thanks Mustafa.

Here is the enhancement request :

1 Like