3
$\begingroup$

First of all, I'm new to Blender (v2.80). Currently working on AI project for which I need to create my data set. I need to render my object from every possible angle. I found a simple solution over here: Script to render one object from different angles


  • Create a mesh whose vertices are the desired viewpoint positions, around your body scan. (It's the sphere, in the illustration, named 'Viewpoints')
  • Create one camera, and assign it a 'Track To' constraint ('To': -Z, 'Up': Y) with the body scan as target

I was trying to achieve that effect, to make that sphere mesh. I just don't know how to make the sphere empty. It looks like this (my object and camera are inside of the sphere):

Blender Sphere

I'm sorry for making new post about it, I would prefer to comment that post that I'm referring to, but I don't have enough reputation for commenting posts.

$\endgroup$
4
  • 3
    $\begingroup$ Hi. Glad you liked the solution. To get rid of the faces, Edit Mode, X (Delete) > Only Faces. $\endgroup$
    – Robin Betts
    Feb 10, 2020 at 8:34
  • 1
    $\begingroup$ @RobinBetts no one likes the dolly lol. $\endgroup$
    – batFINGER
    Feb 10, 2020 at 9:18
  • $\begingroup$ @batFINGER give it some time.. not counting chickens, here :) $\endgroup$
    – Robin Betts
    Feb 10, 2020 at 9:21
  • 2
    $\begingroup$ I liked both solutions! Thank you a lot! $\endgroup$
    – Forlify
    Feb 10, 2020 at 9:31

1 Answer 1

3
$\begingroup$

bmesh script.

Add sphere, remove only faces with bmesh in object mode

import bpy
import bmesh

context = bpy.context

bpy.ops.mesh.primitive_uv_sphere_add()
ob = context.object
me = ob.data
bm = bmesh.new()
bm.from_mesh(me)
bmesh.ops.delete(bm, geom=bm.faces, context='FACES_ONLY')
bm.to_mesh(me)
me.update()
$\endgroup$
1
  • 1
    $\begingroup$ SE should have a 'Diplomat' badge.. $\endgroup$
    – Robin Betts
    Feb 10, 2020 at 10:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .