Skip to content

Commit

Permalink
fix render.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh0502 committed Mar 12, 2023
1 parent 3a282df commit 2933f6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions render.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
argv = argv[argv.index("--") + 1:]

prefix = argv[0]
idx = argv[1]
idx = int(argv[1])

infile = "{}/gcode/gcode_{}.obj".format(prefix, idx)
outfile = "{}/gcode/render/gcode_{}.png".format(prefix, idx)
infile = "%s/gcode/gcode_%03d.obj" % (prefix, idx)
outfile = "%s/gcode/render/gcode_%03d.png" % (prefix, idx)

bpy.context.scene.render.filepath = outfile
bpy.ops.import_scene.obj(filepath=infile, axis_forward="Y", axis_up="Z")
Expand Down

0 comments on commit 2933f6f

Please sign in to comment.