Code: Select all
void BlendPoses @ BlendActions(int32 frame, int32 numToBlend, LM_String names[numToBlend], real percentages[numToBlend]);
This (and all the variants that have passed through my mind), applied to a vector layer with two actions named "A" and "E", is what I have been basically trying all the afternoon:
Code: Select all
function LayerScript(moho)
local actionNames = {["A"] = 0.5, ["E"] = 0.25}
local percentages = {0.5, 0.25}
--local nActions = layer:CountActions()
if (moho.frame == 1) then
moho.layer:BlendActions(1, 2, actionNames, percentages)
end
end
BlendActions(the frame where blending will take place (1 in this case), the number of morphs involved? (2 in this case), a string key based table with the names of the actions involved (A, E), a table with the weights to be applied for each of the previous values (0.5, 0.25))
Hmmm, maybe only Mike could say, but I lose nothing for ask here before... Of course, all is temporally and too much simplified, in order to try to make it works first in it's most simple way, but apart of that... do someone see any logical (or illogical) on this? Or... do you think this function is intended to be used in other way, like inside a "for" loop (what I've tried too with no results either) or something? I suspect that the problem well could be in the way I'm providing tables to the function, but the truth is that I don't know what more I could try and I'm totally lost with all this in general... so well, thank you very much in advance for any help.
PS: BTW, I have been testing it in the "Layer Script" fashion/way to avoid as much as possible the "Alt+F5" (of the dead), but I've been testing it lately as a part of a tool, just in case it could have something to do with crashes, and nothing seems to change.