diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2017-07-28 00:36:09 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2017-07-28 00:36:09 +0300 |
commit | 263804791ab703c492142bc160313e235dbad0cb (patch) | |
tree | f030e4f7a2acb12498db296a5210589050fa20ec /render_povray/ui.py | |
parent | 09340edc1348a1c72d5889779efe95f74442832b (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/ui.py')
-rw-r--r-- | render_povray/ui.py | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py index af8e644d..6c12b0b8 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -1854,9 +1854,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel): layout = self.layout text = context.space_data.text - if text: - layout.prop(text.pov, "custom_code", text="Add as POV code") - + pov_documents = locate_docpath() if not pov_documents : layout.label(text="Please configure ", icon="INFO") @@ -1872,6 +1870,25 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel): #print(pov_documents) layout.menu(TEXT_MT_insert.bl_idname) + if text: + box = layout.box() + box.label('Source to render:', icon='RENDER_STILL') + 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') + if text.pov.custom_code in {'text'}: + rtext = bpy.context.space_data.text + box.operator("text.run", icon='POSE_DATA') + #layout.prop(text.pov, "custom_code") + elif text.pov.custom_code in {'both'}: + 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="replacement fields") + + ############################################### # Text editor templates from header menu |