Page 1 of 1

Allow us to use "Sync Layer Channels to Original" in the Scripting API.

Posted: Wed Nov 08, 2023 3:11 am
by concavepgons
I am currently getting into scripting by writing a script that can do the equivalent of "Sync Layer Channels to Original" to all reference layers (because it's time consuming to do it one layer at a time manually). There's a property that animation channels have inside the project file's JSON data called "ref" which allows this to happen when set to True. The problem is that the scripting API cannot access this for some reason (even though its right next to ones that can be user accessed).

Code: Select all

"transforms": {
	"translation": {
		"type": "Vec3",
		"ref": false, <<< ----- Would be cool if we can set this value in the Lua API.
		"mute": false,	 <<< ---- we can already set this in the API currently.


I checked other posts on the forum about this and apparently this has been a wanted/requested feature for many years:
viewtopic.php?t=33340
viewtopic.php?t=33180
https://lostmarble.com/forum/viewtopic.php?t=30410