Skip to content

Commit

Permalink
0_7_0
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiKrafting committed Sep 10, 2019
1 parent be7f821 commit eb2783e
Show file tree
Hide file tree
Showing 4 changed files with 467 additions and 53 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Blender Unreal Engine Exporter.
- Option to override preferences (Useful for a per project setup, see "Overriding Preferences" below)
- Option to create a "{fbx_file_name}.bjd" for the UE Plugin https://github.com/DigiKrafting/ue_plugin_blender (* ALPHA)

# Roadmap

- Recreate Blender Materials Nodes in Unreal Materials

# Required Blender Version

2.80.0
Expand Down Expand Up @@ -93,4 +97,6 @@ Installing an Addon in Blender
## Preferences
![alt](/screenshots/ue_prefs.png)
## Preferences (UE)
![alt](/screenshots/ue_prefs_ue.png)
![alt](/screenshots/ue_prefs_ue.png)
## Output Preferences Panel
![alt](/screenshots/ue_blender_output.png)
24 changes: 11 additions & 13 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"name": "DKS UE",
"description": "Export to UE",
"author": "DigiKrafting.Studio",
"version": (0, 6, 0),
"version": (0, 7, 0),
"blender": (2, 80, 0),
"location": "Info Toolbar, File -> Export",
"wiki_url": "https://github.com/DigiKrafting/blender_addon_ue/wiki",
Expand Down Expand Up @@ -118,7 +118,7 @@ class dks_ue_addon_prefs(bpy.types.AddonPreferences):
# Static Mesh

ue_static_mesh_NormalImportMethod : bpy.props.EnumProperty(
items=[('ComputeNormals', "ComputeNormals", "Compute Normals"),('ImportNormalsAndTangents', "ImportNormalsAndTangents", "Import Normals And Tangents"),('ImportNormals', "ImportNormals", "Import Normals"),],
items=[('ComputeNormals', "ComputeNormals", "Compute Normals", 1),('ImportNormalsAndTangents', "ImportNormalsAndTangents", "Import Normals And Tangents", 2),('ImportNormals', "ImportNormals", "Import Normals", 3),],
name="Normal Import Method",
default='ComputeNormals',
)
Expand All @@ -138,7 +138,7 @@ class dks_ue_addon_prefs(bpy.types.AddonPreferences):
# Skeletal Mesh

ue_skeletal_mesh_NormalImportMethod : bpy.props.EnumProperty(
items=[('ComputeNormals', "ComputeNormals", "Compute Normals"),('ImportNormalsAndTangents', "ImportNormalsAndTangents", "Import Normals And Tangents"),('ImportNormals', "ImportNormals", "Import Normals"),],
items=[('ComputeNormals', "ComputeNormals", "Compute Normals", 1),('ImportNormalsAndTangents', "ImportNormalsAndTangents", "Import Normals And Tangents", 2),('ImportNormals', "ImportNormals", "Import Normals", 3),],
name="Normal Import Method",
default='ComputeNormals',
)
Expand All @@ -161,16 +161,16 @@ class dks_ue_addon_prefs(bpy.types.AddonPreferences):

# Animations

ue_animation_animation_length : bpy.props.EnumProperty(
items=[('AnimatedKey', "AnimatedKey", "Animated Key"),('ExportedTime', "ExportedTime", "Exported Time"),('SetRange', "SetRange", "Set Range"),],
name="Animation_Length",
ue_animation_AnimationLength : bpy.props.EnumProperty(
items=[('AnimatedKey', "AnimatedKey", "Animated Key", 1),('ExportedTime', "ExportedTime", "Exported Time", 2),('SetRange', "SetRange", "Set Range", 3),],
name="Animation Length",
default='ExportedTime',
)
ue_animation_frame_range_min : bpy.props.IntProperty(
ue_animation_FrameRangeMin : bpy.props.IntProperty(
name="Frame Range Min",
default=0,
)
ue_animation_frame_range_max : bpy.props.IntProperty(
ue_animation_FrameRangeMax : bpy.props.IntProperty(
name="Frame Range Max",
default=0,
)
Expand Down Expand Up @@ -218,10 +218,8 @@ def draw(self, context):

box=layout.box()
box.prop(self, 'option_ue_json')
box.label(text='Creates a "{fbx_file_name}.bjd" for the UE Plugin.',icon='INFO')

box_sub=box.box()
box_sub.label(text='UE JSON Settings',icon='RADIOBUT_ON')
box_sub.prop(self, 'ue_ImportMesh')
box_sub.prop(self, 'ue_ImportMaterials')
box_sub.prop(self, 'ue_ImportAnimations')
Expand All @@ -245,9 +243,9 @@ def draw(self, context):

box_sub=box.box()
box_sub.label(text='Animations',icon='RADIOBUT_ON')
box_sub.prop(self, 'ue_animation_animation_length')
box_sub.prop(self, 'ue_animation_frame_range_min')
box_sub.prop(self, 'ue_animation_frame_range_max')
box_sub.prop(self, 'ue_animation_AnimationLength')
box_sub.prop(self, 'ue_animation_FrameRangeMin')
box_sub.prop(self, 'ue_animation_FrameRangeMax')
box_sub.prop(self, 'ue_animation_ImportMeshesInBoneHierarchy')
box_sub.prop(self, 'ue_animation_UseDefaultSampleRate')
box_sub.prop(self, 'ue_animation_CustomSampleRate')
Expand Down
Loading

0 comments on commit eb2783e

Please sign in to comment.