Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved modules into separate packages
- Loading branch information
1 parent
fb43fe7
commit aaf8c80
Showing
21 changed files
with
609 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
from . import ui_layer_manager | ||
from . import space_view3d | ||
from . import space_info | ||
from . import object_properties_panel | ||
# from . import object_library | ||
from . import library | ||
|
||
def register(): | ||
ui_layer_manager.register() | ||
space_view3d.register() | ||
space_info.register() | ||
object_properties_panel.register() | ||
library.register() | ||
# object_library.register() | ||
library.register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from . import assembly | ||
from . import opengl | ||
from . import unit | ||
from . import utils |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from . import info_ops | ||
from . import info_ui | ||
|
||
def register(): | ||
info_ops.register() | ||
info_ui.register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
import bpy | ||
|
||
class OPS_render_settings(bpy.types.Operator): | ||
bl_idname = "info.render_settings" | ||
bl_label = "Render Settings" | ||
|
||
room_builder_tabs = bpy.props.EnumProperty(name="Room Builder Tabs", | ||
items=[('MAIN',"Main Settings","Displays the Main Rendering Options"), | ||
('LIGHTING',"Lighting","Library of Room Assets"), | ||
('2D',"2D Views","Creates 2D Views For your Room")], | ||
default='MAIN') | ||
|
||
def execute(self, context): | ||
return {'FINISHED'} | ||
|
||
def check(self,context): | ||
return True | ||
|
||
def invoke(self,context,event): | ||
wm = context.window_manager | ||
return wm.invoke_props_dialog(self, width=400) | ||
|
||
def draw(self, context): | ||
layout = self.layout | ||
scene = bpy.context.scene | ||
rd = scene.render | ||
cycles = scene.cycles | ||
image_settings = rd.image_settings | ||
|
||
rl = rd.layers.active | ||
linestyle = rl.freestyle_settings.linesets[0].linestyle | ||
|
||
box = layout.box() | ||
row = box.row(align=True) | ||
if rd.has_multiple_engines: | ||
row.prop(rd, "engine", text="Rendering Engine") | ||
|
||
row = box.row() | ||
row.prop(cycles, "device", text="CPU") | ||
|
||
row = box.row(align=True) | ||
row.label(text="Render Size:",icon='STICKY_UVS_VERT') | ||
row.prop(rd, "resolution_x", text="X") | ||
row.prop(rd, "resolution_y", text="Y") | ||
row = box.row(align=True) | ||
row.label("Resolution Percentage:") | ||
row.prop(rd, "resolution_percentage", text="") | ||
|
||
row = box.row() | ||
row.label(text="Rendering Quality:",icon='IMAGE_COL') | ||
row.prop(scene.cycles,"samples",text='Passes') | ||
row = box.row() | ||
row.label(text="Image Format:",icon='IMAGE_DATA') | ||
row.prop(image_settings,"file_format",text="") | ||
row = box.row() | ||
row.label(text="Display Mode:",icon='RENDER_RESULT') | ||
row.prop(rd,"display_mode",text="") | ||
row = box.row() | ||
row.label(text="Use Transparent Film:",icon='SEQUENCE') | ||
row.prop(scene.cycles,"film_transparent",text='') | ||
|
||
row = box.row() | ||
row.prop(rd, "use_freestyle", text="Use Freestyle") | ||
if rd.use_freestyle: | ||
row = box.row() | ||
row.prop(linestyle, "color", text="Line Color") | ||
row = box.row() | ||
row.prop(bpy.data.worlds[0], "horizon_color", text="Background Color") | ||
|
||
class OPS_change_interface(bpy.types.Operator): | ||
bl_idname = "info.change_interface" | ||
bl_label = "Change Interface" | ||
bl_description = "Select to change active interface layout" | ||
|
||
interface_name = bpy.props.StringProperty(name="Interface Name",default = "New Interface") | ||
|
||
def execute(self, context): | ||
context.window.screen = bpy.data.screens[self.interface_name] | ||
return {'FINISHED'} | ||
|
||
class OPS_duplicate_current_interface(bpy.types.Operator): | ||
bl_idname = "info.copy_current_interface" | ||
bl_label = "Duplicate Current Interface" | ||
bl_description = "This will copy the active interface layout" | ||
|
||
interface_name = bpy.props.StringProperty(name="Interface Name",default = "New Interface") | ||
|
||
def execute(self, context): | ||
bpy.ops.screen.new() | ||
context.window.screen.name = self.interface_name | ||
# screen.new() doesn't set screen to be active | ||
# manually have to clean up blenders renaming | ||
for screen in bpy.data.screens: | ||
screen.name = screen.name.replace(".001","") | ||
bpy.ops.info.change_interface(interface_name = self.interface_name) | ||
return {'FINISHED'} | ||
|
||
def check(self,context): | ||
return True | ||
|
||
def invoke(self,context,event): | ||
wm = context.window_manager | ||
return wm.invoke_props_dialog(self, width=400) | ||
|
||
def draw(self, context): | ||
layout = self.layout | ||
layout.label("Enter a name for the new interface") | ||
layout.prop(self,'interface_name') | ||
|
||
class OPS_delete_current_interface(bpy.types.Operator): | ||
bl_idname = "info.delete_current_interface" | ||
bl_label = "Delete Current Interface" | ||
bl_description = "This will delete the active interface layout" | ||
|
||
def execute(self, context): | ||
bpy.ops.screen.delete() | ||
return {'FINISHED'} | ||
|
||
def check(self,context): | ||
return True | ||
|
||
def invoke(self,context,event): | ||
wm = context.window_manager | ||
return wm.invoke_props_dialog(self, width=400) | ||
|
||
def draw(self, context): | ||
layout = self.layout | ||
layout.label("Are you sure you want to delete the active interface layout") | ||
layout.label("Active Interface Layout: " + context.window.screen.name) | ||
|
||
def register(): | ||
|
||
bpy.utils.register_class(OPS_render_settings) | ||
bpy.utils.register_class(OPS_change_interface) | ||
bpy.utils.register_class(OPS_duplicate_current_interface) | ||
bpy.utils.register_class(OPS_delete_current_interface) | ||
|
||
def unregister(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from . import view3d_ui | ||
from . import view3d_ops | ||
from . import object_properties_panel | ||
from . import ui_layer_manager | ||
|
||
def register(): | ||
view3d_ui.register() | ||
view3d_ops.register() | ||
object_properties_panel.register() | ||
ui_layer_manager.register() |
Oops, something went wrong.