Auto Key Switch Script for All Layers in Character Rigging

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
hungs59
Posts: 6
Joined: Mon Oct 09, 2023 6:28 am

Auto Key Switch Script for All Layers in Character Rigging

Post by hungs59 »

After searching the internet and forums, I couldn't find any scripts that auto key switch for all layers when rigging a character. Finally, I found a script Swicher by Aleksei Maletin.

Code: Select all

-- **************************************************
-- Provide Moho with the name of this script object
-- **************************************************

ScriptName = "AM_Switcher"

-- **************************************************
-- General information about this script
-- **************************************************

AM_Switcher = {}

function AM_Switcher:Name()
	return 'Switcher'
end

function AM_Switcher:Version()
	return '1.0'
end

function AM_Switcher:UILabel()
	return 'Switcher'
end

function AM_Switcher:Creator()
	return 'Aleksei Maletin'
end

function AM_Switcher:Description()
	return 'Creates a smartbone with all the switch keys'
end

However, in that utility, creating bone actions caused quite a few errors because if there are many layers in the switch, the bones rotate many times. I have fixed them to only auto key switch. I hope the author allows this and that it is useful for everyone.
https://drive.google.com/file/d/131Mcee ... sp=sharing
Post Reply