I am still in the process of learning Pyblish, now I am turning my head to our lookdev department.
I want to validate:
So how should I collect them?
According to CVEI documentation, only Collectors should read data from the scene. So I should create instances for them and store the data in it.
So something like
instance = create_instance("spiderman_meshes", family="lookdev.meshes") instance[:] = meshes # ... same for textures and SEs
and match the family for each validator.
But as I understand, instances are basically the data that I want to export, so it should be one instance per asset.
instance = create_instance("spiderman", family="lookdev") instance.data["meshes"] = meshes instance.data["textures"] = textures instance.data["shadingEngines"] = shading_engines
and then getting the appropriate data inside validators. But in the aforementioned documentation:
No plug-in depend on another plug-in (2 points)
and this makes them heavily depend on the LookdevCollector plug-in.
So which is the correct approach, or am I misunderstanding something?