Sync referenced layer's channels to original in Lua?
Posted: Mon Nov 18, 2019 10:51 am
I've got referenced layers breaking all the time (not sure why, it might be importing/copying rigs from scene to scene), and I'm looking for a way to "Sync all Channels to Original" for all of them. Doing it by hand takes a lot of time.
But I can't find a way to do it in Lua.
layer:SyncAllChannelsToOriginalLayer() is not a real Method, but does one exist?
If it doesn't exist, are there other things I could try?
I've tried layer:UpdateReferencedLayer(syncOptions), but it only syncs the layer's content, not the channels.
But I can't find a way to do it in Lua.
Code: Select all
local i
for i = 1, #layers do
layer = layers[i]
if (layer:IsReferencedLayer()) then
--layer:SyncAllChannelsToOriginalLayer()
end
end
If it doesn't exist, are there other things I could try?
I've tried layer:UpdateReferencedLayer(syncOptions), but it only syncs the layer's content, not the channels.