Page 1 of 1

Auto Key Switch Script for All Layers in Character Rigging

Posted: Fri Jul 12, 2024 2:11 am
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