Campbell Barton
6a4b9298c8
patch [ #23968 ] filter_filetypes property to allow operators to filter by file extensions in the file selector
...
modified the patch to store the string internally rather then an array of allocated string pointers, less hassle with memory allocation.
changed to use fnmatch, so *.foo is needed (not .foo as with the patch)
2010-09-24 07:05:43 +00:00
Campbell Barton
115b256738
ran through pep8 checker
2010-09-07 15:17:42 +00:00
Campbell Barton
5036a9d20c
use mix-in classes for import export operators, these define the filepath property and invoke function at the moment.
2010-09-01 02:25:49 +00:00
Campbell Barton
48e34b9956
- pythons 'del somevalue.attr' could crash when used with the rna api (reported by Luca)
...
eg:
bpy.context.StringProperty(attr='myprop'); del bpy.context.myprop
- made rna StringProperty/PointerProperty & similar into class methods.
- file selector hide option was inverted
2010-08-24 02:12:09 +00:00
Campbell Barton
7da5d9faec
rna renaming, still only adjusting properties that wont be animated (at least its very unlikely).
2010-08-18 07:14:10 +00:00
Campbell Barton
3bd039eff9
apply rna rename most of the show_*, names.
2010-08-17 17:03:52 +00:00
Martin Poirier
5b345524ea
RNA Types metaclass registration
...
See mailing list posts for details [1][2][3]
Addons still need to be fixed; Campbell said he'd do it today.
See any of the py files (outside netrender) in this commit for how to do it (it's rather simple).
[1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html
[2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html
[3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-08-02 02:55:12 +00:00
Campbell Barton
97bdfe6f1b
pep8 cleanup + correction for external player operator return value.
2010-02-22 23:32:58 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
081c1205a3
correct fsf address
2010-02-12 13:34:04 +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
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
cbc5a78576
whitespace commit, (was some tabs mixed with spaces too)
2009-11-03 07:23:02 +00:00
Martin Poirier
9ea292290b
Correct GPL license header for all python scripts
2009-11-01 15:21:20 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
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
c0a785a23e
* Some Whitespace and small code-guideline cleanup.
2009-10-29 23:46:12 +00:00
William Reynish
d80074f18c
Updated icons. Changed some icon names that weren't blank.
2009-10-15 13:47:18 +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