Unless I'm mistaken WM3_MC_GetTarget seems to only get the morph targets, but only if the the targets haven't been altered or the morph channel renamed so they are not the same.
Is there a quick way of getting the list morph targets for that morpher, like when you choose the Pick Objects from Scene option?
Cheers
Morpher has always been odd in the way that it is accessed and something that I always have to fight with.
$.morpher[1] --Will get you the item in the first channel
Assuming the above means that you are working with an array
$.morpher.count --This DOESN'T work.
If you want to get access to all the channels you can also use
getSubAnimNames $.morpher
Since the only thing that is animatable are the targets you can loop through all 100 of them. You have no way of knowing how ever how many of the tracks are actually used so you need to go through all of them.
You can also use
getPropNames $.morpher
This will return an array of all the property names including the targets that have been loaded and none of the ones that haven't been loaded.
Thanks for the help. I'm glad it's not just me having problems scripting morphers. I manaaged to get around the problem in the end by looping over the 100 channels and finding the corresponding target, failing that I then searched for that name in within the objects list (looking for "sneeze" in "big_sneeze_2") and visa versa.
Can't find what you're looking for? Ask the community or share your knowledge.