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
a035dafd27
fix for error with text ui when there is no text loaded.
2010-01-20 17:41:41 +00:00
Dalai Felinto
690ad15099
Text Editor: Add an option "Tabs as Spaces".
...
So now tab is not ALWAYS converted to spaces.
This is stored by text datablock (what allows to do nice things in the future, as automatic check for the indentation type of the file).
Ideally we should redraw the other Text Editor windows after changing that (in case the same file is opened and the Property panel is also open). Not sure how to do that though.
I'm using TABSTOSPACES as the DEFINE flag because TABSASSPACES sounds too ugly.
(also fix for interface divisor bug)
2010-01-14 21:30:51 +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
648122b1a2
String fix and a bunch of PEP8 issues I had collected in the meanwhile.
2009-12-04 17:54:48 +00:00
18fb6d5e43
Added Toggle Full Screen and Duplicate Area to the menus of all the main spaces in Blender
2009-12-03 16:28:50 +00:00
8b897879cd
pep8 cleanup in ui and op dirs, added popup to select pattern
2009-11-28 23:37: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
1d7e4e84d0
fix for py error when no text is displayed
2009-11-22 15:15:11 +00:00
771406df94
- hide members of bpy from dir() and autocomp.
...
- path functions bpy.utils.script_paths(), bpy.utils_preset_paths(subdir)
- further simplified presets, use a generic draw function for preset menus and define the preset subdir and operator in the class
2009-11-22 11:23:19 +00:00
5e7debcecf
render presets, select from a directory, button to add own presets
2009-11-21 21:39:20 +00:00
854cc87a80
option to have scripts run on startup for per blendfile UI's
2009-11-20 15:01:09 +00:00
cbc5a78576
whitespace commit, (was some tabs mixed with spaces too)
2009-11-03 07:23:02 +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
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
6f1e9a843e
Script templates, including game logic scripts from 2.4x and new operator template.
...
Files copied into scripts/templates will automatically appear in the menu.
the operator template is a bit rough but a start.
2009-10-29 11:26:44 +00:00
c4067b62d1
Durian text editor requests:
...
-Added Run Script button in header
-Added hotkey for Line Select (Ctrl-Shift-A)
2009-10-26 16:48:23 +00:00
5c867406aa
menus are now global (like operators), so for eg, the info add menu and the 3D add menu can be shared.
2009-10-08 19:06:32 +00:00
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