Hi great addon speeds up the things. Could it be possible to add default behavior in addon preferences where you could choose from dropdown menu will the addon flip normals, or use normalize instead?
import bpy
for i in bpy.context.selected_objects:
if i.type == 'MESH':
bpy.context.scene.objects.active = i
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.select_all(action='SELECT')
bpy.ops.mesh.normals_make_consistent(inside=False)
bpy.ops.object.mode_set(mode='OBJECT')
Hey, after installing the file I’m reciving an error:
Traceback (most recent call last):
File “C:\Users\F\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\flippist.py”, line 116, in register
foo = bool(bpy.types.flippist_preferences)
AttributeError: ‘RNA_Types’ object has no attribute ‘flippist_preferences’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “G:\Soft\blender-2.79 (5 cze 2018)\2.79\scripts\modules\addon_utils.py”, line 357, in enable
mod.register()
File “C:\Users\F\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\flippist.py”, line 118, in register
bpy.utils.register_class(flippist_preferences)
ValueError: register_class(…): already registered as a subclass
Traceback (most recent call last):
File “C:\3D\3.0\scripts\modules\addon_utils.py”, line 351, in enable
mod = import(module_name)
File “C:\3D\scr\addons\flippist.py”, line 57, in
class flippist(bpy.types.Operator):
File “C:\3D\scr\addons\flippist.py”, line 64, in flippist
if name in bpy.context.user_preferences.addons:
AttributeError: ‘_RestrictContext’ object has no attribute ‘user_preferences’
You don’t need to install Flippist add-on in Blender 2.8 and 2.9
Because Blender 2.8 and Blender 2.9 already have a function, which allows flip Normals on multiple objects
Select all object you need to flip > Tab (Edit mode) Go to Mesh > Normals > Flip or Recalculate