Python bpy.props.FloatProperty() Examples
The following are 2
code examples of bpy.props.FloatProperty().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
bpy.props
, or try the search function
.
Example #1
Source File: muv_props.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def init_props(scene): scene.muv_props = MUV_Properties() scene.muv_uvbb_cp_size = FloatProperty( name="Size", description="Control Point Size", default=6.0, min=3.0, max=100.0) scene.muv_uvbb_cp_react_size = FloatProperty( name="React Size", description="Size event fired", default=10.0, min=3.0, max=100.0) scene.muv_uvbb_uniform_scaling = BoolProperty( name="Uniform Scaling", description="Enable Uniform Scaling", default=False) scene.muv_texproj_tex_magnitude = FloatProperty( name="Magnitude", description="Texture Magnitude.", default=0.5, min=0.0, max=100.0) scene.muv_texproj_tex_image = EnumProperty( name="Image", description="Texture Image.", items=get_loaded_texture_name) scene.muv_texproj_tex_transparency = FloatProperty( name="Transparency", description="Texture Transparency.", default=0.2, min=0.0, max=1.0)
Example #2
Source File: archipack_progressbar.py From archipack with GNU General Public License v3.0 | 5 votes |
def register(): Scene.archipack_progress = FloatProperty( options={'SKIP_SAVE'}, default=-1, subtype='PERCENTAGE', precision=1, min=-1, soft_min=0, soft_max=100, max=101, update=update) Scene.archipack_progress_text = StringProperty( options={'SKIP_SAVE'}, default="Progress", update=update) global info_header_draw info_header_draw = bpy.types.INFO_HT_header.draw def info_draw(self, context): global info_header_draw info_header_draw(self, context) if (context.scene.archipack_progress > -1 and context.scene.archipack_progress < 101): self.layout.separator() text = context.scene.archipack_progress_text self.layout.prop(context.scene, "archipack_progress", text=text, slider=True) bpy.types.INFO_HT_header.draw = info_draw