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:
authorCampbell Barton <ideasman42@gmail.com>2018-09-07 23:13:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-07 23:13:37 +0300
commitf1c55295b0d95307559c1f8b09d6b8bd6c8bbbf0 (patch)
tree79ca0b7e815bc7e181171b4a5f4cb515ac107b08 /render_povray
parent1a935298b9a3dddba50955591ace31bb91a56e84 (diff)
Cleanup: trailing space
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/__init__.py32
-rw-r--r--render_povray/df3.py1
-rw-r--r--render_povray/nodes.py1
-rw-r--r--render_povray/primitives.py1
-rw-r--r--render_povray/render.py108
-rw-r--r--render_povray/ui.py56
6 files changed, 98 insertions, 101 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 90d80f13..099d2fcc 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -43,7 +43,7 @@ else:
#import addon_utils # To use some other addons
import nodeitems_utils #for Nodes
from nodeitems_utils import NodeCategory, NodeItem #for Nodes
- from bl_operators.presets import AddPresetBase
+ from bl_operators.presets import AddPresetBase
from bpy.types import (
AddonPreferences,
PropertyGroup,
@@ -137,13 +137,13 @@ class RenderPovSettingsScene(PropertyGroup):
name="Enable Media",
description="Enable POV-Rays atmospheric media",
default=False)
-
+
media_samples = IntProperty(
name="Samples",
description="Number of samples taken from camera to first object "
"encountered along ray path for media calculation",
min=1, max=100, default=35)
-
+
media_scattering_type = EnumProperty(
name="Scattering Type",
description="Scattering model",
@@ -181,14 +181,14 @@ class RenderPovSettingsScene(PropertyGroup):
"values of e (or smaller values "
"in the negative case) increase "
"the directional property of the"
- " scattering.")),
+ " scattering.")),
default='1')
-
+
media_diffusion_scale = FloatProperty(
name="Scale", description="Scale factor of Media Diffusion Color",
precision=12, step=0.00000001, min=0.000000001, max=1.0,
default=(1.0))
-
+
media_diffusion_color = FloatVectorProperty(
name="Media Diffusion Color", description="The atmospheric media color",
precision=4, step=0.01, min=0, soft_max=1,
@@ -201,13 +201,13 @@ class RenderPovSettingsScene(PropertyGroup):
"use 1/depth of media volume in meters",
precision=12, step=0.000001, min=0.000000001, max=1.0,
default=(0.00002))
-
+
media_absorption_color = FloatVectorProperty(
name="Media Absorption Color", description="The atmospheric media absorption color",
precision=4, step=0.01, min=0, soft_max=1,
default=(0.0, 0.0, 0.0),
options={'ANIMATABLE'},
- subtype='COLOR')
+ subtype='COLOR')
media_eccentricity = FloatProperty(
name="Media Eccenticity Factor", description="Positive values lead"
@@ -218,7 +218,7 @@ class RenderPovSettingsScene(PropertyGroup):
precision=2, step=0.01, min=-1.0, max=1.0,
default=(0.0),
options={'ANIMATABLE'})
-
+
baking_enable = BoolProperty(
name="Enable Baking",
description="Enable POV-Rays texture baking",
@@ -1699,7 +1699,7 @@ class RenderPovSettingsObject(PropertyGroup):
default=(0.001, 0.001, 0.5),
options={'ANIMATABLE'},
subtype='XYZ')
-
+
# Importance sampling
importance_value = FloatProperty(
name="Radiosity Importance",
@@ -1746,7 +1746,7 @@ class RenderPovSettingsObject(PropertyGroup):
default=(0.0, 0.0, 2.0))
unlock_parameters = BoolProperty(name="Lock",default = False)
-
+
# not in UI yet but used for sor (lathe) / prism... pov primitives
curveshape = EnumProperty(
name="Povray Shape Type",
@@ -2138,7 +2138,7 @@ class RenderPovSettingsObject(PropertyGroup):
description = "",
default = 1.0)
-
+
###############################################################################
# Modifiers POV properties.
###############################################################################
@@ -2150,7 +2150,7 @@ class RenderPovSettingsObject(PropertyGroup):
("CARVE", "Use the Carve Boolean Solver", ""),
("POV", "Use Pov-Ray Constructive Solid Geometry", "")),
default="BMESH")
-
+
#################Avogadro
# filename_ext = ".png"
@@ -2279,7 +2279,7 @@ def register():
bpy.types.TEXT_MT_templates.append(ui.menu_func_templates)
bpy.types.RENDER_PT_povray_radiosity.prepend(ui.rad_panel_func)
bpy.types.LAMP_PT_POV_lamp.prepend(ui.lamp_panel_func)
- bpy.types.WORLD_PT_world.prepend(ui.world_panel_func)
+ bpy.types.WORLD_PT_world.prepend(ui.world_panel_func)
# was used for parametric objects but made the other addon unreachable on
# unregister for other tools to use created a user action call instead
#addon_utils.enable("add_mesh_extra_objects", default_set=False, persistent=True)
@@ -2301,7 +2301,7 @@ def register():
def unregister():
del bpy.types.Scene.pov
del bpy.types.Material.pov
- #del bpy.types.Modifier.pov
+ #del bpy.types.Modifier.pov
del bpy.types.Texture.pov
del bpy.types.Object.pov
del bpy.types.Camera.pov
@@ -2312,7 +2312,7 @@ def unregister():
#bpy.types.TEXTURE_PT_context_texture.remove(TEXTURE_PT_povray_type)
#addon_utils.disable("add_mesh_extra_objects", default_set=False)
bpy.types.WORLD_PT_world.remove(ui.world_panel_func)
- bpy.types.LAMP_PT_POV_lamp.remove(ui.lamp_panel_func)
+ bpy.types.LAMP_PT_POV_lamp.remove(ui.lamp_panel_func)
bpy.types.RENDER_PT_povray_radiosity.remove(ui.rad_panel_func)
bpy.types.TEXT_MT_templates.remove(ui.menu_func_templates)
bpy.types.INFO_MT_file_import.remove(ui.menu_func_import)
diff --git a/render_povray/df3.py b/render_povray/df3.py
index 30054504..bc721ae8 100644
--- a/render_povray/df3.py
+++ b/render_povray/df3.py
@@ -386,4 +386,3 @@ class df3:
# + Add element access, scalar, and vector functions
# 07/13/05: 0.10 released
###############################################################################
-
diff --git a/render_povray/nodes.py b/render_povray/nodes.py
index ef185473..a4acd138 100644
--- a/render_povray/nodes.py
+++ b/render_povray/nodes.py
@@ -1305,4 +1305,3 @@ class UpdatePreviewKey(bpy.types.Operator):
map = conf.keymaps[mapstr]
map.keymap_items.new("node.updatepreview",type='RIGHTMOUSE',value="PRESS")
return {'FINISHED'}
-
diff --git a/render_povray/primitives.py b/render_povray/primitives.py
index 29734ae7..d7dfe663 100644
--- a/render_povray/primitives.py
+++ b/render_povray/primitives.py
@@ -1915,4 +1915,3 @@ class ImportPOV(bpy.types.Operator, ImportHelper):
# track.up_axis = "UP_Y"
# obj.location = (0,0,0)
return {'FINISHED'}
-
diff --git a/render_povray/render.py b/render_povray/render.py
index 9838f25d..3640bc2b 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -664,11 +664,11 @@ def write_pov(filename, scene=None, info_callback=None):
tabWrite("fade_distance %.6f\n" % (sqrt(lamp.distance/2.0)))
tabWrite("fade_power %d\n" % 2) # Use blenders lamp quad equivalent
elif lamp.falloff_type == 'INVERSE_LINEAR':
- tabWrite("fade_distance %.6f\n" % (lamp.distance / 2.0))
+ tabWrite("fade_distance %.6f\n" % (lamp.distance / 2.0))
tabWrite("fade_power %d\n" % 1) # Use blenders lamp linear
elif lamp.falloff_type == 'CONSTANT':
tabWrite("fade_distance %.6f\n" % (lamp.distance / 2.0))
- tabWrite("fade_power %d\n" % 3)
+ tabWrite("fade_power %d\n" % 3)
# Use blenders lamp constant equivalent no attenuation.
# Using Custom curve for fade power 3 for now.
elif lamp.falloff_type == 'CUSTOM_CURVE':
@@ -1452,10 +1452,10 @@ def write_pov(filename, scene=None, info_callback=None):
file.write('#end\n\n')
# Empty curves
if len(ob.data.splines)==0:
- tabWrite("\n//dummy sphere to represent empty curve location\n")
+ tabWrite("\n//dummy sphere to represent empty curve location\n")
tabWrite("#declare %s =\n"%dataname)
- tabWrite("sphere {<%.6g, %.6g, %.6g>,0 pigment{rgbt 1} no_image no_reflection no_radiosity photons{pass_through collect off} hollow}\n\n" % (ob.location.x, ob.location.y, ob.location.z)) # ob.name > povdataname)
- # And non empty curves
+ tabWrite("sphere {<%.6g, %.6g, %.6g>,0 pigment{rgbt 1} no_image no_reflection no_radiosity photons{pass_through collect off} hollow}\n\n" % (ob.location.x, ob.location.y, ob.location.z)) # ob.name > povdataname)
+ # And non empty curves
else:
if bezier_sweep == False:
tabWrite("#declare %s =\n"%dataname)
@@ -1634,15 +1634,15 @@ def write_pov(filename, scene=None, info_callback=None):
meta_elems[prefix].extend(elems)
else:
meta_elems[prefix] = elems
-
+
# empty metaball
if len(elems)==0:
tabWrite("\n//dummy sphere to represent empty meta location\n")
- tabWrite("sphere {<%.6g, %.6g, %.6g>,0 pigment{rgbt 1} no_image no_reflection no_radiosity photons{pass_through collect off} hollow}\n\n" % (ob.location.x, ob.location.y, ob.location.z)) # ob.name > povdataname)
- # other metaballs
- else:
+ tabWrite("sphere {<%.6g, %.6g, %.6g>,0 pigment{rgbt 1} no_image no_reflection no_radiosity photons{pass_through collect off} hollow}\n\n" % (ob.location.x, ob.location.y, ob.location.z)) # ob.name > povdataname)
+ # other metaballs
+ else:
for mg, ob in meta_group.items():
- if len(meta_elems[mg])!=0:
+ if len(meta_elems[mg])!=0:
tabWrite("blob{threshold %.4g // %s \n" % (ob.data.threshold, mg))
for elems in meta_elems[mg]:
elem = elems[0]
@@ -1654,20 +1654,20 @@ def write_pov(filename, scene=None, info_callback=None):
tabWrite("sphere { <%.6g, %.6g, %.6g>, %.4g, %.4g " %
(loc.x, loc.y, loc.z, elem.radius, stiffness))
writeMatrix(global_matrix * elems[1].matrix_world)
- tabWrite("}\n")
+ tabWrite("}\n")
elif elem.type == 'ELLIPSOID':
tabWrite("sphere{ <%.6g, %.6g, %.6g>,%.4g,%.4g " %
(loc.x / elem.size_x, loc.y / elem.size_y, loc.z / elem.size_z,
elem.radius, stiffness))
tabWrite("scale <%.6g, %.6g, %.6g>" % (elem.size_x, elem.size_y, elem.size_z))
writeMatrix(global_matrix * elems[1].matrix_world)
- tabWrite("}\n")
+ tabWrite("}\n")
elif elem.type == 'CAPSULE':
tabWrite("cylinder{ <%.6g, %.6g, %.6g>,<%.6g, %.6g, %.6g>,%.4g,%.4g " %
((loc.x - elem.size_x), (loc.y), (loc.z),
(loc.x + elem.size_x), (loc.y), (loc.z),
elem.radius, stiffness))
- #tabWrite("scale <%.6g, %.6g, %.6g>" % (elem.size_x, elem.size_y, elem.size_z))
+ #tabWrite("scale <%.6g, %.6g, %.6g>" % (elem.size_x, elem.size_y, elem.size_z))
writeMatrix(global_matrix * elems[1].matrix_world)
tabWrite("}\n")
@@ -1677,18 +1677,18 @@ def write_pov(filename, scene=None, info_callback=None):
tabWrite("}\n")
tabWrite("cylinder { -y*8, +y*8,%.4g,%.4g translate<%.6g,%.6g,%.6g> scale <1,1/4,1> scale <%.6g, %.6g, %.6g>\n" % (elem.radius*2.0, stiffness/4.0, loc.x, loc.y, loc.z, elem.size_x, elem.size_y, elem.size_z))
writeMatrix(global_matrix * elems[1].matrix_world)
- tabWrite("}\n")
+ tabWrite("}\n")
tabWrite("cylinder { -z*8, +z*8,%.4g,%.4g translate<%.6g,%.6g,%.6g> scale <1,1,1/4> scale <%.6g, %.6g, %.6g>\n" % (elem.radius*2.0, stiffness/4.0, loc.x, loc.y, loc.z, elem.size_x, elem.size_y, elem.size_z))
writeMatrix(global_matrix * elems[1].matrix_world)
tabWrite("}\n")
-
+
elif elem.type == 'PLANE':
tabWrite("cylinder { -x*8, +x*8,%.4g,%.4g translate<%.6g,%.6g,%.6g> scale <1/4,1,1> scale <%.6g, %.6g, %.6g>\n" % (elem.radius*2.0, stiffness/4.0, loc.x, loc.y, loc.z, elem.size_x, elem.size_y, elem.size_z))
writeMatrix(global_matrix * elems[1].matrix_world)
tabWrite("}\n")
tabWrite("cylinder { -y*8, +y*8,%.4g,%.4g translate<%.6g,%.6g,%.6g> scale <1,1/4,1> scale <%.6g, %.6g, %.6g>\n" % (elem.radius*2.0, stiffness/4.0, loc.x, loc.y, loc.z, elem.size_x, elem.size_y, elem.size_z))
writeMatrix(global_matrix * elems[1].matrix_world)
- tabWrite("}\n")
+ tabWrite("}\n")
try:
material = elems[1].data.materials[0] # lame! - blender cant do enything else.
@@ -1709,12 +1709,12 @@ def write_pov(filename, scene=None, info_callback=None):
tabWrite("finish{%s} " % safety(material_finish, Level=2))
else:
tabWrite("pigment{srgb 1} finish{%s} " % (safety(DEF_MAT_NAME, Level=2)))
-
+
writeObjectMaterial(material, ob)
#writeObjectMaterial(material, elems[1])
tabWrite("radiosity{importance %3g}\n" % ob.pov.importance_value)
- tabWrite("}\n\n") # End of Metaball block
+ tabWrite("}\n\n") # End of Metaball block
'''
@@ -2697,7 +2697,7 @@ def write_pov(filename, scene=None, info_callback=None):
if not me or not me_faces:
tabWrite("\n//dummy sphere to represent empty mesh location\n")
- tabWrite("#declare %s =sphere {<0, 0, 0>,0 pigment{rgbt 1} no_image no_reflection no_radiosity photons{pass_through collect off} hollow}\n" % povdataname)
+ tabWrite("#declare %s =sphere {<0, 0, 0>,0 pigment{rgbt 1} no_image no_reflection no_radiosity photons{pass_through collect off} hollow}\n" % povdataname)
continue
uv_textures = me.tessface_uv_textures
@@ -2989,7 +2989,7 @@ def write_pov(filename, scene=None, info_callback=None):
file.write("\n")
tabWrite("}\n")
-
+
#XXX BOOLEAN
onceCSG = 0
for mod in ob.modifiers:
@@ -3002,7 +3002,7 @@ def write_pov(filename, scene=None, info_callback=None):
ob.pov.inside_vector[1],
ob.pov.inside_vector[2]))
onceCSG = 1
-
+
if me.materials:
try:
material = me.materials[0] # dodgy
@@ -3010,9 +3010,9 @@ def write_pov(filename, scene=None, info_callback=None):
except IndexError:
print(me)
- # POV object modifiers such as
+ # POV object modifiers such as
# hollow / sturm / double_illuminate etc.
- write_object_modifiers(scene,ob,file)
+ write_object_modifiers(scene,ob,file)
#Importance for radiosity sampling added here:
tabWrite("radiosity { \n")
@@ -3245,7 +3245,7 @@ def write_pov(filename, scene=None, info_callback=None):
file.write("\n")
tabWrite("}\n")
-
+
#XXX BOOLEAN
onceCSG = 0
for mod in ob.modifiers:
@@ -3266,10 +3266,10 @@ def write_pov(filename, scene=None, info_callback=None):
except IndexError:
print(me)
- # POV object modifiers such as
+ # POV object modifiers such as
# hollow / sturm / double_illuminate etc.
- write_object_modifiers(scene,ob,file)
-
+ write_object_modifiers(scene,ob,file)
+
#Importance for radiosity sampling added here:
tabWrite("radiosity { \n")
tabWrite("importance %3g \n" % importance)
@@ -3484,7 +3484,7 @@ def write_pov(filename, scene=None, info_callback=None):
elif mist.falloff=='QUADRATIC': # n**2 or squrt(n)?
tabWrite("distance %.6f\n" % ((mist.start+mist.depth)**2*0.368))
elif mist.falloff=='INVERSE_QUADRATIC': # n**2 or squrt(n)?
- tabWrite("distance %.6f\n" % ((mist.start+mist.depth)**2*0.368))
+ tabWrite("distance %.6f\n" % ((mist.start+mist.depth)**2*0.368))
tabWrite("color rgbt<%.3g, %.3g, %.3g, %.3g>\n" % \
(*world.horizon_color, 1.0 - mist.intensity))
#tabWrite("fog_offset %.6f\n" % mist.start) #create a pov property to prepend
@@ -3497,15 +3497,15 @@ def write_pov(filename, scene=None, info_callback=None):
tabWrite("media {\n")
tabWrite("scattering { %d, rgb %.12f*<%.4g, %.4g, %.4g>\n" % \
(int(scene.pov.media_scattering_type),
- (scene.pov.media_diffusion_scale),
+ (scene.pov.media_diffusion_scale),
*(scene.pov.media_diffusion_color[:])))
if scene.pov.media_scattering_type == '5':
- tabWrite("eccentricity %.3g\n" % scene.pov.media_eccentricity)
- tabWrite("}\n")
+ tabWrite("eccentricity %.3g\n" % scene.pov.media_eccentricity)
+ tabWrite("}\n")
tabWrite("absorption %.12f*<%.4g, %.4g, %.4g>\n" % \
(scene.pov.media_absorption_scale,
- *(scene.pov.media_absorption_color[:])))
- tabWrite("\n")
+ *(scene.pov.media_absorption_color[:])))
+ tabWrite("\n")
tabWrite("samples %.d\n" % scene.pov.media_samples)
tabWrite("}\n")
@@ -3591,7 +3591,7 @@ def write_pov(filename, scene=None, info_callback=None):
if scene.pov.photon_map_file_save_load in {'load'}:
fullFileName = bpy.path.abspath(scene.pov.photon_map_file)
if os.path.exists(fullFileName):
- tabWrite('load_file "%s"\n'%fullFileName)
+ tabWrite('load_file "%s"\n'%fullFileName)
tabWrite("}\n")
oncePhotons = 0
@@ -3975,7 +3975,7 @@ class PovrayRender(bpy.types.RenderEngine):
x = int(r.resolution_x * r.resolution_percentage * 0.01)
y = int(r.resolution_y * r.resolution_percentage * 0.01)
print("***INITIALIZING***")
-
+
# This makes some tests on the render, returning True if all goes good, and False if
# it was finished one way or the other.
# It also pauses the script (time.sleep())
@@ -4000,7 +4000,7 @@ class PovrayRender(bpy.types.RenderEngine):
return False
return True
-
+
if scene.pov.text_block !="":
if scene.pov.tempfiles_enable:
self._temp_file_in = tempfile.NamedTemporaryFile(suffix=".pov", delete=False).name
@@ -4022,28 +4022,28 @@ class PovrayRender(bpy.types.RenderEngine):
os.remove(self._temp_file_in) # so as not to load the old file
except OSError:
pass
- '''
+ '''
print(scene.pov.text_block)
text = bpy.data.texts[scene.pov.text_block]
file=open("%s"%self._temp_file_in,"w")
# Why are the newlines needed?
file.write("\n")
file.write(text.as_string())
- file.write("\n")
+ file.write("\n")
file.close()
# has to be called to update the frame on exporting animations
scene.frame_set(scene.frame_current)
-
+
pov_binary = PovrayRender._locate_binary()
if not pov_binary:
print("POV-Ray 3.7: could not execute povray, possibly POV-Ray isn't installed")
return False
-
-
+
+
# start ini UI options export
- self.update_stats("", "POV-Ray 3.7: Exporting ini options from Blender")
+ self.update_stats("", "POV-Ray 3.7: Exporting ini options from Blender")
write_pov_ini(scene, self._temp_file_ini, self._temp_file_log, self._temp_file_in, self._temp_file_out)
@@ -4085,21 +4085,21 @@ class PovrayRender(bpy.types.RenderEngine):
print("Engine ready!...")
print("Command line arguments passed: " + str(extra_args))
#return True
- self.update_stats("", "POV-Ray 3.7: Parsing File")
+ self.update_stats("", "POV-Ray 3.7: Parsing File")
-
- # Indented in main function now so repeated here but still not working
+
+ # Indented in main function now so repeated here but still not working
# to bring back render result to its buffer
-
+
if os.path.exists(self._temp_file_out):
xmin = int(r.border_min_x * x)
ymin = int(r.border_min_y * y)
xmax = int(r.border_max_x * x)
ymax = int(r.border_max_y * y)
- result = self.begin_result(0, 0, x, y)
+ result = self.begin_result(0, 0, x, y)
lay = result.layers[0]
-
+
time.sleep(self.DELAY)
try:
lay.load_from_file(self._temp_file_out)
@@ -4108,12 +4108,12 @@ class PovrayRender(bpy.types.RenderEngine):
self.end_result(result)
#print(self._temp_file_log) #bring the pov log to blender console with proper path?
with open(self._temp_file_log) as f: # The with keyword automatically closes the file when you are done
- print(f.read())
-
+ print(f.read())
+
self.update_stats("", "")
if scene.pov.tempfiles_enable or scene.pov.deletefiles_enable:
- self._cleanup()
+ self._cleanup()
else:
##WIP output format
@@ -4458,14 +4458,14 @@ class RunPovTextRender(Operator):
bl_label = "Run"
bl_context = "text"
bl_description = "Run a render with this text only"
-
+
def execute(self, context):
scene = context.scene
scene.pov.text_block = context.space_data.text.name
-
+
bpy.ops.render.render()
#empty text name property engain
scene.pov.text_block = ""
- return {'FINISHED'} \ No newline at end of file
+ return {'FINISHED'}
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 58c69398..34123794 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -57,27 +57,27 @@ class AddPresetWorld(AddPresetBase, bpy.types.Operator):
# variable used for all preset values
preset_defines = [
- "scene = bpy.context.scene"
+ "scene = bpy.context.scene"
]
# properties to store in the preset
preset_values = [
"scene.world.use_sky_blend",
"scene.world.horizon_color",
- "scene.world.zenith_color",
+ "scene.world.zenith_color",
"scene.world.ambient_color",
"scene.world.mist_settings.use_mist",
"scene.world.mist_settings.intensity",
- "scene.world.mist_settings.depth",
+ "scene.world.mist_settings.depth",
"scene.world.mist_settings.start",
"scene.pov.media_enable",
- "scene.pov.media_scattering_type",
+ "scene.pov.media_scattering_type",
"scene.pov.media_samples",
"scene.pov.media_diffusion_scale",
"scene.pov.media_diffusion_color",
"scene.pov.media_absorption_scale",
"scene.pov.media_absorption_color",
- "scene.pov.media_eccentricity",
+ "scene.pov.media_eccentricity",
]
# where to store the preset
@@ -96,7 +96,7 @@ def world_panel_func(self, context):
classes = (
POV_WORLD_MT_presets,
AddPresetWorld,
- )
+ )
# Example of wrapping every class 'as is'
from bl_ui import properties_texture
@@ -530,7 +530,7 @@ class AddPresetLamp(AddPresetBase, bpy.types.Operator):
# properties to store in the preset
preset_values = [
"lampdata.type",
- "lampdata.color",
+ "lampdata.color",
]
# where to store the preset
@@ -553,8 +553,8 @@ def lamp_panel_func(self, context):
classes = (
POV_LAMP_MT_presets,
AddPresetLamp,
- )
-
+ )
+
class LAMP_PT_POV_sunsky(PovLampButtonsPanel, bpy.types.Panel):
bl_label = properties_data_lamp.DATA_PT_sunsky.bl_label
@@ -711,10 +711,10 @@ class RENDER_PT_povray_render_settings(RenderButtonsPanel, bpy.types.Panel):
scene = context.scene
#layout.active = (scene.pov.max_trace_level != 0)
-
+
if sys.platform[:3] != "win":
layout.prop(scene.pov, "sdl_window_enable", text="POV-Ray SDL Window")
-
+
col = layout.column()
col.label(text="Global Settings:")
@@ -892,9 +892,9 @@ class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
col.prop(scene.pov, "radio_subsurface")
-
-
-
+
+
+
class POV_RADIOSITY_MT_presets(bpy.types.Menu):
bl_label = "Radiosity Presets"
preset_subdir = "pov/radiosity"
@@ -915,7 +915,7 @@ class AddPresetRadiosity(AddPresetBase, bpy.types.Operator):
# properties to store in the preset
preset_values = [
- "scene.pov.radio_display_advanced",
+ "scene.pov.radio_display_advanced",
"scene.pov.radio_adc_bailout",
"scene.pov.radio_always_sample",
"scene.pov.radio_brightness",
@@ -931,7 +931,7 @@ class AddPresetRadiosity(AddPresetBase, bpy.types.Operator):
"scene.pov.radio_normal",
"scene.pov.radio_recursion_limit",
"scene.pov.radio_pretrace_start",
- "scene.pov.radio_pretrace_end",
+ "scene.pov.radio_pretrace_end",
]
# where to store the preset
@@ -955,8 +955,8 @@ classes = (
POV_RADIOSITY_MT_presets,
AddPresetRadiosity,
)
-
-
+
+
class RENDER_PT_povray_media(WorldButtonsPanel, bpy.types.Panel):
bl_label = "Atmosphere Media"
COMPAT_ENGINES = {'POVRAY_RENDER'}
@@ -977,14 +977,14 @@ class RENDER_PT_povray_media(WorldButtonsPanel, bpy.types.Panel):
col.prop(scene.pov, "media_scattering_type", text="")
col = layout.column()
col.prop(scene.pov, "media_samples", text="Samples")
- split = layout.split()
+ split = layout.split()
col = split.column(align=True)
col.label(text="Scattering:")
col.prop(scene.pov, "media_diffusion_scale")
col.prop(scene.pov, "media_diffusion_color", text="")
col = split.column(align=True)
col.label(text="Absorption:")
- col.prop(scene.pov, "media_absorption_scale")
+ col.prop(scene.pov, "media_absorption_scale")
col.prop(scene.pov, "media_absorption_color", text="")
if scene.pov.media_scattering_type == '5':
col = layout.column()
@@ -1029,12 +1029,12 @@ class MODIFIERS_PT_povray_modifiers(ModifierButtonsPanel, bpy.types.Panel):
col.prop(ob.pov, "boolean_mod")
onceCSG = 1
- if ob.pov.boolean_mod == "POV":
+ if ob.pov.boolean_mod == "POV":
split = layout.split()
col = layout.column()
# Inside Vector for CSG
col.prop(ob.pov, "inside_vector")
-
+
class MATERIAL_PT_povray_activate_node(MaterialButtonsPanel, bpy.types.Panel):
bl_label = "Activate Node Settings"
@@ -1517,7 +1517,7 @@ class TEXTURE_PT_povray_tex_gamma(TextureButtonsPanel, bpy.types.Panel):
class OBJECT_PT_povray_obj_parameters(ObjectButtonsPanel, bpy.types.Panel):
bl_label = "POV-Ray"
COMPAT_ENGINES = {'POVRAY_RENDER'}
-
+
@classmethod
def poll(cls, context):
@@ -1539,14 +1539,14 @@ class OBJECT_PT_povray_obj_parameters(ObjectButtonsPanel, bpy.types.Panel):
col.prop(obj.pov, "collect_photons", text="Receive Photon Caustics")
if obj.pov.collect_photons:
col.prop(obj.pov, "spacing_multiplier", text="Photons Spacing Multiplier")
-
+
split = layout.split()
col = split.column()
col.prop(obj.pov,"hollow")
col.prop(obj.pov,"double_illuminate")
-
+
if obj.type == 'META' or obj.pov.curveshape == 'lathe':
#if obj.pov.curveshape == 'sor'
col.prop(obj.pov,"sturm")
@@ -2117,7 +2117,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel):
layout = self.layout
text = context.space_data.text
-
+
pov_documents = locate_docpath()
if not pov_documents :
layout.label(text="Please configure ", icon="INFO")
@@ -2139,7 +2139,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel):
row = box.row()
row.prop(text.pov, "custom_code",expand = True)
if text.pov.custom_code in {'3dview'}:
- box.operator("render.render", icon='OUTLINER_DATA_POSE')
+ box.operator("render.render", icon='OUTLINER_DATA_POSE')
if text.pov.custom_code in {'text'}:
rtext = bpy.context.space_data.text
box.operator("text.run", icon='POSE_DATA')
@@ -2148,7 +2148,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel):
box.operator("render.render", icon='POSE_HLT')
layout.label(text="Please specify declared", icon="INFO")
layout.label(text="items in properties ")
- #layout.label(text="")
+ #layout.label(text="")
layout.label(text="replacement fields")