jayanam / batex

Export selected objects as fbx in batch operation
GNU General Public License v3.0
233 stars 30 forks source link

Error on exporting Empties #20

Open DanMcLaughlin opened 3 years ago

DanMcLaughlin commented 3 years ago

Empties are used in many places, as sockets in UE4 and as root objects for skeletal mesh weapons, for two examples. The exporter fails because empties don't have a material slot, regardless of if you choose "One Material ID" or not.

DanMcLaughlin commented 3 years ago

The solution is to add the following two lines to bex_export

image

I could make a changelist but it's probably easier to just drop these in,

Metsapaholainen commented 2 years ago

I would like to use Empties as sockets but once they are exported I get these rotation and scaling issues in Unreal. I wonder if there would be a way to fix this? If you do any adjustements in Unreal to fix those manually and re-export all of that will be lost so it would be quite nice to be able to export those sockets with the correct values^^ image