Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Morph getTarget

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
420 Views, 2 Replies

Morph getTarget

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

2 REPLIES 2
Message 2 of 3
paulneale
in reply to: Anonymous

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. 

Paul Neale

http://paulneale.com


Paul Neale




EESignature

Message 3 of 3
Anonymous
in reply to: paulneale

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.

Post to forums  

Autodesk Design & Make Report