Hey there! I work a lot of extracts in video games and they tend to come out pretty wonky, so I often try to piece things together while maintaining original rigging, and now that I’m trying to get into coding, I want to try to automate some of the processes
As a note I am using 3DS Max 2019
What I usually do is extract skin data, then stitch models together, then import skin data back, but then I’ll have 3-4 skin data meshes on the side, so I’ll have to go 1 by 1 to import with the same settings each time through.
Some preliminary research on the maxscript repository did let me find this:
skinUtils.ImportSkinDataNoDialog matchByName removeTargetPrefix removeTargetSuffix removeSourcePrefix removeSourceSuffix threshold interpolationType
which I guess I know what most of it means so I guess what needs to happen. The source and target needs to be selected.
skinUtils.ImportSkinDataNoDialog true false false false false 0.01 0
My problem is selecting all of the SkinData nodes and looping through them all. Not to sure how to select only things that have “SkinData” in their name.
I thought I could do a simple loop
skinData = for i in selection where (i.name == "*SkinData*" collect i
but it stops at that, figured using SkinData as a wildcard, if it contains that, its most likely a skin data. Since when running it does not work, I have no idea what I am doing. I then need to have the target node so i was doing the same thing but where (i.name != “SkinData”] since hopefully I’d only have one target node in my selection. Afterwards I would of done a loop within skinData where I select none, select i, select targetData and did the skinUtils import above.
How do I go about selecting what I need and using that function? Thanks for helping out!