Clackdor Posted September 29, 2011 Share Posted September 29, 2011 Are animations embedded in GMF files? The answer appears to be yes. How would I extract the animations from one GMF to use in another? I bought 1 character from DexSoft and I want to apply the animations to the free peasant model they offer as part of an exercise where I'm playing with attaching armor, weapons, hair, etc. Hoping to create several unique characters out of two, something Dexsoft seems to encourage, reading their FAQ. I suspect that I'll get told that what I want to do is made a lot easier with Ultimate Unwrap3D, which is totally fine. It's on my shopping list. Quote Link to comment Share on other sites More sharing options...
Josh Posted September 29, 2011 Share Posted September 29, 2011 LoadAnimation() can be used to load animations from a GMF file into another mesh, but the hierarchy needs to match. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Clackdor Posted October 7, 2011 Author Share Posted October 7, 2011 OK, next question. I'm trying to add attach models to bones, and the animation tutorial gives this piece of code: TEntity head=FindChild(mesh,"Bip01 Head"); However, that code fails to load anything into "head". Tried count children on the body mesh and it came back with 1. Guess its not counting all the bones as children. Please help. FWIW, this is a mesh bought from Dexsoft. It had gmf files in the download so I haven't converted anything. Quote Link to comment Share on other sites More sharing options...
Josh Posted October 7, 2011 Share Posted October 7, 2011 Check in the model viewer to make sure the file contains a limb with that name. It is case-sensitive. If it's there, FindChild() will find it. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Clackdor Posted October 7, 2011 Author Share Posted October 7, 2011 Ok, I didn't double check with model viewer. I was just using Dexsoft's documentation. But wouldn't CountChildren() count all the limbs regardless of name? Getting 1 as a result is the confusing thing for me. Quote Link to comment Share on other sites More sharing options...
paramecij Posted October 7, 2011 Share Posted October 7, 2011 But wouldn't CountChildren() count all the limbs regardless of name? Getting 1 as a result is the confusing thing for me. I thought so too, but it turns out CountChildren() returns just the number of immediate children of the bone (not the whole hierarchy) .. my models hierarchy is: Bip01 | Bip01_Pelvis | Bip01_Spine | Bip01_Spine1 | Bip01_L_Thigh | Bip01_R_Thigh ... CountChildren( FindChild( model,"Bip01" )); // returns 1 CountChildren( FindChild( model,"Bip01_Spine" )); // returns 3 CountChildren( GetChild( GetChild( FindChild( model,"Bip01" ), 1), 1)); // returns 3 (same as above) Quote Link to comment Share on other sites More sharing options...
Clackdor Posted October 7, 2011 Author Share Posted October 7, 2011 Ok thanks!! Makes sense. Fixed. Thanks. Space, not underscore. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.