This file contains hidden or 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
| # Nathan Craddock 2016 | |
| from PIL import Image | |
| size = (256, 256) | |
| num_pixels = size[0] * size[1] | |
| # Returns the list of base 256 colors | |
| def get_pixel_colors(n): | |
| color_values = [] |
This file contains hidden or 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 math | |
| def pythagorean(object1, object2): | |
| dx = object1.location.x - object2.location.x | |
| dy = object1.location.y - object2.location.y | |
| dz = object1.location.z - object2.location.z | |
| return math.sqrt(pow(dx, 2) + pow(dy, 2) + pow(dz, 2)) |
This file contains hidden or 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
| # Nathan Craddock 2016 | |
| from PIL import Image | |
| import random | |
| import os | |
| from subprocess import run | |
| from itertools import product | |
| size = (4, 4) | |
| colors = [(0, 0, 0, 0), (0, 0, 0, 255)] |
This file contains hidden or 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
| bl_info = { | |
| "name": "Custom Property Manager", | |
| "author": "Nathan Craddock", | |
| "version": (0, 1), | |
| "blender": (2, 77, 0), | |
| "location": "UI > Properties Panel", | |
| "description": "Add objects to track Custom Props on", | |
| "tracker_url": "", | |
| "category": "Object" | |
| } |
This file contains hidden or 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 | |
| from bpy.types import Panel, EnumProperty, WindowManager | |
| import bpy.utils.previews | |
| import os | |
| # UI | |
| class PreviewsExamplePanel(bpy.types.Panel): | |
| bl_label = "Previews Example Panel" | |
| bl_idname = "OBJECT_PT_previews" |
This file contains hidden or 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
| # Marker Subtitle Script For Blender | |
| # | |
| # Exports Blender Timecodes to a | |
| # .txt or .srt file. | |
| # 2015 Nathan Craddock | |
| # Type the location here that you would like to save the file | |
| # on windows devices make sure to double backslash \\ so python | |
| # reads it as a \ |
This file contains hidden or 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
| My addon is now found at: https://github.com/natecraddock/pixel-maker |
NewerOlder