How to handle morph rules for silent FBX export when morph names conflict
CStrat
Posts: 23
What I'm wondering is how one sets the name for the CSV/Rule set for the "include morphs" part of silent FBX export when you want a specific morph and that morph's name is a prefix for several other morphs?
I have here a snippet that sets the export settings for the morphs by pulling a list of morph names from an array I've prepared:
oSettings.setBoolValue("IncludeMorphs", true); var rules = morphNames.map(function(morphName) { return morphName + "\nExport";}).join("\n");oSettings.setStringValue("rules", rules);
That's not really the issue - just posting code here to be helpful. The issue is, for example, if I specifically want to export something like PBMNipples, how do I set a rule to only export that one morph and not also "PBMNipplesSize" and "PBMNipplesDepth", etc...
Comments
So, for anyone looking into this issue. Apparently the limited REGEX used in the FBX export does not support this, and so any morphs that have similar names will have to be put in the rules as "Ignore".
Here is a conceptual solution to find and add any morphs that need to be ignored:
The FBX Exporter doesn't use RegEx at all, it just supports a couple of wild cards. If they do add RegEx it will most likely use the Qt implementation, as other areas of the application do.
Thanks for confirming!