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
# -*- coding: utf-8 -*- | |
# ##### 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, |
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 os | |
import sys | |
import bpy | |
output = None | |
input = None | |
info = None | |
error = None | |
write = None |
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 the bpy module to access blender API | |
import bpy | |
#WARNING: this is written and tested for blender 2.79 | |
#blender 2.8 and newer will likely have a different python API | |
#create a property group, this is REALLY needed so that operators | |
#AND the UI can access, display and expose it to the user to change | |
#in here we will have all properties(variables) that is neccessary | |
class CustomPropertyGroup(bpy.types.PropertyGroup): |
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 | |
import json | |
import os | |
class DataCombiner(object): | |
def __init__(self, path_to_renders, path_to_groundtruth): | |
self.path_to_groundtruth = path_to_groundtruth | |
bpy.data.scenes['Scene'].render.filepath = path_to_renders |
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 | |
def do_bake(scene): | |
""" This thing tries to bake all the object animations | |
and camera movement into a single track | |
Drawback: it eleminates scenegraph hierarchy and flattens everzthing | |
This suposed to be it, but fingers crossed: | |
https://wiki.blender.org/index.php/Dev:2.4/Source/Animation/AnimationBaking |
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
# ##### 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 |
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
# for http://blender.stackexchange.com/q/73858/3710 | |
import bpy | |
import os | |
def image_sequence_resolve(operator, context): | |
filepath = context.space_data.clip.filepath | |
filepath_full = bpy.path.abspath(filepath) | |
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 | |
######################################### | |
# Configuration # | |
######################################### | |
# If True, key modifiers will be skipped (always set to NONE). | |
IGNORE_KEY_MODIFIER = False |
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
bl_info = { | |
"name": "Example Addon Preferences", | |
"author": "Your Name Here", | |
"version": (1, 0), | |
"blender": (2, 65, 0), | |
"location": "SpaceBar Search -> Addon Preferences Example", | |
"description": "Example Addon", | |
"warning": "", | |
"wiki_url": "", | |
"tracker_url": "", |
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
# 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 |