Daniel Salazar
dbbd12d760
Randomize Transform op: Scale Even wasn't really working with objects
...
with an asymmetric starting scale. Handling of starting scale
values of 0 needs improvement, ie: default for delta transform
2010-12-15 10:59:45 +00:00
Daniel Salazar
eac46088e5
Randomize Transform operator:
...
Added support for working on delta transformations instead of plain
transform. this should help the fact that you cant randomize animated
objects (still need to check into that)
Removed minimun scale since it was not well done, need a stronger
version of this
2010-12-15 08:21:58 +00:00
Campbell Barton
aaf328dc78
remove redundant []'s for list comprehension's, py2.4+ supports this.
2010-09-19 07:07:14 +00:00
Campbell Barton
111965478a
replace self.properties.foo --> self.foo
2010-09-09 18:03:57 +00:00
Campbell Barton
115b256738
ran through pep8 checker
2010-09-07 15:17:42 +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
4cf697de89
- for BGE mouse and keyboard events use tuples rather then lists
...
- pep8 corrections
2010-04-17 19:05:53 +00:00
Campbell Barton
67cfc427ee
PyAPI
...
- added new mathutils.Color() type, use with rna so we can do for eg:
material.diffuse_color.r = 1.0
# also has hsv access
material.diffuse_color.s = 0.6
- made Mathutils and Geometry module names lowercase.
2010-04-11 14:22:27 +00:00
Campbell Barton
fbb8672da4
replace operator options bl_undo and bl_register with bl_options
...
eg.
bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'}
This didnt exist when operators were originally wrapped.
2010-03-01 00:03:51 +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
Daniel Salazar
bc5f81ee3c
Clean up of tooltips in py operators and better operator name for
...
randomize transform
2010-02-11 23:13:47 +00:00
Joshua Leung
3fb8939870
Patch/Bugfix #20997 : Recent commit to object_randomize_transform.py by Cam added some garbage to a variable name making the script fail
...
Patch by Daniel Salazar (ZanQdo)
2010-02-07 11:53:00 +00:00
Campbell Barton
039d087171
subtype support for properties in bpy.props.
2010-02-01 22:04:33 +00:00
Campbell Barton
9396bb2da9
- AIX ifdef's so windows works, cant test but this seems the most used define. might need to add to buildsystem config.
...
- transform default scale was too hight, calls to random were inconsistant. (fault of own modif's)
- cmake openal include was added twice on recent commit.
2010-01-19 15:57:02 +00:00
Campbell Barton
c02b26e463
convert rotations into radians (not scale)
2010-01-19 09:51:09 +00:00
Campbell Barton
8ae76d7249
pep8 compliance for Randomize objects loc/rot/scale.
...
- scale min -1 to 1 rather then -100 to 100
- default precision for float props to 2.
2010-01-19 09:36:40 +00:00
Campbell Barton
98312235b0
own error from changes to this script.
...
need to call random.uniform() even if its not used to give pradictable randomization.
2010-01-19 09:24:39 +00:00
Campbell Barton
849024df83
patch [ #20724 ] Randomize Loc Rot Size py operator for B2.5
...
written from scratch by Daniel Salazar (zanqdo). added own modifications.
New property type
bpy.props.FloatVectorProperty(), only difference with float is it takes a 'size' argument and optional 'default' sequence of floats.
moved bpy.props.* functions out of bpy_rna.c into their own C file.
2010-01-19 00:59:36 +00:00