ScriptSpot home

Forum topic · General Scripting

Morpher - zero active channel values?

By JP356 · 2018-01-30

Description

Is there a simple way to turn all of the active morph channels to 0.0? Like the "zero active channels button" but using maxscript?

Comments (1)
Julien Plard

Hi, try this


fn morpherCheckTargets obj = (
	nbMorphers = #()
	for i=1 to 100 do (
		if (WM3_MC_HasTarget obj.morpher i) == true do append nbMorphers i
	)
	nbMorphers
)

fn ZeroActiveChannelsValues obj = (
	for i in (morpherCheckTargets obj) do (
		WM3_MC_SetValue obj.morpher i 0.0
	)
)

ZeroActiveChannelsValues $