[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4161] trunk/py/scripts/addons: minor style cleanup to povray export and fix for UI, setting booleans now expects 0/1 only.
Campbell Barton
ideasman42 at gmail.com
Mon Jan 14 11:22:27 CET 2013
Revision: 4161
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4161
Author: campbellbarton
Date: 2013-01-14 10:22:23 +0000 (Mon, 14 Jan 2013)
Log Message:
-----------
minor style cleanup to povray export and fix for UI, setting booleans now expects 0/1 only.
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
trunk/py/scripts/addons/render_povray/__init__.py
trunk/py/scripts/addons/render_povray/render.py
trunk/py/scripts/addons/render_povray/ui.py
Modified: trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/export_fbx.py 2013-01-12 03:49:29 UTC (rev 4160)
+++ trunk/py/scripts/addons/io_scene_fbx/export_fbx.py 2013-01-14 10:22:23 UTC (rev 4161)
@@ -28,7 +28,6 @@
import bpy
from mathutils import Vector, Matrix
-
# I guess FBX uses degrees instead of radians (Arystan).
# Call this function just before writing to FBX.
# 180 / math.pi == 57.295779513
Modified: trunk/py/scripts/addons/render_povray/__init__.py
===================================================================
--- trunk/py/scripts/addons/render_povray/__init__.py 2013-01-12 03:49:29 UTC (rev 4160)
+++ trunk/py/scripts/addons/render_povray/__init__.py 2013-01-14 10:22:23 UTC (rev 4161)
@@ -26,10 +26,10 @@
"location": "Render > Engine > POV-Ray 3.7",
"description": "Basic POV-Ray 3.7 integration for blender",
"warning": "both POV-Ray 3.7 and this script are beta",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
- "Scripts/Render/POV-Ray",
- "tracker_url": "https://projects.blender.org/tracker/index.php?"\
- "func=detail&aid=23145",
+ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
+ "Scripts/Render/POV-Ray",
+ "tracker_url": "https://projects.blender.org/tracker/index.php?"
+ "func=detail&aid=23145",
"category": "Render"}
if "bpy" in locals():
@@ -40,8 +40,14 @@
else:
import bpy
- from bpy.props import StringProperty, BoolProperty, IntProperty, FloatProperty, \
- FloatVectorProperty, EnumProperty, PointerProperty
+ from bpy.props import (StringProperty,
+ BoolProperty,
+ IntProperty,
+ FloatProperty,
+ FloatVectorProperty,
+ EnumProperty,
+ PointerProperty,
+ )
from . import ui
from . import render
from . import update_files
@@ -63,7 +69,7 @@
default=True)
scene_name = StringProperty(
name="Scene Name",
- description="Name of POV-Ray scene to create. Empty name will use the name of " \
+ description="Name of POV-Ray scene to create. Empty name will use the name of "
"the blend file",
default="", maxlen=1024)
scene_path = StringProperty(
@@ -77,7 +83,7 @@
default="", maxlen=1024, subtype="DIR_PATH")
list_lf_enable = BoolProperty(
name="LF in lists",
- description="Enable line breaks in lists (vectors and indices). Disabled: " \
+ description="Enable line breaks in lists (vectors and indices). Disabled: "
"lists are exported in one line",
default=True)
@@ -96,7 +102,7 @@
default=False)
media_samples = IntProperty(
name="Samples",
- description="Number of samples taken from camera to first object " \
+ description="Number of samples taken from camera to first object "
"encountered along ray path for media calculation",
min=1, max=100, default=35)
@@ -112,10 +118,10 @@
indentation_character = EnumProperty(
name="Indentation",
description="Select the indentation type",
- items=(("0", "None", "No indentation"),
- ("1", "Tabs", "Indentation with tabs"),
- ("2", "Spaces", "Indentation with spaces")),
- default="2")
+ items=(('NONE', "None", "No indentation"),
+ ('TAB', "Tabs", "Indentation with tabs"),
+ ('SPACE', "Spaces", "Indentation with spaces")),
+ default='SPACE')
indentation_spaces = IntProperty(
name="Quantity of spaces",
description="The number of spaces for indentation",
@@ -129,7 +135,7 @@
# Real pov options
command_line_switches = StringProperty(
name="Command Line Switches",
- description="Command line switches consist of a + (plus) or - (minus) sign, followed " \
+ description="Command line switches consist of a + (plus) or - (minus) sign, followed "
"by one or more alphabetic characters and possibly a numeric value",
default="", maxlen=500)
@@ -139,7 +145,7 @@
antialias_method = EnumProperty(
name="Method",
- description="AA-sampling method. Type 1 is an adaptive, non-recursive, super-sampling "\
+ description="AA-sampling method. Type 1 is an adaptive, non-recursive, super-sampling "
"method. Type 2 is an adaptive and recursive super-sampling method",
items=(("0", "non-recursive AA", "Type 1 Sampling in POV-Ray"),
("1", "recursive AA", "Type 2 Sampling in POV-Ray")),
@@ -155,7 +161,7 @@
jitter_enable = BoolProperty(
name="Jitter",
- description="Enable Jittering. Adds noise into the sampling process (it should be " \
+ description="Enable Jittering. Adds noise into the sampling process (it should be "
"avoided to use jitter in animation)",
default=True)
@@ -165,7 +171,7 @@
antialias_gamma = FloatProperty(
name="Antialias Gamma",
- description="POV-Ray compares gamma-adjusted values for super sampling. Antialias " \
+ description="POV-Ray compares gamma-adjusted values for super sampling. Antialias "
"Gamma sets the Gamma before comparison",
min=0.0, max=5.0, soft_min=0.01, soft_max=2.5, default=2.5)
@@ -176,7 +182,7 @@
photon_spacing = FloatProperty(
name="Spacing",
- description="Average distance between photons on surfaces. half this get four times " \
+ description="Average distance between photons on surfaces. half this get four times "
"as many surface photons",
min=0.001, max=1.000, soft_min=0.001, soft_max=1.000, default=0.005, precision=3)
@@ -187,7 +193,7 @@
photon_adc_bailout = FloatProperty(
name="ADC Bailout",
- description="The adc_bailout for photons. Use adc_bailout = " \
+ description="The adc_bailout for photons. Use adc_bailout = "
"0.01 / brightest_ambient_object for good results",
min=0.0, max=1000.0, soft_min=0.0, soft_max=1.0, default=0.1, precision=3)
@@ -201,43 +207,43 @@
radio_adc_bailout = FloatProperty(
name="ADC Bailout",
- description="The adc_bailout for radiosity rays. Use " \
+ description="The adc_bailout for radiosity rays. Use "
"adc_bailout = 0.01 / brightest_ambient_object for good results",
min=0.0, max=1000.0, soft_min=0.0, soft_max=1.0, default=0.01, precision=3)
radio_always_sample = BoolProperty(
name="Always Sample",
- description="Only use the data from the pretrace step and not gather " \
+ description="Only use the data from the pretrace step and not gather "
"any new samples during the final radiosity pass",
default=True)
radio_brightness = FloatProperty(
name="Brightness",
- description="Amount objects are brightened before being returned " \
+ description="Amount objects are brightened before being returned "
"upwards to the rest of the system",
min=0.0, max=1000.0, soft_min=0.0, soft_max=10.0, default=1.0)
radio_count = IntProperty(
name="Ray Count",
- description="Number of rays for each new radiosity value to be calculated " \
+ description="Number of rays for each new radiosity value to be calculated "
"(halton sequence over 1600)",
min=1, max=10000, soft_max=1600, default=35)
radio_error_bound = FloatProperty(
name="Error Bound",
- description="One of the two main speed/quality tuning values, " \
+ description="One of the two main speed/quality tuning values, "
"lower values are more accurate",
min=0.0, max=1000.0, soft_min=0.1, soft_max=10.0, default=1.8)
radio_gray_threshold = FloatProperty(
name="Gray Threshold",
- description="One of the two main speed/quality tuning values, " \
+ description="One of the two main speed/quality tuning values, "
"lower values are more accurate",
min=0.0, max=1.0, soft_min=0, soft_max=1, default=0.0)
radio_low_error_factor = FloatProperty(
name="Low Error Factor",
- description="Just enough samples is slightly blotchy. Low error changes error " \
+ description="Just enough samples is slightly blotchy. Low error changes error "
"tolerance for less critical last refining pass",
min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, default=0.5)
@@ -248,13 +254,13 @@
radio_minimum_reuse = FloatProperty(
name="Minimum Reuse",
- description="Fraction of the screen width which sets the minimum radius of reuse " \
+ description="Fraction of the screen width which sets the minimum radius of reuse "
"for each sample point (At values higher than 2% expect errors)",
min=0.0, max=1.0, soft_min=0.1, soft_max=0.1, default=0.015, precision=3)
radio_nearest_count = IntProperty(
name="Nearest Count",
- description="Number of old ambient values blended together to " \
+ description="Number of old ambient values blended together to "
"create a new interpolated value",
min=1, max=20, default=5)
@@ -264,19 +270,19 @@
radio_recursion_limit = IntProperty(
name="Recursion Limit",
- description="how many recursion levels are used to calculate " \
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list