Commit Graph

31 Commits

Author SHA1 Message Date
Martin Poirier
fabb36a98a netrender: use reports to send error or success messages when sending jobs to server. 2009-12-16 18:26:27 +00:00
Martin Poirier
852a8b40f8 netrender: close server connections on break 2009-12-16 16:45:18 +00:00
Martin Poirier
e677e7e99a netrender
buttons to cancel and reset jobs in the web interface
2009-12-15 18:09:01 +00:00
Martin Poirier
55898c04fd netrender:
Add button to start Slaves and Master when in that mode (it's only calling render animation)
2009-12-15 03:25:26 +00:00
Martin Poirier
8828f92aad Netrender internal refactor.
use a real object for files instead of a tuple
unique urls for files, logs and render results (just missing the proper mime type for exr files)
fix bug with slaves not getting the correct machine name
2009-12-14 23:09:08 +00:00
Martin Poirier
0efa09a676 netrender balancing fix (accessing the list as it is being sorted is not ok)
Caused balancing to error when there was only one job (and more generally, to have a slightly wrong result)
2009-12-13 22:24:30 +00:00
Campbell Barton
3449d3f9b3 use python3 syntax for defining a set. 2009-12-13 16:20:18 +00:00
Martin Poirier
8f2db59253 Netrender: categories and balancing by categories based on usage. Enables grouping of jobs in a single priority group. Jobs in the same category are still ordered by cluster usage. 2009-12-10 18:56:21 +00:00
Campbell Barton
b5740b0e77 remove ICON prefix from the enum, for python this is redundant eg.
layout.prop("setting", icon='ICON_BLAH_BLAH')

Also reverted previous commit, the cursor subtype just needed to be added to the switch statement.
2009-12-10 10:23:53 +00:00
Martin Poirier
c7c1fda642 Changes to netrender baking operator.
Force step of 1 for full baking.
2009-12-04 19:13:22 +00:00
Martin Poirier
d3d11ede44 Fix for cache path.
Operator for background baking (no support in netrender itself yet).
2009-12-04 01:28:00 +00:00
Campbell Barton
caab05ec8c rna UI api rename...
note: this aims to follow pep8 however I chose to use 'prop/props' rather then 'property/properties' because it would make function names too long.

itemR() --> prop()
items_enumR() --> props_enum()
item_menu_enumR() --> prop_menu_enum()
item_pointerR() --> prop_pointer()
itemO() --> operator()
item_enumO() --> operator_enum()
items_enumO() --> operator_enums()
item_menu_enumO() --> operator_menu_enum()
item_booleanO() --> operator_boolean()
item_intO() --> operator_int()
item_floatO() --> operator_float()
item_stringO() --> operator_string()
itemL() --> label()
itemM() --> menu()
itemS() --> separator()

batch script used http://www.pasteall.org/9345
2009-11-23 00:27:30 +00:00
Campbell Barton
e52c5a338f pep8 compliance, also removed use of exec() for netrender module importing 2009-11-19 23:59:37 +00:00
Martin Poirier
a73be8097d Netrender cleanup and bug fix
Blacklist and linked files work again

Store temp data in module
2009-11-18 18:00:46 +00:00
Martin Poirier
5a6261afb3 Code cleanup in netrender 2009-11-18 17:07:42 +00:00
Campbell Barton
4c7dc3e5c5 changes python initialization
- bpy is now a python package, this makes it easier to add utility modules and adjust python startup which was previously using verbose Py/C api. Access should not be any slower since both C and Python modules use dictionary access.
- loop over scripts and load via python (currently F8 reload isnt working, will add back shortly)
- the C module is kept but renamed to _bpy and not meant for direct access from anything but the bpy package.
- bpy_types.py is an exception since it runs before the bpy package is initialized.
2009-11-13 09:28:05 +00:00
Martin Poirier
5bb88685ca fluid cache need a +1 offset, their frame 0 is blender frame 1 (fun stuff) 2009-11-07 17:47:54 +00:00
Martin Poirier
e73a2bd55a make render, world and material buttons show when netrender is selected 2009-11-04 20:42:05 +00:00
Campbell Barton
6680dcd24a renamed bpy.sys to bpy.utils, since it used to be a attempt to replace pythons sys which is bundled now 2009-11-03 18:08:25 +00:00
Campbell Barton
a99157b20d rna structs would not raise an error when assigning invalid properties
netrender needed updating for this.
 hint, bpy.data is not a module
2009-11-01 21:53:45 +00:00
Martin Poirier
9ea292290b Correct GPL license header for all python scripts 2009-11-01 15:21:20 +00:00
Campbell Barton
e4881eef52 define operator properties in the class, similar to django fields
# Before
[
	bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
	bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
	bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True),
	bpy.props.BoolProperty(attr="use_uvs", name="Export UVs", description="Exort the active UV layer", default= True),
	bpy.props.BoolProperty(attr="use_colors", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
]

# After
path = StringProperty(attr="", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= "")
use_modifiers = BoolProperty(attr="", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True)
use_normals = BoolProperty(attr="", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True)
use_uvs = BoolProperty(attr="", name="Export UVs", description="Exort the active UV layer", default= True)
use_colors = BoolProperty(attr="", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
2009-10-31 16:40:14 +00:00
Campbell Barton
ea265fc697 change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.
replacements...
"__idname__" -> "bl_idname"
"__props__" -> "bl_props"
"__label__" -> "bl_label"
"__register__" -> "bl_register"
"__undo__" -> "bl_undo"
"__space_type__" -> "bl_space_type"
"__default_closed__" -> "bl_default_closed"
"__region_type__" -> "bl_region_type"
"__context__" -> "bl_context"
"__show_header__" -> "bl_show_header"
"__URL__" -> "_url"
2009-10-31 13:31:23 +00:00
Thomas Dinges
bd0fee9a4c Network Render:
* Some code cleanups to match layout file code guidelines.
* Ported Operator Labels to op file itself.
* Added some Tooltips, theeth: Feel free to change/improve them as you like. :)
2009-10-15 17:18:47 +00:00
Thomas Dinges
c27a94849c * Fixes for Render Tab separation.
* All Edges is now in the object mode "Display" Tab, as the option doesn't affect Edit Mode. 
Missing Redraw here...
2009-10-14 14:45:58 +00:00
Thomas Dinges
715f682f22 Fixed [#19624] Small typo in Network Render. 2009-10-12 12:39:05 +00:00
Martin Poirier
cc4dd3f04e netrender
Support for fluid files and better support for point cache (including external cache for particles)

This also fixes a couple of bugs with frame based dependencies and with file transfer.

NOTE: With external point cache and fluids, the path needs to be relative or relative to the file (starting with //) if the files are not on a shared drive. It should eventually warn if that is not the case, but doesn't right now, so be careful.
2009-10-09 01:52:57 +00:00
Martin Poirier
248de36c63 netrender: bugfix by matd on irc. unbound var when broadcast is off 2009-10-08 15:02:01 +00:00
Martin Poirier
46402ccddc netrender: use TEMP env var if available to set default temporary path 2009-10-06 21:28:45 +00:00
Martin Poirier
bc942eceac netrender: first draft for process jobs, to be able to run arbitrary commands on slaves. This could be used to bake physics on network or whatnot. 2009-10-01 18:57:22 +00:00
Campbell Barton
2d797f35d8 - removed 2.4x release/scripts
- moved release/io and release/ui into release/scripts/io, ui
- updated scons, cmake, make

When porting 2.4x scripts back, use a command like this so as not to loose the commit history...
 
 svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/raw_import.py release/scripts/io/import_raw.py
2009-09-28 03:19:52 +00:00