4ef1fd1078
game engine support for recording animation back & some other minor changes.
2010-02-22 12:25:58 +00:00
9c8406ea5d
*Removed a lingering 'Add' prefix in the Add menu to make it more consistent.
...
*Added Extrude Region/Individual to the Mesh menu
2010-02-17 16:04:06 +00:00
23efeff6a9
[ #21177 ] Text editor
...
Running scripts directly didnt call the register function, even though this is not essential its good to be able to run a script directly and see changes in the UI.
2010-02-16 09:55:07 +00:00
957baf7d6a
Inline tooltips and descriptions of export/import
...
Random fixes and tweaks in names and tooltips
2010-02-15 09:53:02 +00:00
aaf5f5d470
rename euler_filter.py -> fcurve_euler_filter.py
...
check if the .Blog file exists rather then using an exception.
2010-02-15 08:17:57 +00:00
9f7a412511
File > Open recent raised an error when there was no .Blog file. Now it prints an info.
2010-02-15 01:42:51 +00:00
39c04315e2
change python scripts so modules which register with blender have a register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
2010-02-14 11:21:21 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
95069f2909
pep8 changes
2010-01-31 14:46:28 +00:00
904665f15b
[ #20728 ] "Export UV Layout" overwrites existing files (without feedback)
...
The 'save over' popup was only appearing based on a string comparison of the operator name ("Save"). Changed this to use a hidden operator property: "check_existing". Python operators must
have this property for the file selector confirmation too.
This property can also be set to false, to prevent checking for existing files, useful in the File->Save menu item to prevent the dangerously missable confirmation popup.
2010-01-27 02:20:24 +00:00
7eb5504d79
scene.update() rna function, so operators and data thats tagged for update get their data updated.
...
dont show popup for 'Load Factory Settings'
2010-01-25 10:20:41 +00:00
e7686b4cdb
use a search popup for the add group menu item when there are more then 10.
2010-01-20 13:38:17 +00:00
2b1e59500f
Fix URL to new py API docs
2010-01-14 02:13:08 +00:00
9565322d32
Fix [ #20600 ] First added camera is not made active
...
Also forced view align on when adding cameras
2010-01-11 06:57:41 +00:00
b6a1bc575b
rna/py api
...
bpy.data.scenes.remove(scene) # now works without crashing
bpy.data.texts.new(name)/remove(text)/load(path) # added
2010-01-11 00:41:31 +00:00
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
e09d77507e
remove operators WM_OT_open_recentfile and WM_OT_open_recentfile_splash
...
use a python menu instead.
2009-12-28 10:44:02 +00:00
351f5d1837
- loading missing files didnt give any warning
...
- shape key transfer poll function
2009-12-27 23:29:34 +00:00
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
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
a1656300ba
script for automating pep8 checks.
...
On ubuntu/debian install these tools...
sudo apt-get install pylint pyflakes python-setuptools python-pip
sudo pip install pep8
then run from blenders source dir...
python release/test/pep8.py
This searches for the comments "# <pep8 compliant>" and "# <pep8-80 compliant>", running the checking tools on these scripts only.
* some minor pep8 corrections too.
2009-12-13 13:59:16 +00:00
fb28896cf7
* added an armature submenu where python defined armatures can go.
...
* bpy.utils.display_name(), which makes filenames and module names look nicer in menus eg... /home/me/foo_bar.py --> "Foo Bar"
* missing rna_path --> data_path renaming
2009-12-11 14:16:59 +00:00
7e7e1018ac
Added back rendered animation playback (in a sense), with a
...
customisable player.
You can choose a player in User Preferences -> File Paths. You can
choose a plan custom command line, otherwise there are presets available
for the Blender 2.4 player or DJV (where it will give it the correct filename,
fps, etc on the command line). So for example if you have a Blender 2.4
version installed, you can enter the path to the blender 2.4 executable,
and the playback will work just like before.
Any info on other frame players (FrameCycler? pdplayer?) and their
command line settings could be useful for adding some more presets too,
if anyone knows of them.
It's available in Render->Play Rendered Animation (Ctrl F11)
2009-12-11 08:05:05 +00:00
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
81a69bb00f
Various changes to screen-related code, aiming to fix a few problems and usability issues with 'temp' screen layouts.
...
Now, temp screens are hidden from being accessed directly, with a new 'Back to Previous' button appearing in place of the screen menu when (for example) fullscreen render image areas are present. Window type menus also get disabled here too, to prevent things from getting too mixed up.
2009-12-08 07:12:06 +00:00
d653b0c961
Few small things:
...
1. MSVC 9 projectfiles update (graph_header.c, action_header.c and nla_header.c removed)
2. Fix for opening the filebrowser when saving file for the first time (untitled.blend) from file menu
3. Add CROSS effect sequence type back to menu. (Durian fix)
Note: Removed SEQ_EFFECT from rna, since this no actual sequence type, but rather used to check for the effect bit.
2009-12-08 00:57:14 +00:00
648122b1a2
String fix and a bunch of PEP8 issues I had collected in the meanwhile.
2009-12-04 17:54:48 +00:00
a96f6f2e15
* Moved rotation initialisation code for new objects to 'the other' add object function that campbell fixed earlier. This should mean that the py-api does everything in the right way now.
...
* Tried adding 'Load Factory Settings' to File menu, but I seem to be running up against some RNA bugs. Can be removed if is too problematic.
2009-11-29 23:54:41 +00:00
543d8112ff
Fix for [ #20028 ] adding objects such as cameras in local view(/) doesn't work
...
Was getting the wrong operator context, so there was no view3d available
2009-11-26 05:57:34 +00:00
ff5276b0ce
- use a generic bone class so all 3 bone types (Edit/Pose/Armature) - can have the same utility functions, length, parent_recursive, parent_index(), etc
...
- change the wiki url to avoid redirects (from Luka)
- removed pose prefix from pose_head/pose_tail/pose_matrix
2009-11-24 11:58:49 +00:00
f421558ac7
Fixed weird wrong names in Add menu.
2009-11-23 19:59:42 +00:00
bd1de4b4e3
made release log link point correctly to the release log.
2009-11-23 15:41:57 +00:00
f4d3ce197b
links to Python API docs from splash and help menu
2009-11-23 15:20:56 +00:00
e0fc6d0c33
more ui api changes.
...
- remove functions such as operator_int(), operator_enum(), operator_string
this mixed with keyword arguments in a way that made them hard to read.
Instead, have operator() always return properties rather then needing an argument.
- rename prop_pointer() --> prop_object(), pointer is more a C thing.
- missed item_enumR(), rename to prop_enum()
2009-11-23 11:43:38 +00:00
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
7807a37b89
default name of keymap to 'keymap.py' + pedantic pep8 edits
2009-11-18 01:30:28 +00:00
20043a0fc0
add hook in vertex and control point menu's, Ctrl+H
...
TODO's
- add for lattice
- break up add_hook
- add other hook operators
2009-11-16 13:59:27 +00:00
d33291fcc4
used py error checking tools to fix some bugs & make pep8 corrections
2009-11-14 13:35:44 +00:00
047ee04418
Fix for import/export menus, hide collada if it is not compiled in.
2009-11-11 19:12:52 +00:00
4e61f8a836
pep8 whitespace commit
...
bpy/rna api (no functionality change, just move getting the srna py base into a function)
2009-11-07 22:07:46 +00:00
de7da7c779
Bugfixes for Adding Objects:
...
* Auto enter EditMode for adding Armatures was broken
* Adding a camera no longer tries to enter editmode, even though that's invalid...
2009-11-04 09:45:37 +00:00
cbc5a78576
whitespace commit, (was some tabs mixed with spaces too)
2009-11-03 07:23:02 +00:00
29aea786cb
Added proper icon for full screen mode. Would be nice to have this button eventually be right-aligned.
2009-11-01 18:05:01 +00:00
9ea292290b
Correct GPL license header for all python scripts
2009-11-01 15:21:20 +00:00
d964808846
made scripts pass the pep8 test (though not fully pep8 yet)
...
added comment in header to know if a script has been converted or not.
2009-10-31 23:35:56 +00:00
41c0236aaa
GPL2 header from firebird (without disclaimer), notice theres no copyright attributed and only the GPLv2 (without the v2 or later clause).
...
Contributors list isnt used much in our C code so probably its easier if people just use svn blame for this.
Can change if this isnt acceptable but I guessed people didnt care so much since most scripts had no header.
2009-10-31 20:16:59 +00:00
f9b19d54b5
tabs to spaces, remove trailing white space. (apart of pep8)
...
didnt do "release/scripts/io" since some exporters cant be auto converted
2009-10-31 19:31:45 +00:00
af72bb50ae
improved class validation, variables defined by the rna interface as non-optional could fail silently when absent in the class. Set these to PROP_REGISTER_OPTIONAL and raise an error when others are not found.
...
last commit broke povray too.
2009-10-31 18:48:58 +00:00
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
31258507d0
Merge of the COLLADA GSoC branch into trunk.
...
COLLADA code is disabled by default (it has dependencies requiring manual install).
SCons and CMake builds are supported on Windows and Linux, no Mac building yet. More on building COLLADA code: http://wiki.blender.org/index.php/User:Kazanbas/Building_Collada_Branch .
The detailed command log of the merge (can be useful for educational purposes):
branch=https://svn.blender.org/svnroot/bf-blender/branches/soc-2009-chingachgook
# collada code
svn copy $branch/source/blender/collada source/blender/collada
# operator
svn merge -c 20401,20955,21077,24077,24079 $branch/source/blender/windowmanager/intern/wm_operators.c source/blender/windowmanager/intern/wm_operators.c
# menu
svn merge -c 24079 $branch/release/scripts/ui/space_info.py release/scripts/ui/space_info.py
# scons
svn merge -c 20398 $branch/source/blender/SConscript source/blender/SConscript
svn merge -c 20398,20691,20955,22726 $branch/tools/btools.py tools/btools.py
svn merge -c 20691,20955,22726 $branch/tools/Blender.py tools/Blender.py
svn merge -c 20398,20692,20955 $branch/config/linux2-config.py config/linux2-config.py
svn merge -c 22726 $branch/config/win64-vc-config.py config/win64-vc-config.py
svn merge -c 22726 $branch/config/win32-vc-config.py config/win32-vc-config.py
svn merge -c 24077 $branch/source/blender/windowmanager/SConscript source/blender/windowmanager/SConscript
# cmake
svn merge -c 23319,23905,24077,24158 $branch/CMakeLists.txt CMakeLists.txt
svn merge -c 23319 $branch/source/blender/CMakeLists.txt source/blender/CMakeLists.txt
svn merge -c 23319 $branch/source/creator/CMakeLists.txt source/creator/CMakeLists.txt
svn merge -c 23319 $branch/CMake/macros.cmake CMake/macros.cmake
svn merge -c 24077 $branch/source/blender/windowmanager/CMakeLists.txt source/blender/windowmanager/CMakeLists.txt
2009-10-30 15:35:50 +00:00