Morph export rules for a specific Morph

I could also title this "Can we get a list of the simplified regex that the FBX exporter uses". 

I want to export a specific morph. For example:

PBMThisMorph

But when I do, it exports "PBMThisMorph" as well as "PBMThisMorphLeft" "PBMThisMorphRight" etc. 

I've tried:
 

PBMThisMorph$
PBMThisMorph/b
PBMThisMorph.

Is there not a character that the exporter recognizes that limits the morph name to an exact match, rather than treating it as a prefix with a wildcard?

Comments

  • GordigGordig Posts: 10,034

    I don't know for sure that this works, but have you tried putting the morph name in quotation marks?

  • CStratCStrat Posts: 25

    Gordig said:

    I don't know for sure that this works, but have you tried putting the morph name in quotation marks?

    Just tried. Unfortunately nothing is exported if I enclose the morph name in quotation marks. 

  • crosswindcrosswind Posts: 6,838

    Regex in current DS FBX exporter is quite limited... I'm afraid you have to use Ignore rule to exclude the ones you don't want to export ...

  • CStratCStrat Posts: 25

    crosswind said:

    Regex in current DS FBX exporter is quite limited... I'm afraid you have to use Ignore rule to exclude the ones you don't want to export ...

    Thanks.  Yes, this is what I ultimately concluded. 

    For anyone who would like to take this approach in scripting, here's a basic concept:

                if (modifierName.indexOf(morphName) !== -1 && modifierName !== morphName) {                ignoredMorphs.push(modifierName);            }

     

  • As I said in your other thread, the exporter is using a couple of wild cards, explicitly coded. If RegEx is added they will likely use the standard Qt implementation rather than rolling their own.

Sign In or Register to comment.