Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2017-07-28 00:36:09 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2017-07-28 00:36:09 +0300
commit263804791ab703c492142bc160313e235dbad0cb (patch)
treef030e4f7a2acb12498db296a5210589050fa20ec /render_povray/__init__.py
parent09340edc1348a1c72d5889779efe95f74442832b (diff)
*Converted some rgb keywords to srgb to better match Blender Internal shading
*added an operator to render from text editor 3 modes: 3dview, pov text only or both. this property replaces the custompov code (with "both" option) known problem is that some scenes get their rendered image passed to render results while others don't. Still useable for preview anyway.
Diffstat (limited to 'render_povray/__init__.py')
-rw-r--r--render_povray/__init__.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 911bf913..0c0aee46 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -73,6 +73,11 @@ def string_strip_hyphen(name):
###############################################################################
class RenderPovSettingsScene(PropertyGroup):
# File Options
+ text_block = StringProperty(
+ name="Text Scene Name",
+ description="Name of POV-Ray scene to use. "
+ "Set when clicking Run to render current text only",
+ maxlen=1024)
tempfiles_enable = BoolProperty(
name="Enable Tempfiles",
description="Enable the OS-Tempfiles. Otherwise set the path where"
@@ -2129,11 +2134,14 @@ class RenderPovSettingsCamera(PropertyGroup):
# Text POV properties.
###############################################################################
class RenderPovSettingsText(PropertyGroup):
- custom_code = BoolProperty(
+ custom_code = EnumProperty(
name="Custom Code",
- description="Add this text at the top of the exported POV-Ray file",
- default=False)
-
+ description="rendered source: Both adds text at the "
+ "top of the exported POV-Ray file",
+ items=(("3dview", "View", ""),
+ ("text", "Text", ""),
+ ("both", "Both", "")),
+ default="text")
###############################################################################
# Povray Preferences.