This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download the latest version of Blender for linux if not already in folder | |
# 2020-06-29 | |
baseUrl=https://download.blender.org/release/ | |
latest=$( curl -s $baseUrl \ | |
| egrep "^<a" \ | |
| sed -re 's/^[^"]+"([^"]+)">[^>]+>\s+([^-]+)-([^-]+)-([0-9]+).+/\4-\3-\2 \1/' \ | |
-e 's/-Jan-/-01-/' \ | |
-e 's/-Feb-/-02-/' \ | |
-e 's/-Mar-/-03-/' \ |