Skip to content

Instantly share code, notes, and snippets.

Rob robgithub

Block or report user

Report or block robgithub

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@robgithub
robgithub / UV_unwrap_from_view.py
Created Apr 7, 2019
Blender UV unwrap from view all selected Meshes
View UV_unwrap_from_view.py
#UV unwrap from view all selected Meshes
import bpy
def unwrap_from_view(TARGET):
bpy.context.scene.objects.active = bpy.data.objects[TARGET]
bpy.context.object.name = TARGET
bpy.ops.object.mode_set(mode = 'EDIT')
bpy.ops.mesh.select_all(action = 'SELECT')
for oWindow in bpy.context.window_manager.windows:
oScreen = oWindow.screen
@robgithub
robgithub / is_smooth.py
Created Aug 15, 2018
Blender list all meshes noting Smooth and Auto Smooth settings
View is_smooth.py
import bpy, math
def is_smooth(polys):
smoothed=False
for poly in polys:
if not smoothed:
smoothed = poly.use_smooth
return smoothed
for mesh in bpy.data.objects.data.meshes:
You can’t perform that action at this time.