convert_legacy
Converter for legacy Max products.
MaxLegacyConvertor
Bases: ProductConvertorPlugin
Find and convert any legacy products in the scene.
This Converter will find all creator ids in the scene and will transform them to new creator ids.
Source code in client/ayon_max/plugins/create/convert_legacy.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
convert()
Convert all legacy products to current.
It is enough to add creator_identifier and instance_node.
Source code in client/ayon_max/plugins/create/convert_legacy.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
find_instances()
Find legacy products in the scene.
Legacy products are the ones that doesn't have creator_identifier parameter on them.
This is using cached entries done in :py:meth:~MaxCreator.cache_instance_data()
Source code in client/ayon_max/plugins/create/convert_legacy.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |