[Bf-extensions-cvs] [8e88b29] master: *Added POV-Ray Primitives, available in ADD menu *Added Import Menu using PovSphere primitive to import pov files output from Avogadro *Added editable properties and update for pov objects
Maurice Raybaud
noreply at git.blender.org
Thu Nov 12 15:57:49 CET 2015
Commit: 8e88b29ff93b1cab5c8fa1822297d60b23b81dae
Author: Maurice Raybaud
Date: Thu Nov 12 15:57:29 2015 +0100
Branches: master
https://developer.blender.org/rBA8e88b29ff93b1cab5c8fa1822297d60b23b81dae
*Added POV-Ray Primitives, available in ADD menu
*Added Import Menu using PovSphere primitive to import pov files output from Avogadro
*Added editable properties and update for pov objects
===================================================================
M render_povray/__init__.py
M render_povray/render.py
M render_povray/ui.py
===================================================================
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index bd68f5e..74ab979 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -20,9 +20,10 @@
bl_info = {
"name": "POV-Ray 3.7",
- "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn, Bastien Montagne",
+ "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, "
+ "Constantin Rahn, Bastien Montagne, Leonid Desyatkov",
"version": (0, 0, 9),
- "blender": (2, 57, 0),
+ "blender": (2, 75, 0),
"location": "Render > Engine > POV-Ray 3.7",
"description": "Basic POV-Ray 3.7 integration for blender",
"warning": "this script is RC",
@@ -39,6 +40,7 @@ if "bpy" in locals():
else:
import bpy
+ import addon_utils # To use some other addons
from bpy.types import (
AddonPreferences,
PropertyGroup,
@@ -52,6 +54,7 @@ else:
FloatVectorProperty,
EnumProperty,
PointerProperty,
+ CollectionProperty,
)
from . import (
ui,
@@ -59,6 +62,7 @@ else:
update_files,
)
+
def string_strip_hyphen(name):
return name.replace("-", "")
@@ -69,34 +73,40 @@ class RenderPovSettingsScene(PropertyGroup):
# File Options
tempfiles_enable = BoolProperty(
name="Enable Tempfiles",
- description="Enable the OS-Tempfiles. Otherwise set the path where to save the files",
+ description="Enable the OS-Tempfiles. Otherwise set the path where"
+ " to save the files",
default=True)
pov_editor = BoolProperty(
name="POV-Ray editor",
- description="Don't Close POV-Ray editor after rendering (Overriden by /EXIT command)",
+ description="Don't Close POV-Ray editor after rendering (Overriden"
+ " by /EXIT command)",
default=False)
deletefiles_enable = BoolProperty(
name="Delete files",
- description="Delete files after rendering. Doesn't work with the image",
+ description="Delete files after rendering. "
+ "Doesn't work with the image",
default=True)
scene_name = StringProperty(
name="Scene Name",
- description="Name of POV-Ray scene to create. Empty name will use the name of "
- "the blend file",
+ description="Name of POV-Ray scene to create. Empty name will use "
+ "the name of the blend file",
maxlen=1024)
scene_path = StringProperty(
name="Export scene path",
- # description="Path to directory where the exported scene (POV and INI) is created", # Bug in POV-Ray RC3
+ # Bug in POV-Ray RC3
+ # description="Path to directory where the exported scene "
+ # "(POV and INI) is created",
description="Path to directory where the files are created",
maxlen=1024, subtype="DIR_PATH")
renderimage_path = StringProperty(
name="Rendered image path",
- description="Full path to directory where the rendered image is saved",
+ description="Full path to directory where the rendered image is "
+ "saved",
maxlen=1024, subtype="DIR_PATH")
list_lf_enable = BoolProperty(
name="LF in lists",
- description="Enable line breaks in lists (vectors and indices). Disabled: "
- "lists are exported in one line",
+ description="Enable line breaks in lists (vectors and indices). "
+ "Disabled: lists are exported in one line",
default=True)
# Not a real pov option, just to know if we should write
@@ -104,10 +114,12 @@ class RenderPovSettingsScene(PropertyGroup):
name="Enable Radiosity",
description="Enable POV-Rays radiosity calculation",
default=False)
+
radio_display_advanced = BoolProperty(
name="Advanced Options",
description="Show advanced options",
default=False)
+
media_enable = BoolProperty(
name="Enable Media",
description="Enable POV-Rays atmospheric media",
@@ -121,7 +133,9 @@ class RenderPovSettingsScene(PropertyGroup):
media_color = FloatVectorProperty(
name="Media Color", description="The atmospheric media color",
precision=4, step=0.01, min=0, soft_max=1,
- default=(0.001, 0.001, 0.001), options={'ANIMATABLE'}, subtype='COLOR')
+ default=(0.001, 0.001, 0.001),
+ options={'ANIMATABLE'},
+ subtype='COLOR')
baking_enable = BoolProperty(
name="Enable Baking",
@@ -147,8 +161,9 @@ class RenderPovSettingsScene(PropertyGroup):
# Real pov options
command_line_switches = StringProperty(
name="Command Line Switches",
- description="Command line switches consist of a + (plus) or - (minus) sign, followed "
- "by one or more alphabetic characters and possibly a numeric value",
+ description="Command line switches consist of a + (plus) or - "
+ "(minus) sign, followed by one or more alphabetic "
+ "characters and possibly a numeric value",
maxlen=500)
antialias_enable = BoolProperty(
@@ -157,13 +172,15 @@ class RenderPovSettingsScene(PropertyGroup):
antialias_method = EnumProperty(
name="Method",
- description="AA-sampling method. Type 1 is an adaptive, non-recursive, super-sampling "
- "method. Type 2 is an adaptive and recursive super-sampling method. "
- "Type 3 is a stochastic halton based super-sampling method",
+ description="AA-sampling method. Type 1 is an adaptive, "
+ "non-recursive, super-sampling method. Type 2 is an "
+ "adaptive and recursive super-sampling method. Type 3 "
+ "is a stochastic halton based super-sampling method",
items=(("0", "non-recursive AA", "Type 1 Sampling in POV-Ray"),
("1", "recursive AA", "Type 2 Sampling in POV-Ray"),
("2", "stochastic AA", "Type 3 Sampling in UberPOV")),
default="1")
+
antialias_confidence = FloatProperty(
name="Antialias Confidence",
description="how surely the computed color "
@@ -180,8 +197,9 @@ class RenderPovSettingsScene(PropertyGroup):
jitter_enable = BoolProperty(
name="Jitter",
- description="Enable Jittering. Adds noise into the sampling process (it should be "
- "avoided to use jitter in animation)",
+ description="Enable Jittering. Adds noise into the sampling "
+ "process (it should be avoided to use jitter in "
+ "animation)",
default=False)
jitter_amount = FloatProperty(
@@ -190,34 +208,56 @@ class RenderPovSettingsScene(PropertyGroup):
antialias_gamma = FloatProperty(
name="Antialias Gamma",
- description="POV-Ray compares gamma-adjusted values for super sampling. Antialias "
- "Gamma sets the Gamma before comparison",
+ 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)
max_trace_level = IntProperty(
name="Max Trace Level",
- description="Number of reflections/refractions allowed on ray path",
+ description="Number of reflections/refractions allowed on ray "
+ "path",
min=1, max=256, default=5)
+ ########################### PHOTONS #######################################
+ photon_enable = BoolProperty(
+ name="Photons",
+ description="Enable global photons",
+ default=False)
+
+ photon_enable_count = BoolProperty(
+ name="Spacing / Count",
+ description="Enable count photons",
+ default=False)
+
+ photon_count = IntProperty(
+ name="Count",
+ description="Photons count",
+ min=1, max=100000000, default=20000)
+
photon_spacing = FloatProperty(
name="Spacing",
- 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)
+ description="Average distance between photons on surfaces. half "
+ "this get four times as many surface photons",
+ min=0.001, max=1.000, default=0.005,
+ soft_min=0.001, soft_max=1.000, precision=3)
photon_max_trace_level = IntProperty(
name="Max Trace Level",
- description="Number of reflections/refractions allowed on ray path",
+ description="Number of reflections/refractions allowed on ray "
+ "path",
min=1, max=256, default=5)
photon_adc_bailout = FloatProperty(
name="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)
+ min=0.0, max=1000.0, default=0.1,
+ soft_min=0.0, soft_max=1.0, precision=3)
photon_gather_min = IntProperty(
- name="Gather Min", description="Minimum number of photons gathered for each point",
+ name="Gather Min", description="Minimum number of photons gathered"
+
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list