forked from bartvdbraak/blender
Inline tooltips and descriptions of export/import
Random fixes and tweaks in names and tooltips
This commit is contained in:
parent
38298d2c22
commit
957baf7d6a
@ -646,73 +646,73 @@ BoolProperty = bpy.types.Scene.BoolProperty
|
|||||||
# Not a real pov option, just to know if we should write
|
# Not a real pov option, just to know if we should write
|
||||||
BoolProperty(attr="pov_radio_enable",
|
BoolProperty(attr="pov_radio_enable",
|
||||||
name="Enable Radiosity",
|
name="Enable Radiosity",
|
||||||
description="Enable povrays radiosity calculation.",
|
description="Enable povrays radiosity calculation",
|
||||||
default=False)
|
default=False)
|
||||||
BoolProperty(attr="pov_radio_display_advanced",
|
BoolProperty(attr="pov_radio_display_advanced",
|
||||||
name="Advanced Options",
|
name="Advanced Options",
|
||||||
description="Show advanced options.",
|
description="Show advanced options",
|
||||||
default=False)
|
default=False)
|
||||||
|
|
||||||
# Real pov options
|
# Real pov options
|
||||||
FloatProperty(attr="pov_radio_adc_bailout",
|
FloatProperty(attr="pov_radio_adc_bailout",
|
||||||
name="ADC Bailout",
|
name="ADC Bailout",
|
||||||
description="The adc_bailout for radiosity rays. Use adc_bailout = 0.01 / brightest_ambient_object for good results.",
|
description="The adc_bailout for radiosity rays. 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.01)
|
min=0.0, max=1000.0, soft_min=0.0, soft_max=1.0, default=0.01)
|
||||||
|
|
||||||
BoolProperty(attr="pov_radio_always_sample",
|
BoolProperty(attr="pov_radio_always_sample",
|
||||||
name="Always Sample",
|
name="Always Sample",
|
||||||
description="Only use the data from the pretrace step and not gather any new samples during the final radiosity pass..",
|
description="Only use the data from the pretrace step and not gather any new samples during the final radiosity pass",
|
||||||
default=True)
|
default=True)
|
||||||
|
|
||||||
FloatProperty(attr="pov_radio_brightness",
|
FloatProperty(attr="pov_radio_brightness",
|
||||||
name="Brightness",
|
name="Brightness",
|
||||||
description="Ammount objects are brightened before being returned upwards to the rest of the system.",
|
description="Amount objects are brightened before being returned upwards to the rest of the system",
|
||||||
min=0.0, max=1000.0, soft_min=0.0, soft_max=10.0, default=1.0)
|
min=0.0, max=1000.0, soft_min=0.0, soft_max=10.0, default=1.0)
|
||||||
|
|
||||||
IntProperty(attr="pov_radio_count",
|
IntProperty(attr="pov_radio_count",
|
||||||
name="Ray Count",
|
name="Ray Count",
|
||||||
description="number of rays that are sent out whenever a new radiosity value has to be calculated.",
|
description="Number of rays that are sent out whenever a new radiosity value has to be calculated",
|
||||||
min=1, max=1600, default=35)
|
min=1, max=1600, default=35)
|
||||||
|
|
||||||
FloatProperty(attr="pov_radio_error_bound",
|
FloatProperty(attr="pov_radio_error_bound",
|
||||||
name="Error Bound",
|
name="Error Bound",
|
||||||
description="one of the two main speed/quality tuning values, lower values are more accurate.",
|
description="One of the two main speed/quality tuning values, lower values are more accurate",
|
||||||
min=0.0, max=1000.0, soft_min=0.1, soft_max=10.0, default=1.8)
|
min=0.0, max=1000.0, soft_min=0.1, soft_max=10.0, default=1.8)
|
||||||
|
|
||||||
FloatProperty(attr="pov_radio_gray_threshold",
|
FloatProperty(attr="pov_radio_gray_threshold",
|
||||||
name="Gray Threshold",
|
name="Gray Threshold",
|
||||||
description="one of the two main speed/quality tuning values, lower values are more accurate.",
|
description="One of the two main speed/quality tuning values, lower values are more accurate",
|
||||||
min=0.0, max=1.0, soft_min=0, soft_max=1, default=0.0)
|
min=0.0, max=1.0, soft_min=0, soft_max=1, default=0.0)
|
||||||
|
|
||||||
FloatProperty(attr="pov_radio_low_error_factor",
|
FloatProperty(attr="pov_radio_low_error_factor",
|
||||||
name="Low Error Factor",
|
name="Low Error Factor",
|
||||||
description="If you calculate just enough samples, but no more, you will get an image which has slightly blotchy lighting.",
|
description="If you calculate just enough samples, but no more, you will get an image which has slightly blotchy lighting",
|
||||||
min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, default=0.5)
|
min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, default=0.5)
|
||||||
|
|
||||||
# max_sample - not available yet
|
# max_sample - not available yet
|
||||||
BoolProperty(attr="pov_radio_media",
|
BoolProperty(attr="pov_radio_media",
|
||||||
name="Media",
|
name="Media",
|
||||||
description="Radiosity estimation can be affected by media.",
|
description="Radiosity estimation can be affected by media",
|
||||||
default=False)
|
default=False)
|
||||||
|
|
||||||
FloatProperty(attr="pov_radio_minimum_reuse",
|
FloatProperty(attr="pov_radio_minimum_reuse",
|
||||||
name="Minimum Reuse",
|
name="Minimum Reuse",
|
||||||
description="Fraction of the screen width which sets the minimum radius of reuse for each sample point (At values higher than 2% expect errors).",
|
description="Fraction of the screen width which sets the minimum radius of reuse for each sample point (At values higher than 2% expect errors)",
|
||||||
min=0.0, max=1.0, soft_min=0.1, soft_max=0.1, default=0.015)
|
min=0.0, max=1.0, soft_min=0.1, soft_max=0.1, default=0.015)
|
||||||
|
|
||||||
IntProperty(attr="pov_radio_nearest_count",
|
IntProperty(attr="pov_radio_nearest_count",
|
||||||
name="Nearest Count",
|
name="Nearest Count",
|
||||||
description="Number of old ambient values blended together to create a new interpolated value.",
|
description="Number of old ambient values blended together to create a new interpolated value",
|
||||||
min=1, max=20, default=5)
|
min=1, max=20, default=5)
|
||||||
|
|
||||||
BoolProperty(attr="pov_radio_normal",
|
BoolProperty(attr="pov_radio_normal",
|
||||||
name="Normals",
|
name="Normals",
|
||||||
description="Radiosity estimation can be affected by normals.",
|
description="Radiosity estimation can be affected by normals",
|
||||||
default=False)
|
default=False)
|
||||||
|
|
||||||
IntProperty(attr="pov_radio_recursion_limit",
|
IntProperty(attr="pov_radio_recursion_limit",
|
||||||
name="Recursion Limit",
|
name="Recursion Limit",
|
||||||
description="how many recursion levels are used to calculate the diffuse inter-reflection.",
|
description="how many recursion levels are used to calculate the diffuse inter-reflection",
|
||||||
min=1, max=20, default=3)
|
min=1, max=20, default=3)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1112,7 +1112,7 @@ def save_3ds(filename, context):
|
|||||||
# # save_3ds('/test_b.3ds')
|
# # save_3ds('/test_b.3ds')
|
||||||
from bpy.props import *
|
from bpy.props import *
|
||||||
class Export3DS(bpy.types.Operator):
|
class Export3DS(bpy.types.Operator):
|
||||||
'''Export to 3DS file format (.3ds).'''
|
'''Export to 3DS file format (.3ds)'''
|
||||||
bl_idname = "export.autodesk_3ds"
|
bl_idname = "export.autodesk_3ds"
|
||||||
bl_label = 'Export 3DS'
|
bl_label = 'Export 3DS'
|
||||||
|
|
||||||
@ -1140,7 +1140,7 @@ class Export3DS(bpy.types.Operator):
|
|||||||
# Add to a menu
|
# Add to a menu
|
||||||
def menu_func(self, context):
|
def menu_func(self, context):
|
||||||
default_path = bpy.data.filename.replace(".blend", ".3ds")
|
default_path = bpy.data.filename.replace(".blend", ".3ds")
|
||||||
self.layout.operator(Export3DS.bl_idname, text="Autodesk 3DS...").path = default_path
|
self.layout.operator(Export3DS.bl_idname, text="3D Studio (.3ds)").path = default_path
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -3465,7 +3465,7 @@ class ExportFBX(bpy.types.Operator):
|
|||||||
|
|
||||||
def menu_func(self, context):
|
def menu_func(self, context):
|
||||||
default_path = bpy.data.filename.replace(".blend", ".fbx")
|
default_path = bpy.data.filename.replace(".blend", ".fbx")
|
||||||
self.layout.operator(ExportFBX.bl_idname, text="Autodesk FBX...").path = default_path
|
self.layout.operator(ExportFBX.bl_idname, text="Autodesk FBX (.fbx)").path = default_path
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -146,7 +146,7 @@ from bpy.props import *
|
|||||||
|
|
||||||
|
|
||||||
class ExportMDD(bpy.types.Operator):
|
class ExportMDD(bpy.types.Operator):
|
||||||
'''Animated mesh to MDD vertex keyframe file.'''
|
'''Animated mesh to MDD vertex keyframe file'''
|
||||||
bl_idname = "export.mdd"
|
bl_idname = "export.mdd"
|
||||||
bl_label = "Export MDD"
|
bl_label = "Export MDD"
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ class ExportMDD(bpy.types.Operator):
|
|||||||
|
|
||||||
def menu_func(self, context):
|
def menu_func(self, context):
|
||||||
default_path = bpy.data.filename.replace(".blend", ".mdd")
|
default_path = bpy.data.filename.replace(".blend", ".mdd")
|
||||||
self.layout.operator(ExportMDD.bl_idname, text="Vertex Keyframe Animation (.mdd)...").path = default_path
|
self.layout.operator(ExportMDD.bl_idname, text="Lightwave Point Cache (.mdd)").path = default_path
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -961,7 +961,7 @@ class ExportOBJ(bpy.types.Operator):
|
|||||||
|
|
||||||
def menu_func(self, context):
|
def menu_func(self, context):
|
||||||
default_path = bpy.data.filename.replace(".blend", ".obj")
|
default_path = bpy.data.filename.replace(".blend", ".obj")
|
||||||
self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)...").path = default_path
|
self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)").path = default_path
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -315,7 +315,7 @@ class ExportPLY(bpy.types.Operator):
|
|||||||
|
|
||||||
def menu_func(self, context):
|
def menu_func(self, context):
|
||||||
default_path = bpy.data.filename.replace(".blend", ".ply")
|
default_path = bpy.data.filename.replace(".blend", ".ply")
|
||||||
self.layout.operator(ExportPLY.bl_idname, text="Stanford (.ply)...").path = default_path
|
self.layout.operator(ExportPLY.bl_idname, text="Stanford (.ply)").path = default_path
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -1229,9 +1229,9 @@ class ExportX3D(bpy.types.Operator):
|
|||||||
path = StringProperty(name="File Path", description="File path used for exporting the X3D file", maxlen= 1024, default= "")
|
path = StringProperty(name="File Path", description="File path used for exporting the X3D file", maxlen= 1024, default= "")
|
||||||
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
|
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
|
||||||
|
|
||||||
apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object.", default=True)
|
apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)
|
||||||
triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=False)
|
triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=False)
|
||||||
compress = BoolProperty(name="Compress", description="GZip the resulting file, requires a full python install.", default=False)
|
compress = BoolProperty(name="Compress", description="GZip the resulting file, requires a full python install", default=False)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
x3d_export(self.properties.path, context, self.properties.apply_modifiers, self.properties.triangulate, self.properties.compress)
|
x3d_export(self.properties.path, context, self.properties.apply_modifiers, self.properties.triangulate, self.properties.compress)
|
||||||
@ -1245,7 +1245,7 @@ class ExportX3D(bpy.types.Operator):
|
|||||||
|
|
||||||
def menu_func(self, context):
|
def menu_func(self, context):
|
||||||
default_path = bpy.data.filename.replace(".blend", ".x3d")
|
default_path = bpy.data.filename.replace(".blend", ".x3d")
|
||||||
self.layout.operator(ExportX3D.bl_idname, text="X3D Extensible 3D (.x3d)...").path = default_path
|
self.layout.operator(ExportX3D.bl_idname, text="X3D Extensible 3D (.x3d)").path = default_path
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -876,7 +876,7 @@ from bpy.props import *
|
|||||||
|
|
||||||
|
|
||||||
class BvhImporter(bpy.types.Operator):
|
class BvhImporter(bpy.types.Operator):
|
||||||
'''Load a Wavefront OBJ File.'''
|
'''Load a OBJ Motion Capture File'''
|
||||||
bl_idname = "import_anim.bvh"
|
bl_idname = "import_anim.bvh"
|
||||||
bl_label = "Import BVH"
|
bl_label = "Import BVH"
|
||||||
|
|
||||||
@ -895,7 +895,7 @@ class BvhImporter(bpy.types.Operator):
|
|||||||
return {'RUNNING_MODAL'}
|
return {'RUNNING_MODAL'}
|
||||||
|
|
||||||
|
|
||||||
menu_func = lambda self, context: self.layout.operator(BvhImporter.bl_idname, text="Motion Capture (.bvh)...")
|
menu_func = lambda self, context: self.layout.operator(BvhImporter.bl_idname, text="Motion Capture (.bvh)")
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
bpy.types.register(BvhImporter)
|
bpy.types.register(BvhImporter)
|
||||||
|
@ -1032,7 +1032,7 @@ class IMPORT_OT_autodesk_3ds(bpy.types.Operator):
|
|||||||
return {'RUNNING_MODAL'}
|
return {'RUNNING_MODAL'}
|
||||||
|
|
||||||
|
|
||||||
menu_func = lambda self, context: self.layout.operator(IMPORT_OT_autodesk_3ds.bl_idname, text="3D Studio (.3ds)...")
|
menu_func = lambda self, context: self.layout.operator(IMPORT_OT_autodesk_3ds.bl_idname, text="3D Studio (.3ds)")
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -1574,7 +1574,7 @@ else:
|
|||||||
from bpy.props import *
|
from bpy.props import *
|
||||||
|
|
||||||
class IMPORT_OT_obj(bpy.types.Operator):
|
class IMPORT_OT_obj(bpy.types.Operator):
|
||||||
'''Load a Wavefront OBJ File.'''
|
'''Load a Wavefront OBJ File'''
|
||||||
bl_idname = "import_scene.obj"
|
bl_idname = "import_scene.obj"
|
||||||
bl_label = "Import OBJ"
|
bl_label = "Import OBJ"
|
||||||
|
|
||||||
@ -1623,7 +1623,7 @@ class IMPORT_OT_obj(bpy.types.Operator):
|
|||||||
return {'RUNNING_MODAL'}
|
return {'RUNNING_MODAL'}
|
||||||
|
|
||||||
|
|
||||||
menu_func = lambda self, context: self.layout.operator(IMPORT_OT_obj.bl_idname, text="Wavefront (.obj)...")
|
menu_func = lambda self, context: self.layout.operator(IMPORT_OT_obj.bl_idname, text="Wavefront (.obj)")
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
@ -142,7 +142,7 @@ class INFO_MT_file_import(bpy.types.Menu):
|
|||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
if "collada_import" in dir(bpy.ops.wm):
|
if "collada_import" in dir(bpy.ops.wm):
|
||||||
self.layout.operator("wm.collada_import", text="COLLADA (.dae)...")
|
self.layout.operator("wm.collada_import", text="COLLADA (.dae)")
|
||||||
|
|
||||||
|
|
||||||
class INFO_MT_file_export(bpy.types.Menu):
|
class INFO_MT_file_export(bpy.types.Menu):
|
||||||
@ -151,7 +151,7 @@ class INFO_MT_file_export(bpy.types.Menu):
|
|||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
if "collada_export" in dir(bpy.ops.wm):
|
if "collada_export" in dir(bpy.ops.wm):
|
||||||
self.layout.operator("wm.collada_export", text="COLLADA (.dae)...")
|
self.layout.operator("wm.collada_export", text="COLLADA (.dae)")
|
||||||
|
|
||||||
|
|
||||||
class INFO_MT_file_external_data(bpy.types.Menu):
|
class INFO_MT_file_external_data(bpy.types.Menu):
|
||||||
@ -161,7 +161,7 @@ class INFO_MT_file_external_data(bpy.types.Menu):
|
|||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
layout.operator("file.pack_all", text="Pack into .blend file")
|
layout.operator("file.pack_all", text="Pack into .blend file")
|
||||||
layout.operator("file.unpack_all", text="Unpack into Files...")
|
layout.operator("file.unpack_all", text="Unpack into Files")
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ static int report_missing_files_exec(bContext *C, wmOperator *op)
|
|||||||
void FILE_OT_report_missing_files(wmOperatorType *ot)
|
void FILE_OT_report_missing_files(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Report Missing Files...";
|
ot->name= "Report Missing Files";
|
||||||
ot->idname= "FILE_OT_report_missing_files";
|
ot->idname= "FILE_OT_report_missing_files";
|
||||||
|
|
||||||
/* api callbacks */
|
/* api callbacks */
|
||||||
@ -295,7 +295,7 @@ static int find_missing_files_invoke(bContext *C, wmOperator *op, wmEvent *event
|
|||||||
void FILE_OT_find_missing_files(wmOperatorType *ot)
|
void FILE_OT_find_missing_files(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Find Missing Files...";
|
ot->name= "Find Missing Files";
|
||||||
ot->idname= "FILE_OT_find_missing_files";
|
ot->idname= "FILE_OT_find_missing_files";
|
||||||
|
|
||||||
/* api callbacks */
|
/* api callbacks */
|
||||||
|
Loading…
Reference in New Issue
Block a user