Skip to content

Instantly share code, notes, and snippets.

@p2or
p2or / premult-exr-psd.nk
Last active Sep 18, 2017 — forked from julik/unpremult.jsx
Unpremultiply the selected Photoshop layer
View premult-exr-psd.nk
set cut_paste_input [stack 0]
version 11.0 v1
Read {
inputs 0
file Untitled-1.psd
format "3881 1081 0 0 3881 1081 1 "
origset true
name Read6
selected true
xpos 1335
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 customPropertiesSearch.py
# for http://blender.stackexchange.com/questions/44886/search-enum-list
bl_info = {
"name": "Search Popup",
"version": (0, 0, 1),
"blender": (2, 75, 0),
"category": "Test"
}
import bpy
@p2or
p2or / mesh_to_pointcloud.md
Created Oct 15, 2018 — forked from keijiro/mesh_to_pointcloud.md
How to convert a mesh into a point cloud with Houdini.
View mesh_to_pointcloud.md

screenshot

  1. Import the source geometry.
  2. Append a Point Wrangle SOP and set the following snippet.
int vlist[] = pointvertices(0, @ptnum);
vector uv = vertex(0, "uv", vlist[0]);
@Cd = colormap("$HIP/TEXTURE_FILENAME.jpg", uv);
  1. Insert a Delete SOP. Change the pattern to "*". Enable "Keep Points".
View blender28x-ObjectUIList.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
@p2or
p2or / OpticalZDefocus.md
Created Jul 2, 2019 — forked from jedypod/OpticalZDefocus.md
OpticalZDefocus is a physically accurate ZDefocus, which controls circle of confusion (coc) size based on lens geometry using the depth of field equation. Set your lens and film-back characteristics, your focus distance, and adjust the size of your bokeh with the aperture size, just like a real lens.
View OpticalZDefocus.md

OpticalZDefocus

OpticalZDefocus is a physically accurate ZDefocus, which controls circle of confusion size based on lens geometry using the depth of field equation.

  1. Set your focal length and film-back characteristics to match the lens that shot your plate
  2. Animate your focus distance
  3. Adjust the f-stop to match the size of your bokeh to your plate

Just like a real lens! (And using the same math :P )

Features

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-supresspopups-test.py
# for http://blender.stackexchange.com/questions/61546/how-do-i-turn-off-confirmation-dialogues
bl_info = {
"name": "Suppress popups",
"description": "Suppress delete and parent popup ",
"author": "poor",
"version": (0, 0, 1),
"blender": (2, 75, 0),
"location": "3D View",
"category": "3D View"
View blender-custom-toggle-shortcut.py
# for http://blender.stackexchange.com/questions/58486/add-toggle-hotkey-to-custom-checkbox
bl_info = {
"name": "Add-on Template",
"description": "",
"author": "poor",
"version": (0, 0, 2),
"blender": (2, 70, 0),
"location": "3D View > Tools",
"warning": "", # used for warning icon and text in addons panel
@p2or
p2or / enum_GroupsInScene.py
Last active Jul 6, 2019
blender_EnumProperty-groupsInScene
View enum_GroupsInScene.py
bl_info = {
"name": "tester",
"description": "",
"author": "",
"version": (0, 0, 3),
"blender": (2, 70, 0),
"location": "3D View > Toolbox",
"warning": "", # used for warning icon and text in addons panel
"wiki_url": "",
"tracker_url": "",
You can’t perform that action at this time.