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

Discuss ideas for new features with other users. To submit feature requests to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
concavepgons
Posts: 13
Joined: Wed Jun 28, 2023 7:14 pm

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

Post 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
Post Reply