when i need a new key? i click "add keyframe" for each channel.
![Image](http://img393.imageshack.us/img393/9416/001ny1.png)
it is possible click it once for all channel, thanks for your time
Moderators: Víctor Paredes, Belgarath, slowtiger
How do you think it is possible to key a switch layer? Which value will you use? The last one in the time line? Next one?. IMHO keyframe a switch layer is not possible. Keyframe the layers inside the switch layer is other story.keisern wrote:Switch layer is also one of the channels that are missing. Would love to find that for my own script.
I've done a script deleting/removing keyframes, that is why I need to know the switch channel name.Genete wrote:How do you think it is possible to key a switch layer? Which value will you use? The last one in the time line? Next one?. IMHO keyframe a switch layer is not possible. Keyframe the layers inside the switch layer is other story.keisern wrote:Switch layer is also one of the channels that are missing. Would love to find that for my own script.
-G
Code: Select all
for i = 0, layerCount - 1 do
local testlayer = group:Layer(i)
if (testlayer:LayerType() == MOHO.LT_SWITCH) then
group2 = moho:LayerAsGroup(testlayer)
subSwitch = moho:LayerAsSwitch(testlayer)
Lcount = group2:CountLayers()
SWunits = 180 / Lcount
end
end
Code: Select all
for b = 1, Lcount do
local swLayers = group2:Layer(b - 1)
local swUnit = b * SWunits
local SWname = swLayers:Name()
if ( keySwitch ~= nil ) then
if (keySwitch > swUnit) then
subSwitch:SwitchValues():SetValue(moho.frame, SWname)
end