Brecht Van Lommel
2ac65f6153
UI: new icon set by Andrzej Ambroz.
...
This is a monochrome icon set, with a more modern look and icons for
various features that did not have a proper icon before.
2018-10-08 19:46:00 +02:00
Campbell Barton
d3a72033f6
RNA: UILayout.split(..) 'percentage' to 'factor'
...
Misleading name since it's between 0..1.
Use as a keyword argument to prepare for keyword only args.
Also document that leaving unset has special behavior.
2018-08-28 12:50:11 +10:00
Campbell Barton
e9fb2feb2e
UI: text keyword argument to label
...
Prepare for keyword only args
2018-08-28 12:34:51 +10:00
Campbell Barton
9df1e54079
Cleanup: style
2018-07-19 16:06:37 +10:00
Vuk Gardašević
84d4037363
UI: Single-column and flow layout for Scene properties
...
See D3532
2018-07-17 12:17:42 +02:00
Brecht Van Lommel
dc00d66c89
UI: only show API defined custom properties when Developer Extras is on.
...
These are intended to behave just like any other builting property, so
no to always show them in the Custom Properties panels for regular users.
2018-07-13 18:21:58 +02:00
Bastien Montagne
42c8d93c5f
Fix 'API defined' ID properties still having 'remove' button in UI.
...
We could not edit them, but still could delete them, which makes no
sense, API-defined properties are similar to class members, removing
them from single instances is pure garbage. And it was broken anyway.
Found by @a.romanov while checking on T51198, thanks.
2017-04-19 09:54:47 +02:00
Campbell Barton
a149a6784b
Fix T46891: Error removing PropertyGroup
2015-11-30 11:03:49 +11:00
Campbell Barton
0d568e4186
Fix T46048: Custom properties UI redraw issue
...
Adding/removing custom properties didn't refresh elsewhere in the UI.
2015-09-11 04:29:31 +10:00
Campbell Barton
1c329af74c
Fix T44026: ID prop delete leaves names in _RNA_UI
2015-03-26 00:12:28 +11:00
Campbell Barton
7095f47665
cleanup: pep8
...
also remove empty class parenthesis
2015-01-29 15:35:06 +11:00
Campbell Barton
200dd87de1
Cleanup: pep8 & redundant vars
2014-07-22 12:03:15 +10:00
Bastien Montagne
553264ff8e
Fix T40520: Properties panel in properties region in 3D view does not go away.
...
Ignore '_RNA_UI' IDP...
2014-06-06 14:50:55 +02:00
Campbell Barton
bb62f9a582
Fix T38778: Properties from bpy.props could be edited as custom props
2014-02-25 17:01:46 +11:00
Campbell Barton
18f6bb04fa
Fix for custom property editor when property id's contained quotes
...
Adds bpy.utils.escape_identifier()
2014-02-25 16:19:57 +11:00
Bastien Montagne
207dca55f4
And more UI messages issues fixing... Thanks again to Gabriel Gazzán and Leon Cheung!
2013-02-15 18:19:20 +00:00
Campbell Barton
d26c063121
disable translations for some python buttons.
2013-02-08 16:41:02 +00:00
Campbell Barton
4544c234f5
fix [ #29950 ] Linked proxy armature object properties can't be edited
2013-01-23 06:09:53 +00:00
Campbell Barton
a49e80c48a
use props
all over for operator properties vars
2012-01-01 13:09:58 +00:00
Campbell Barton
b62a956cc8
cleanup for python scripts - unused vars and imports
2011-07-10 12:51:37 +00:00
Campbell Barton
7cbc4c0dd7
IDProperty python module update
...
- add support for IDProp array slicing, but not resizing.
- rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally).
- rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively.
- remove 'len' array attribute, calling len(array) is fine.
2011-06-17 05:45:46 +00:00
Campbell Barton
7f3fe8a2df
pep8 cleanup
2011-01-01 07:20:34 +00:00
Campbell Barton
c2c71e59ed
fix for own error [ #25299 ] custom properties not showing in viedw3d panel
...
error made when fixing id pinning, for non-properties space.
2010-12-19 13:04:14 +00:00
Campbell Barton
676d795d7e
bugfix [ #25240 ] Custom properties panel on pinned data fail.
2010-12-17 10:33:28 +00:00
Campbell Barton
868fdd80a2
use is rather then == when comparing against None.
2010-09-18 10:43:32 +00:00
Campbell Barton
115b256738
ran through pep8 checker
2010-09-07 15:17:42 +00:00
Campbell Barton
0d12c77097
bugfix [ #23635 ] property limits don't work when added via scripting\
...
also fix for bug where soft limits could be greater then hard limits with bpy.props.* functions.
2010-09-02 14:43:22 +00:00
Campbell Barton
b0b787ef38
bugfix [ #23534 ] Custom Properties not showing in OBJECT panel
2010-08-27 06:11:42 +00:00
Campbell Barton
e7c4a0d53b
rna api - replace panel properties bl_default_closed and bl_show_header with bl_options which has 2 flags: 'DEFAULT_CLOSED' and 'HIDE_HEADER'.
...
this matches operators which also uses bl_options like this
2010-08-26 01:05:37 +00:00
Campbell Barton
a6f13f9d7b
poll() as a python '@staticmethod' was too limiting and didnt allow useful base class poll functions in many cases.
...
now rna functions that dont have a 'self' are automatically assumed '@classmethods'.
de-duplicated poll functions and made some minor tweaks too.
2010-08-09 01:37:09 +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
c2f36a4d6a
naming changes
...
path -> filepath (for rna and operators, as agreed on with elubie)
path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-14 03:52:10 +00:00
Matt Ebb
413c4c91ca
Fix [ #22296 ] Wrong Operator Names?
2010-05-10 01:49:35 +00:00
Campbell Barton
3dd3e7321e
store vars in py operators in the instance rather then the operator classes.
2010-02-27 14:54:45 +00:00
Campbell Barton
03590eb8a9
allow cloth sim for linked duplicates, not many people use this but we need for using hair on linked characters, if there are bugs with this we'll need to fix so enabling for now with comments that its experemental.
2010-02-24 15:35:15 +00:00
Campbell Barton
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
Campbell Barton
039d087171
subtype support for properties in bpy.props.
2010-02-01 22:04:33 +00:00
Campbell Barton
95069f2909
pep8 changes
2010-01-31 14:46:28 +00:00
Campbell Barton
b8ca67ca33
custom properties panels for most ID types. use subclassing to keep panel UI definitions minimal
2010-01-08 08:54:41 +00:00
Campbell Barton
be67970303
fix for [ #20244 ] importing .obj without "Object" option checked crashes blender
2009-12-25 20:40:00 +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
Campbell Barton
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
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
f4fa39a551
white space commit (spaces -> tabs and clearing whitespace)
2009-12-08 07:11:43 +00:00
Campbell Barton
750764f411
rna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when converted into a PyObject
...
only used by wm.invoke_props_popup() currently
2009-12-07 00:16:57 +00:00
Campbell Barton
5ebe54f470
pep8 edits and fix some warnings
2009-12-05 22:03:07 +00:00
Guillermo S. Romero
648122b1a2
String fix and a bunch of PEP8 issues I had collected in the meanwhile.
2009-12-04 17:54:48 +00:00
Campbell Barton
727d9bb059
rig-generation from metadata, the idea is to input a simple rig with metadata matching preset definitions
...
these are applied by adding constraints, drivers, control bones etc. making it possible to re-apply changes & improvements to many rigs at once.
testcase makes a finger rig (like in BBB) from 3 bones, the base tagged with an id property "type":"finger".
still missing is a way to update the driver dep's
also fixed an error in the property UI when the active bone is not on the active layer.
2009-11-24 00:02:21 +00:00
Campbell Barton
e968017951
- new pyrna api functions srna & prop path_to_id(), useful when setting driver target paths.
...
This means you can have a pose bone for eg and get the path...
pose.bones["Bone"]
uses rna internal functions, so will work for sequence strips etc.
- StructRNA.get(), used for getting ID props without exceptions...
val = C.object["someKey"]
or..
val = C.object.get("someKey", "defaultValue") # wont raise an error
- change rna property for testing if rna props are editable, test the flag rather then calling the function since the function depends on blenders state.
- fix a python exception with the ID-Property popup UI (when editing in more then 1 step)
2009-11-23 23:17:23 +00:00