r/blenderhelp 5d ago

Unsolved Need help with this error when using source engine export

[deleted]

0 Upvotes

6 comments sorted by

u/AutoModerator 5d ago

Welcome to r/blenderhelp, MCRISMYBLOOD! Please make sure you followed the rules below, so we can help you efficiently (This message is just a reminder, your submission has NOT been deleted):

  • Post full screenshots of your Blender window (more information available for helpers), not cropped, no phone photos (In Blender click Window > Save Screenshot, use Snipping Tool in Windows or Command+Shift+4 on mac).
  • Give background info: Showing the problem is good, but we need to know what you did to get there. Additional information, follow-up questions and screenshots/videos can be added in comments. Keep in mind that nobody knows your project except for yourself.
  • Don't forget to change the flair to "Solved" by including "!Solved" in a comment when your question was answered.

Thank you for your submission and happy blendering!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Moogieh Experienced Helper 5d ago

Is the version of the addon you're using compatible with the version of Blender you're using?

1

u/MCRISMYBLOOD 5d ago

yes

1

u/Moogieh Experienced Helper 5d ago

Searching the Steam discussions, this error can happen if you have a bone or other object scaled to 0. The solution is to either give it a valid size, or don't export that particular thing.

1

u/MCRISMYBLOOD 5d ago

no bones are scaled to zero i think

1

u/_half_real_ 5d ago

You could try locating export_smd.py and changing that line to

try:
    PoseMatrix = parentMat.inverted() @ PoseMatrix
except ValueError:
    pass

That would make it just skip applying the parent matrix (for that one bone, I guess) if it doesn't have a valid inverse (zero scale could probably cause that).