Skip to main content
added 244 characters in body
Source Link

Introductions Hello, I'm a brand new blender newbieuser... For my tinyI'm working on a little project, I'm now learning how to construct 3d things using solely that's entirely made up of Python scripts. But I'm having trouble turning an octagon into a circle right now ( I do know that adding vertices would make it better, but is there wasanother way, perhaps something like a problemcode that resembles a subdivision modifier?)... Please assisthelp me with my queryproblem...

My Question I'd likeIs scripting subdivision modifier applicable? Can you show me how to turndo it with my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, andcode if so, howit is possible?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)

Introductions Hello, I'm a blender newbie... For my tiny project, I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)

Introductions Hello, I'm a brand new blender user... I'm working on a little project that's entirely made up of Python scripts. But I'm having trouble turning an octagon into a circle right now ( I do know that adding vertices would make it better, but is there another way, perhaps something like a code that resembles a subdivision modifier?)... Please help me with my problem...

My Question Is scripting subdivision modifier applicable? Can you show me how to do it with my code if it is possible?

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)
deleted 22 characters in body
Source Link

Introductions Hello, I'm a blender newbie... For my tiny project due on October 10,2021 I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)

Introductions Hello, I'm a blender newbie... For my tiny project due on October 10,2021 I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)

Introductions Hello, I'm a blender newbie... For my tiny project, I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)
edited body; edited title
Source Link

Making a HexagonOctagon into a Circle using python scripts

Introductions Hello, I'm a blender newbie... For my tiny project due on October 10,2021 I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my hexagonoctagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("hexagon""octagon")

object = bpy.data.objects.new("hexagon""octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)

Making a Hexagon into a Circle using python scripts

Introductions Hello, I'm a blender newbie... For my tiny project due on October 10,2021 I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my hexagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("hexagon")

object = bpy.data.objects.new("hexagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)

Making a Octagon into a Circle using python scripts

Introductions Hello, I'm a blender newbie... For my tiny project due on October 10,2021 I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...

My Question I'd like to turn my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)

Here is my code

import bpy

verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]

faces = [(0,1,2,3,4,5,6,7)]

mesh = bpy.data.meshes.new("octagon")

object = bpy.data.objects.new("octagon", mesh)

bpy.context.collection.objects.link(object)

mesh.from_pydata(verts,[],faces)
added 48 characters in body
Source Link
Robin Betts
  • 78.8k
  • 10
  • 79
  • 199
Loading
Source Link
Loading