
May be combined with Active Collection Only.",ĭescription = "Only write deforming bones (and non-deforming ones when they have deforming children)",ĭescription = "Append a final bone to the end of each chain to specify last bone length (use this when you intend to edit the armature from exported data)", May be combined with Selected Objects Only.",ĭescription = "Export selected objects only. # to the class instance from the operator settings before calling.ĭescription = "Export objects in the active collection only (and its children). # List of operator properties, the attributes will be assigned Maxlen = 255, # Max internal buffer length, longer would be clamped. """FBX exporter compatible with Unity's coordinate and scaling system""" props import StringProperty, BoolProperty, EnumPropertyĬlass ExportUnityFbx( Operator, ExportHelper): # invoke() function which calls the file selector.įrom bpy_extras. # ExportHelper is a helper class, defines filename and # Exporter stuff (from the Operator File Export template) # Always finish with 'FINISHED' so Undo is handled properly


Print( "Invoking default FBX Exporter:", params)īpy. type in, use_active_collection = active_collection, use_selection = selected_objects, use_armature_deform_only = deform_bones, add_leaf_bones = leaf_bones) # Add them to the list so they could be restored laterĭisabled = # Find hidden child collections and unhide them Their objects aren't included in current view layer. # No need to unhide excluded collections.

# Visibility will be restored right before saving the FBX. # apply_rotation and matrix changes don't have effect otherwise. # All objects and collections in this view layer must be visible while being processed.

# Therefore restoring the multi-user data assigns a shared but already processed datablock. # Eventually multi-user datablocks become single-user and gets processed. Unique copies are made for applying the rotation. # Multi-user datablocks are preserved here. "description": "FBX exporter compatible with Unity's coordinate and scaling system.",
