diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2017-08-16 02:05:23 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2017-08-16 02:05:23 +0300 |
commit | 795b722bde29f07d062c82c0942d75db9e3d3221 (patch) | |
tree | 9f75bb25704cdad8178ccbcca0789332e495739e /render_povray/ui.py | |
parent | 0bd045ebafa881fa7637cff77a7f20bcb635c857 (diff) |
*Added capsule Metaball as cylinder blob pov primitive
*Added the following pov keywords to object properties tab:
hollow, double_illuminate, sturm (for Metaballs and lathe), no_shadow, no_image, no_reflection, no_radiosity, inverse, hierarchy
*fixed hair location bug.
Diffstat (limited to 'render_povray/ui.py')
-rw-r--r-- | render_povray/ui.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py index 6c12b0b8..1ac4bd1f 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -1284,6 +1284,12 @@ class TEXTURE_PT_povray_tex_gamma(TextureButtonsPanel, bpy.types.Panel): class OBJECT_PT_povray_obj_importance(ObjectButtonsPanel, bpy.types.Panel): bl_label = "POV-Ray" COMPAT_ENGINES = {'POVRAY_RENDER'} + + @classmethod + def poll(cls, context): + + engine = context.scene.render.engine + return (engine in cls.COMPAT_ENGINES) def draw(self, context): layout = self.layout @@ -1297,7 +1303,30 @@ class OBJECT_PT_povray_obj_importance(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") + col.prop(obj.pov,"no_shadow") + col.prop(obj.pov,"no_image") + col.prop(obj.pov,"no_reflection") + col.prop(obj.pov,"no_radiosity") + col.prop(obj.pov,"inverse") + col.prop(obj.pov,"hierarchy") + # col.prop(obj.pov,"boundorclip",text="Bound / Clip") + # if obj.pov.boundorclip != "none": + # col.prop_search(obj.pov,"boundorclipob",context.blend_data,"objects",text="Object") + # text = "Clipped by" + # if obj.pov.boundorclip == "clipped_by": + # text = "Bounded by" + # col.prop(obj.pov,"addboundorclip",text=text) class OBJECT_PT_povray_obj_sphere(PovDataButtonsPanel, bpy.types.Panel): bl_label = "POV-Ray Sphere" |