Closed cbenhagen closed 1 year ago
To give this some context: The goal for us would be to copy clips from daily sync bins to scene bins. It would be nice if the mobs would not need to be re-created from scratch. Any guidance on how to achieve this would be much appreciated. I am happy to contribute the final script back as an example.
Yes this would be nice. Its a little involved because a mob references other mobs and objects. Those need to get copied as well for avid to to complain or crash.
@cbenhagen did you ever make progress with this?
No unfortunately not.
This is now possible in the 1.4 release.
All AVBObjects
now have a copy method, that can change the root object to another file.
The method handles all the tricky dependent references too.
with avb.open("source.avb") as a:
with avb.open() as b:
for mob in a.content.mobs:
new_mob = mob.copy(b)
b.content.add_mob(new_mob)
b.write("dest.avb")
mobs also have a dependant_mobs
method too that returns mob dependencies.
for more examples look at test_copy.py
This is gonna be big for me! Thank you so much!
It would be nice if this would work:
This currently results in: