Skip to content

Instantly share code, notes, and snippets.

poor p2or

Block or report user

Report or block p2or

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
View shot-utils.py
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
View blender-deactivate-shift-MMB-II.py
# https://blender.stackexchange.com/q/110742/3710
bl_info = {
"name": "Disable Shift+MMB in 3D Viewport",
"description": "Disable Shift+MMB in 3D Viewport",
"author": "p2or",
"version": (0, 0, 1),
"blender": (2, 79, 0),
"location": "3D View",
"category": "3D View"
View blender-deactivate-shift-MMB.py
# https://blender.stackexchange.com/q/110742/3710
bl_info = {
"name": "Disable Shift+MMB in 3D Viewport",
"description": "Disable Shift+MMB in 3D Viewport",
"author": "p2or",
"version": (0, 0, 1),
"blender": (2, 79, 0),
"location": "3D View",
"category": "3D View"
View blender-pie-subsurf-utils.py
# for https://blender.stackexchange.com/q/46848/3710
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
View nuke-batch-converter.py
import os
file_prefix = None # If set to None read node file path is used
color_space = None # Read node colorspace "sRGB", "Cineon" ...
file_types = ("exr", "jpg") # Set of file types to convert
rotate = False # If set to True, another reformat node will be created
rotation_props = ("center", "turn") # clockwise: ("flip", "flop", "turn")
selection = nuke.selectedNodes()
View config.ocio.diff
diff --git a/config.ocio b/config.ocio
index 5a31bc0..71223ea 100644
--- a/config.ocio
+++ b/config.ocio
@@ -1,190 +1,936 @@
-# Filmlike Dynamic Range LUT configuration for
-# Blender. Crafted by Troy James Sobotka with
-# special thanks and feedback from Guillermo
-# Espertino, Claudio Rocha, Bassam Kurdali, Eugenio
-# Pignataro, Henri Hebeisen, Jason Clarke,
View blender-groups-by-materials.py
import bpy
data = {}
for obj in bpy.data.objects: # bpy.context.selected_objects
mat_slots = obj.material_slots.keys()
if mat_slots:
data_key = "-".join(mat_slots)
else:
data_key = "None"
data.setdefault(data_key, []).append(obj)
View blender-groups-by-vert-count.py
import bpy
data = {}
for obj in bpy.data.objects: # bpy.context.selected_objects
if obj.type == 'MESH':
data.setdefault(len(obj.data.vertices), []).append(obj)
for key, value in data.items():
group_name = "{} Vertices".format(key)
View blender-open-user-prefs-and-expand-addon.py
import bpy
import addon_utils
# Set Addon Tab
bpy.context.user_preferences.active_section = 'ADDONS'
# Set Filter
bpy.context.window_manager.addon_search = "Addon Name"
# Get a module reference by name
View blender-add-nodes-and-frame-them.py
#https://blender.stackexchange.com/q/99989/3710
import bpy
class FrameSelection(bpy.types.Operator):
"""Add a frame to all selected Nodes"""
bl_idname = "node.frame_selection"
bl_label = "Add Frame"
bl_options = {'REGISTER', 'UNDO'}
You can’t perform that action at this time.