Page 1 of 1

Sync referenced layer's channels to original in Lua?

Posted: Mon Nov 18, 2019 10:51 am
by Lukas
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.

Code: Select all

local i
for i = 1, #layers do
	layer = layers[i]
	if (layer:IsReferencedLayer()) then
		--layer:SyncAllChannelsToOriginalLayer()
	end
end
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.

Re: Sync referenced layer's channels to original in Lua?

Posted: Tue Nov 19, 2019 12:07 am
by synthsin75
No, sadly there is no scripting access to resyncing channels. You can save a little time by consolidating channels, so you can sync all the channels on a layer at once, and if you show all the layers on the timeline, you can go down the list syncing.

Re: Sync referenced layer's channels to original in Lua?

Posted: Tue Nov 19, 2019 9:07 am
by Lukas
That's what I was afraid of... Thanks Wes!

Luckily all my referenced layers have 'reference' in the layername, so I can quickly filter by name and right click and sync all...

Re: Sync referenced layer's channels to original in Lua?

Posted: Tue Aug 17, 2021 3:56 pm
by Lukas
Google brought me to my own thread :(

Looks like this is still not possible, right?

Re: Sync referenced layer's channels to original in Lua?

Posted: Tue Aug 17, 2021 5:38 pm
by synthsin75
Lukas wrote: Tue Aug 17, 2021 3:56 pm Looks like this is still not possible, right?
Yeah. :cry:

Re: Sync referenced layer's channels to original in Lua?

Posted: Mon Aug 23, 2021 9:12 am
by Lukas
I filed a request 🤞