Created
January 6, 2016 09:52
-
-
Save zeffii/fa59cf864b6f58aaed7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
bpy.ops.mesh.primitive_circle_add(vertices=5, radius=1, location=(0, 0, 0)) | |
bpy.context.object.dimensions[0] = 0.7 | |
bpy.context.object.dimensions[1] = 0.7 | |
# ----- vs ------ | |
bpy.ops.mesh.primitive_circle_add(vertices=5, radius=1, location=(0, 0, 0)) | |
dims = bpy.context.object.dimensions | |
bpy.context.object.dimensions = 0.7, 0.7, dims[2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment