)
c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg))
-#c['status'].append(html.WebStatus(http_port=8010))
+# c['status'].append(html.WebStatus(http_port=8010))
# PROJECT IDENTITY
# Write a 'sed' script, useful if we get a lot of these
# print("sed '%dd' '%s' > '%s.tmp' ; mv '%s.tmp' '%s'" % (i, cf, cf, cf, cf))
-
if is_err:
raise Exception("CMake referenecs missing files, aborting!")
del is_err
# be tricky, get the project name from git if we can!
PROJECT_NAME = project_name_get()
-
make_exe = cmake_cache_var("CMAKE_MAKE_PROGRAM")
make_exe_basename = os.path.basename(make_exe)
render.pixel_aspect_y,
)
-
offscreen.draw_view3d(
scene,
context.space_data,
l = "None,"
b[i] = l
- #for l in b:
- # print(l)
+ # for l in b:
+ # print(l)
text = "\n".join(b)
global_namespace = {
cls.rolling_shutter_duration = FloatProperty(
name="Rolling Shutter Duration",
description="Scanline \"exposure\" time for the rolling shutter effect",
- default = 0.1,
+ default=0.1,
min=0.0, max=1.0,
)
sub.prop(cscene, "sample_clamp_direct")
sub.prop(cscene, "sample_clamp_indirect")
- if cscene.progressive == 'PATH' or use_branched_path(context) == False:
+ if cscene.progressive == 'PATH' or use_branched_path(context) is False:
col = split.column()
sub = col.column(align=True)
sub.label(text="Samples:")
if isinstance(path, bytes):
if path.startswith(b"//"):
if library:
- start = _os.path.dirname(abspath(_getattr_bytes(library, "filepath")))
- return _os.path.join(_os.path.dirname(_getattr_bytes(_bpy.data, "filepath"))
- if start is None else start,
- path[2:],
- )
+ start = _os.path.dirname(
+ abspath(_getattr_bytes(library, "filepath")))
+ return _os.path.join(
+ _os.path.dirname(_getattr_bytes(_bpy.data, "filepath"))
+ if start is None else start,
+ path[2:],
+ )
else:
if path.startswith("//"):
if library:
- start = _os.path.dirname(abspath(library.filepath))
- return _os.path.join(_os.path.dirname(_bpy.data.filepath)
- if start is None else start,
- path[2:],
- )
+ start = _os.path.dirname(
+ abspath(library.filepath))
+ return _os.path.join(
+ _os.path.dirname(_bpy.data.filepath)
+ if start is None else start,
+ path[2:],
+ )
return path
:type convert_callback: function
:arg relpath: If not None, make the file relative to this path.
:type relpath: None or string
- :arg check_existing: If true, returns already loaded image datablock if possible
+ :arg check_existing: If true,
+ returns already loaded image datablock if possible
(based on file path).
:type check_existing: bool
- :arg force_reload: If true, force reloading of image (only useful when `check_existing`
- is also enabled).
+ :arg force_reload: If true,
+ force reloading of image (only useful when `check_existing`
+ is also enabled).
:type force_reload: bool
:return: an image or None
:rtype: :class:`bpy.types.Image`
def _update_axis_forward(self, context):
if self.axis_forward[-1] == self.axis_up[-1]:
- self.axis_up = self.axis_up[0:-1] + 'XYZ'[('XYZ'.index(self.axis_up[-1]) + 1) % 3]
+ self.axis_up = (self.axis_up[0:-1] +
+ 'XYZ'[('XYZ'.index(self.axis_up[-1]) + 1) % 3])
members['axis_forward'] = EnumProperty(
name="Forward",
def _update_axis_up(self, context):
if self.axis_up[-1] == self.axis_forward[-1]:
- self.axis_forward = self.axis_forward[0:-1] + 'XYZ'[('XYZ'.index(self.axis_forward[-1]) + 1) % 3]
+ self.axis_forward = (self.axis_forward[0:-1] +
+ 'XYZ'[('XYZ'.index(self.axis_forward[-1]) + 1) % 3])
members['axis_up'] = EnumProperty(
name="Up",
@property
def basename(self):
"""The name of this bone before any '.' character"""
- #return self.name.rsplit(".", 1)[0]
+ # return self.name.rsplit(".", 1)[0]
return self.name.split(".")[0]
@property
r = r[1:-1]
return r
-
output = open(filepath, 'w', encoding="utf-8")
header = "= Blender %s System Information =\n" % bpy.app.version_string
self.space_template(layout, con)
- #def SCRIPT(self, context, layout, con):
+ # def SCRIPT(self, context, layout, con):
def ACTION(self, context, layout, con):
self.target_template(layout, con)
row = col.split(percentage=0.75)
row.prop(md, "use_symmetry")
row.prop(md, "symmetry_axis", text="")
-
elif decimate_type == 'UNSUBDIV':
layout.prop(md, "iterations")
row.prop(context.tool_settings, "grease_pencil_source", expand=True)
elif context.space_data.type == 'CLIP_EDITOR':
row.prop(context.space_data, "grease_pencil_source", expand=True)
-
+
col.separator()
col.separator()
@staticmethod
def draw(self, context):
layout = self.layout
-
+
settings = context.tool_settings.gpencil_sculpt
tool = settings.tool
brush = settings.brush
-
+
layout.column().prop(settings, "tool", expand=True)
col = layout.column()
# W - Launch Sculpt Mode
col = pie.column()
- #col.label("Tool:")
+ # col.label("Tool:")
col.prop(settings, "tool", text="")
col.operator("gpencil.brush_paint", text="Sculpt", icon='SCULPTMODE_HLT')
col.prop(brush, "size", slider=True)
row = col.row(align=True)
row.prop(brush, "strength", slider=True)
- # row.prop(brush, "use_pressure_strength", text="", icon_only=True)
+ # row.prop(brush, "use_pressure_strength", text="", icon_only=True)
col.prop(brush, "use_falloff")
# S - Change Brush Type Shortcuts
else:
layout.template_preview(tex, slot=slot)
- #Show Alpha Button for Brush Textures, see #29502
+ # Show Alpha Button for Brush Textures, see #29502
if context.space_data.texture_context == 'BRUSH':
layout.prop(tex, "use_preview_alpha")
col = split.column()
- #Only for Material based textures, not for Lamp/World...
+ # Only for Material based textures, not for Lamp/World...
if slot and isinstance(idblock, Material):
col.prop(tex, "use_normal_map")
row = col.row()
col = split.column()
- #Only for Material based textures, not for Lamp/World...
+ # Only for Material based textures, not for Lamp/World...
if slot and isinstance(idblock, Material):
col.prop(tex, "use_normal_map")
row = col.row()
split = layout.split()
col = split.column(align=True)
- #col.prop(tex, "crop_rectangle")
+ # col.prop(tex, "crop_rectangle")
col.label(text="Crop Minimum:")
col.prop(tex, "crop_min_x", text="X")
col.prop(tex, "crop_min_y", text="Y")
elif vd.file_format == 'IMAGE_SEQUENCE':
layout.template_ID(tex, "image", open="image.open")
layout.template_image(tex, "image", tex.image_user, compact=True)
- #layout.prop(vd, "frame_duration")
+ # layout.prop(vd, "frame_duration")
if vd.file_format in {'BLENDER_VOXEL', 'RAW_8BIT'}:
layout.prop(vd, "use_still_frame")
class CLIP_PT_tools_grease_pencil_edit(GreasePencilStrokeEditPanel, Panel):
bl_space_type = 'CLIP_EDITOR'
+
# Grease Pencil stroke sculpting tools
class CLIP_PT_tools_grease_pencil_sculpt(GreasePencilStrokeSculptPanel, Panel):
bl_space_type = 'CLIP_EDITOR'
toolsettings = context.tool_settings.image_paint
return sima.show_paint
+
class IMAGE_PT_tools_brush_overlay(BrushButtonsPanel, Panel):
bl_label = "Overlay"
bl_options = {'DEFAULT_CLOSED'}
bl_space_type = 'NODE_EDITOR'
bl_region_type = 'TOOLS'
+
# Grease Pencil stroke sculpting tools
class NODE_PT_tools_grease_pencil_sculpt(GreasePencilStrokeSculptPanel, Panel):
bl_space_type = 'NODE_EDITOR'
stype = strip.type
if stype == 'IMAGE':
- prop.filter_image = True;
+ prop.filter_image = True
elif stype == 'MOVIE':
- prop.filter_movie = True;
+ prop.filter_movie = True
elif stype == 'SOUND':
- prop.filter_sound = True;
+ prop.filter_sound = True
class SEQUENCER_MT_frame(Menu):
elif strip.type == 'GAUSSIAN_BLUR':
col.prop(strip, "size_x")
col.prop(strip, "size_y")
-
+
class SEQUENCER_PT_input(SequencerButtonsPanel, Panel):
bl_label = "Strip Input"
col.prop(mod, "offset")
col.prop(mod, "gamma")
+
class SEQUENCER_PT_grease_pencil(GreasePencilDataPanel, SequencerButtonsPanel_Output, Panel):
bl_space_type = 'SEQUENCE_EDITOR'
bl_region_type = 'UI'
class VIEW3D_MT_select_gpencil(Menu):
bl_label = "Select"
-
+
def draw(self, context):
layout = self.layout
class VIEW3D_MT_edit_gpencil(Menu):
bl_label = "GPencil"
-
+
def draw(self, context):
toolsettings = context.tool_settings
def main():
print("Calling main!")
- #render_gl(bpy.context, "/testme")
- #ctx_clear_scene()
+ # render_gl(bpy.context, "/testme")
+ # ctx_clear_scene()
context = bpy.context
try:
op(mode)
except:
- #import traceback
- #traceback.print_exc()
+ # import traceback
+ # traceback.print_exc()
pass
if USE_ATTRSET:
filter_op_list(operators)
# for testing, mix the list up.
- #operators.reverse()
+ # operators.reverse()
if USE_RANDOM:
import random
for i, line in enumerate(f):
line_strip = line.lstrip()
# ^\.\.\s[a-zA-Z09\-]+::.*$
- #if line.startswith(".. "):
+ # if line.startswith(".. "):
march = re_prefix.match(line_strip)
if march: