I am not an expert in programming Blender addons and would be happy to receive tips to implement the following:
Keyshot is a rendering software that is often used by industrial designers.
It has an fast and easy to use collaboration with CAD software through plugins.
CAD Software: Modeling —> Keyshot: Visualization:
Edit CAD (Rhino) —> One Click: Update Keyshot Render Scene —> Check Design —> Edit CAD —> One Click: Update Keyshot render scene …
I think Blender can be a free and better alternative to keyshot. What’s missing is just a little “Update Geometrie Plugin”
- Import geometry via OBJ.
- Import first Time:
Does the object name from the OBJ file not existent in the blendfile, everything runs with normal OBJ import.
- Import second time / update
If a mesh/object exists with the name from the OBJ,
the mesh is updated. Material and object are not touched.
How to do the mesh update?
(It is important that the name is kept and that no name.001 is created.)
Just overwrite the mesh data
bpy.data.meshes[name].faces / vetices…
But it looks like, it’s not possible?
bpy.ops - something like this ?: Blenderartists Topic
bpy.ops.mesh.select_all(action='DESELECT') bpy.ops.object.mode_set(mode='OBJECT') for v in bpy.context.object.data.vertices: if v.co > 0: v.select = True bpy.ops.object.mode_set(mode='EDIT') bpy.ops.mesh.delete(type='VERT')
Rename, delete and create mesh -> Create new with correct name?
Which one should I take? Thanks!
Rhino Plugin -> OBJ Export -> IPC File -> Blender Plugin