In AYON pipeline, we are using two key link types
Reference (in ): This refers to the product versions that were referenced(loaded) into the linked workfile.
Reference here is not related to the loading method used inside the workfile.
Generative (out ): This refers to the new product versions that were generated(published) from the linked workfile.
You can find more information about them in Project Anatomy - Link Types
Let me quote an example about getting version links:
Assuming you are looking for published product versions that are related to an approved workfile.
You can use “links ”.
e.g.
Here’s one of my published workfiles and as you can see it’s in my publish directory. I’m just adding this image to prove that this id is for a published workfiles.
and when running this snippet in the console window ayon-recipes/get_links_of_a_version.py at 927455274884255aec5657c6403f0af8689b76fb · MustafaJafar/ayon-recipes · GitHub
You’ll be able to see loaded products (in ) and published products (out ).
These are the links of my workfile version id shown earlier.
Find links for 'workfileLookdev v001':
- out lookMain v001
- out usdAsset_look v001
- out usdAsset v002
- in ACEScg_ColorChecker2014 v001
- in auto_service_4k v001
- in industrial_pipe_and_valve_01_4k v001
- in studio_small_08_4k v001
- in usdAsset v001