Blender V2.61 - r43446

presets.py

Go to the documentation of this file.
00001 #
00002 # Copyright 2011, Blender Foundation.
00003 #
00004 # This program is free software; you can redistribute it and/or
00005 # modify it under the terms of the GNU General Public License
00006 # as published by the Free Software Foundation; either version 2
00007 # of the License, or (at your option) any later version.
00008 #
00009 # This program is distributed in the hope that it will be useful,
00010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 # GNU General Public License for more details.
00013 #
00014 # You should have received a copy of the GNU General Public License
00015 # along with this program; if not, write to the Free Software Foundation,
00016 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017 #
00018 
00019 # <pep8 compliant>
00020 
00021 from bl_operators.presets import AddPresetBase
00022 from bpy.types import Operator
00023 
00024 
00025 class AddPresetIntegrator(AddPresetBase, Operator):
00026     '''Add an Integrator Preset'''
00027     bl_idname = "render.cycles_integrator_preset_add"
00028     bl_label = "Add Integrator Preset"
00029     preset_menu = "CYCLES_MT_integrator_presets"
00030 
00031     preset_defines = [
00032         "cycles = bpy.context.scene.cycles"
00033     ]
00034 
00035     preset_values = [
00036         "cycles.max_bounces",
00037         "cycles.min_bounces",
00038         "cycles.no_caustics",
00039         "cycles.diffuse_bounces",
00040         "cycles.glossy_bounces",
00041         "cycles.transmission_bounces",
00042         "cycles.transparent_min_bounces",
00043         "cycles.transparent_max_bounces"
00044     ]
00045 
00046     preset_subdir = "cycles/integrator"
00047 
00048 
00049 def register():
00050     pass
00051 
00052 
00053 def unregister():
00054     pass
00055 
00056 if __name__ == "__main__":
00057     register()