I pretty much always just use the Lightwave renderer, so the basics are always the same, masks and other channels change, but the basics to build the scene are the same.
This is the sync Code, it's very straight forward, look at the active tool, get the clip name, look through all the other loaders, if they have the same name, make the settings match.
disclaimer, try this at your own risk, if it destroys your hard drive and gets your wife pregnant, I am not responsible

- Code: Select all
#this will sync all loaders with the same clip name to the timing of the selected loader
import os
tool = comp.ActiveTool
loaders = comp.GetToolList()
GlobalIn = tool.GlobalIn[1]
GlobalOut = tool.GlobalOut[1]
TrimIn = tool.ClipTimeStart[1]
TrimOut = tool.ClipTimeEnd[1]
holdFist= tool.HoldFirstFrame[1]
holdLast= tool.HoldLastFrame[1]
revers = tool.Reverse[1]
loop = tool.Loop[1]
clip = tool.Clip[1]
comp.Lock() # Lock the comp so the GUI doesn't open up.
comp.StartUndo("LoaderSync")
for i in loaders.values():
if i.GetAttrs()['TOOLS_RegID'] =='Loader':
if i.Clip[1] ==clip:
print(i.Clip[1])
i.GlobalIn[1]=GlobalIn
i.GlobalOut[1]=GlobalOut
i.ClipTimeStart[1]=TrimIn
i.ClipTimeEnd[1]=TrimOut
i.HoldFirstFrame[1]=holdFist
i.HoldLastFrame[1]=holdLast
i.Reverse[1]=revers
i.Loop[1]=loop
i.Clip[1]=clip
comp.Unlock() # Lock the comp saver GUI doesn't open up.
comp.EndUndo(True)