Commit Graph

112 Commits

Author SHA1 Message Date
Campbell Barton
08c9ecb3b0 RNA/Py API
change how data is added. eg.
 bpy.data.add_mesh(name) --> bpy.data.meshes.new(name)
 bpy.data.remove_lamp(lamp) --> bpy.data.lamps.remove(lamp)


image and texture stil use add_* funcs
2010-01-09 23:44:01 +00:00
Martin Poirier
670d55f097 netrender: refactor thumbnail generation code. New option to generate the thumbnail on the slaves (per slave option, default off). Missing thumbnails are still generated on demand by the master. 2010-01-09 18:21:27 +00:00
Martin Poirier
eb2e64afa5 netrender: bugfix to make thumbnails work correctly when running master through the UI (not in background) [context is borked in that case]. Also show number of threads settings in slave settings (reusing render setting) and force that setting when rendering jobs. 2010-01-08 17:52:21 +00:00
Martin Poirier
ef8179f7cb netrender:
thumbnails on the web interface (resized with imagemagick or compatible if present, fullsize otherwise)
Clicking on the "show" link shows the thumbnail associated with one frame. Clicking on a second one shows all frames in the range. Clicking on more frames extends the range. Clicking on a thumbnail (or on the show link of a visible thumbnail) hides all thumbnails.
2010-01-08 02:33:20 +00:00
Martin Poirier
f2ee251b64 netrender bug: master server clean on exit (off by default) was deleting on folder too low in the hierarchy (/tmp/ instead of /tmp/master_<pid>/). That was nasty but I'd be surprised if it affected anybody. 2010-01-07 19:01:43 +00:00
Martin Poirier
cfaa1e5db1 netrender
jpeg versions of the render results are downloadable from the web interface. 

Notes:

1) They are generated (and written to disk) on demand on the master in the same Blender instance, so this will increase memory usage (until there's a way to free and image buffer from memory or it's run in a separate process).
2) They are darker then the real results, since multilayer exr contain the result before gamma correction (for the linear workflow) and that's not applied when loading them as an image.
3) They are NOT thumbnails, they are the same size as the results (albeit at 90% quality jpeg compression)
2010-01-07 18:54:47 +00:00
Martin Poirier
59ec8ee1ab netrender: Ctrl-C correctly stops master in background mode (low level select was catching the break and spiting and exception) 2010-01-06 20:17:27 +00:00
Martin Poirier
a8c3831a1d netrender:
Slave and Master options to delete files when closed (default True for slave, False for Master)
Web interface option to remove files (on master) when deleting a job (or all jobs)
Web interface button to pause a job
2010-01-06 18:56:24 +00:00
Martin Poirier
2ad69c23a0 netrender: UI layout reorganization and prettifying. Also better operator descriptions (tooltips). Based on a patch by DingTo. 2010-01-05 20:47:23 +00:00
Thomas Dinges
c95ad12dac Netrender:
Tooltips for chunks/priority were swapped.
2010-01-04 22:41:21 +00:00
Campbell Barton
c79cf56b69 dict.get() defaults to None as the second arg. no need to supply it. 2010-01-04 21:10:51 +00:00
Martin Poirier
2034a77a45 netrender: reset server address on client when server is offline (on file load) as well as clear local caches (for slaves and jobs) 2010-01-04 21:05:52 +00:00
Campbell Barton
04d0261c37 new python submodule. eg.
from bpy.app import binary_path, version, version_string, home

can add constant variables from blender here as needed (maybe functions too... bpy.app.memory_usage() ?)
2010-01-02 23:14:01 +00:00
Martin Poirier
7c4e510492 netrender: edit balancing rules limits and enable/disable them from the web interface 2009-12-31 19:11:46 +00:00
Campbell Barton
58b1591ceb netrender tab to spaces 2009-12-29 00:04:57 +00:00
Martin Poirier
54d64c4763 netrender: show web interface button in all modes. use rna decorator all the time (no need for special operator decorator) 2009-12-28 22:49:22 +00:00
Campbell Barton
98f1d6957e new python module constants
* bpy.home - result of BLI_gethome()
* bpy.version - BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION
* bpy.version_string, as above, formatted: "%d.%02d (sub %d)"
2009-12-28 10:00:04 +00:00
Campbell Barton
944a4f2a3f pep8 edits, removed MakeCursor.py and rna_array.py, not important to make pep8 2009-12-26 09:36:50 +00:00
Campbell Barton
5afd084513 replace dynamic_menu.py with Menu classmethods much less complicated.
access append/prepend eg.

bpy.types.INFO_MT_file_import.append(lambda self, context: self.layout.operator("import_some.format"))
2009-12-25 22:16:19 +00:00
Campbell Barton
695677914a bugfix [#20237] Import error
(export X90 rotation wasnt right)
2009-12-25 20:52:05 +00:00
Campbell Barton
06f1505a4a bugfix [#20253] Import/Export fails 2009-12-25 20:47:23 +00:00
Campbell Barton
5f4e24d599 operator draw function working again. needed to add layout to the operator to give access to "self.layout" - like panels, headers and manu's have 2009-12-24 21:17:14 +00:00
Campbell Barton
bbe13e7823 * register operators like other classes
* operators now return sets (converted into flags)
* can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
2009-12-24 19:50:43 +00:00
Martin Poirier
8f3a529585 netrender: display dispatching rules under master header. (read only for now) 2009-12-21 19:56:53 +00:00
Martin Poirier
fc1ede345d netrender: visibility toggle for full list of fluid and cache files in the job web page 2009-12-21 18:14:39 +00:00
Martin Poirier
c050f5f1de netrender
- Add "Get Result" button after a job has been sent (this calls Animate and fetches the results back as render result buffers)
- Rendering (animate or single frame) without an active job was broken. Note that this launches a new job for each frame (it's impossible in a render engine to know if an animation is being rendered or a single frame only).
2009-12-21 02:46:19 +00:00
Martin Poirier
5057ac80ee netrender
- Patch by Olivier Amrein (prettying the web interface with css, fixing some notification bugs)
- More error checks on the slave (better behavior when job is canceled)
- Client: when using "Animate on Network" and canceling render midway, also cancel job. Use Send Job and Animate if you want a real background job.
2009-12-21 01:09:09 +00:00
Martin Poirier
85556a780c netrender: buttons to change chunks, priority and reset job. 2009-12-20 21:46:39 +00:00
Martin Poirier
f3147db0e8 netrender: list files in job webpage 2009-12-19 22:36:20 +00:00
Martin Poirier
383f29ff37 netrender
Display job status in web interface
Better use of Reports api for errors and success notifications
Don't show some Client options if server address is default (hasn't been scanned or entered manually yet)
2009-12-16 21:00:25 +00:00
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
Campbell Barton
3ea2d08e1a pep8 changes 2009-12-16 13:27:30 +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
Campbell Barton
9f965ba62b pep8 warnings, remove unused imports 2009-12-13 22:48:11 +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
Campbell Barton
7fc4ab2aab add pep8 headers so these scripts spit out errors when running pep8.
made some changes but mostly these scripts will give pep8 warnings.
2009-12-13 14:38:30 +00:00
Campbell Barton
58808a7bef remove inline cleanName function, use bpy.utils.clean_name 2009-12-13 14:04:36 +00:00
Campbell Barton
095994796d tabs 2 spaces 2009-12-13 14:00:39 +00:00
Campbell Barton
cff8de339d [#20288] FBX exporter fails
* disallow registering operators that have properties starting with an underscore which caused this problem.
2009-12-11 00:51:14 +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
f26e188a7c - rigify context changes & example for delta
- sequencer transform had 0.0 for rotation minimum
- missed icon rename in last commit
2009-12-10 11:56:31 +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
Campbell Barton
062cf438ce remove nasty hack which made StructRNA class instaces have no __dict__,
use __slots__, it seems all the parent classes need to have slots as well for this to work.
all python defined srna classes are checked for this too
2009-12-05 23:41:45 +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
8c5d021d19 rename armature RNA props
armature_matrix --> matrix_local
armature_head --> head_local
armature_tail --> tail_local
2009-12-02 10:32:39 +00:00