Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonl committed Jul 17, 2023
1 parent 25f29f3 commit 12ccb77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/blender_batch_3mf_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def export3MF(abbr, printType, style, partNum):
o.select_set(True)

# export objects
bpy.ops.export_mesh.threemf(filepath=f'K:/USAofPlasticv1/release_250m_v1/{abbr}/{abbr}-{printType}{"-" if len(style) > 0 else ""}{style}{"-p" if partNum > 0 else ""}{partNum}.3mf', use_selection=True)
if len(bpy.context.selected_objects) > 0:
bpy.ops.export_mesh.threemf(filepath=f'K:/USAofPlasticv1/release_250m_v1/{abbr}/{abbr}-{printType}{"-" if len(style) > 0 else ""}{style}{"-p" if partNum > 0 else ""}{partNum}.3mf', use_selection=True)

regionAbbr = 'RI'

Expand Down

0 comments on commit 12ccb77

Please sign in to comment.