Hi, started playing with pyblish, and trying to get my head around few processes.
I’m trying to get something complex published from within DCC applications (take maya for example), and I need to be able to define a given workflow of events, which will get to the final publish.
I’ll try to break it down so is more clear.
What I got so far:
-
contextPlugin which collects options and geometries for alembic
1a) and instancePlugin, that given options expressed in the context, will publish the alembic. -
contextPlugin which collects options and geometries for mayaBinary
2a) and instancePlugin, that given options expressed in the context, will publish the mayaBinary.
I now want to publish a camera in MayaBinary and Almebic.
Problem is I need to be able to run various pre and post processors depending on the options which has been set on the contex.
So for example I can have an option which define whether the camera has to be baked or not.
the idea would be to have an pre-instance and post-instance which gets activated only when that options is active
but these has to be going all before and after the MayaBinary and Almebic step .
To recap:
- set options
- evaluate options
- depending on options add pre-instance
- run one instance MayaBinary
- run the other instance Almebic
- run the post-instance process
Now, I can think of a simple solution for this, but what If I have some other options which requires pre and post ?
How can I explicitly define the flow between instances ?
Hope it does make sense.
Thanks!
L.