Campbell Barton
076171c5fa
fix [ #25757 ] Torus script uses radians for rotation in panel
2011-01-24 15:25:03 +00:00
Campbell Barton
8cf1184c04
bad spelling; 'indicies' --> 'indices'
2011-01-18 01:58:19 +00:00
Campbell Barton
fd7b6519fd
move to bf-extensions
2011-01-15 19:36:01 +00:00
Campbell Barton
cae4e92ce8
bugfix [ #25640 ] Cannot edit custom property values in it's popup window
2011-01-15 19:15:35 +00:00
Campbell Barton
c69ecd3f90
moving io scripts to 'addons' dir in extensions svn, leaving MDD format since I dont maintain this.
2011-01-14 17:28:10 +00:00
Campbell Barton
9d8d25cc34
add icons to show community vs official scripts as well as buttons to filter by support level (currently all scripts default to community)
...
note: we need better icons for this.
also formatting edit for ply import.
2011-01-14 16:49:43 +00:00
Campbell Barton
3bf46c57c9
add ply import into the file menu.
2011-01-14 00:23:21 +00:00
Campbell Barton
ac5b048e99
initial 2.5x api port. basically working.
2011-01-14 00:06:43 +00:00
Campbell Barton
7c7b31cf84
python3 updates:
2011-01-13 23:38:25 +00:00
Campbell Barton
de5d321e71
pep8 cleanup.
2011-01-13 23:31:04 +00:00
Campbell Barton
a1850ed876
ply importer from 2.4x, no changes made.
...
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/ply_import.py release/scripts/op/io_mesh_ply/import_ply.py
2011-01-13 23:28:36 +00:00
Campbell Barton
9146ca06dd
pep8 corrections.
2011-01-13 23:00:51 +00:00
Campbell Barton
29338aa2b3
fix for x3d importer
...
- files blender exports (blender uses unusual array formatting).
- scene needed to be rotated on import.
- lamp spot size was half as big as it needed to be.
x3d export typo broke image export.
2011-01-13 22:44:47 +00:00
Campbell Barton
6a9d93a339
fix for NULL missing pointer check, reported on IRC by admix.
...
also rename BVH class for consistency.
2011-01-13 05:05:10 +00:00
Campbell Barton
0384be9644
bugfix [ #25595 ] Adding Torus when in edit mode strange behavior.
...
also added Align View option and made local view cursor work.
2011-01-12 15:45:00 +00:00
Campbell Barton
792bf1535f
add x3d/vrml importer into the menu.
2011-01-12 08:20:09 +00:00
Campbell Barton
ac64114d1b
vrml/x3d import
...
now its basically usable, next step is to add menu item.
update for changes in mathutils api.
- fix radians/degrees usage
- correct matrix multiplication order
- primitives were being imported twice the size they should be.
- uv transformations were not working.
2011-01-12 08:02:27 +00:00
Campbell Barton
8397e3e476
continued x3d/vrml import update from 2.4x version
...
- parsed over 1000 vrml test files
- animataion import works again
- importing curves works again
2011-01-11 13:42:22 +00:00
Campbell Barton
22577d98c9
initial x3d/vrml importer port from 2.4x.
...
some files import now.
- no animation support yet
- no rad/deg conversion changes from 2.4x
- matrix multiplication still needs switching.
2011-01-11 02:49:01 +00:00
Campbell Barton
35e68e9785
- bpy.data.lamps.new() now takes a type argument since lamp type also sets class type this avoids needing to use ugly lamp.type_recast() after changing type.
...
- default vertex color layer name was UTTex when added from python.
2011-01-11 02:30:01 +00:00
Campbell Barton
bfcea85c6f
x3d import now passes pep8 checker
2011-01-10 13:56:14 +00:00
Campbell Barton
ff204a1e4d
x3d import tabs -> spaces
2011-01-10 13:16:04 +00:00
Campbell Barton
f5c203af73
copy x3d/vrml importer from blender 2.4x.
...
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/import_web3d.py release/scripts/op/io_scene_x3d/import_x3d.py
2011-01-10 13:11:56 +00:00
Campbell Barton
7bc46973d2
script now passes pep8 checking tool.
2011-01-09 17:35:29 +00:00
Campbell Barton
d9c24f7e7c
patch from Andrea Rugliancich, dont export locations for bones which are connected to their parents.
...
note, we could be smarter about not exporting animation channels which are not needed.
2011-01-09 16:46:01 +00:00
Campbell Barton
9cb71d1159
update for change to Matrix class.
2011-01-09 15:09:18 +00:00
Campbell Barton
e14247d079
bugfix [ #25522 ] Export to X3D is missing ImageTexture and TextureTransform for plane with image texture
...
- tile option was broken.
- added basic export of texture/mtex transformation.
- recent mesh update broke material/image export with no UVs
2011-01-07 02:39:48 +00:00
Campbell Barton
149955b3e2
print_m3/m4 didnt use const char *, which gave an errror with passing strings & pedantic warnings.
...
also minor rename in bvh export
2011-01-06 13:49:09 +00:00
Campbell Barton
3ecacb5654
fix [ #25507 ] Select Interior faces in edit mode gives python error
2011-01-06 05:45:41 +00:00
Campbell Barton
9b8cbe47bd
error in recent x3d commit using undefined autosmooth var.
2011-01-06 01:45:25 +00:00
Campbell Barton
01b7299bdb
bugfix [ #25393 ] Export to X3D does not provide color field in indexedFaceSet for colored cube
...
mostly rewrote mesh export and added support for multiple materials/images, using texface or material images depending on the materials TexFace option.
2011-01-05 14:57:57 +00:00
Campbell Barton
998b789138
use x3d Group's rather then IndexedFaceSets to re-use objects.
2011-01-05 07:14:26 +00:00
Campbell Barton
2028fb45ee
X3D export
...
- last commit broke export
- more removal of not used functions.
- use twoside mesh setting rather then face flag.
- simplify transformations.
2011-01-05 06:58:52 +00:00
Campbell Barton
2225db0025
re-arrange x3d mesh export funcs in preparation for fixing [ #25393 ]
2011-01-05 06:29:43 +00:00
Campbell Barton
14880d0713
X3D Export,
...
- mesh creaseAngle was being exported as degrees, should be radians.
- remove unused vars & code.
- indenting was using a for loop, can just multiply a string instead.
2011-01-05 05:53:41 +00:00
Campbell Barton
370adc51ff
py api function to tag all ID blocks, was available in 2.4x as.
...
bpy.data.meshes.tag = True
But this was only useful for setting so make it a function for 2.5x.
bpy.data.objects.tag(False)
X3D: use tagging rather then a name dictionary, this fixes a bug where library name overlaps could mix up names.
2011-01-05 05:33:27 +00:00
Campbell Barton
d387c19444
pep8 cleanup.
2011-01-05 03:22:46 +00:00
Campbell Barton
231f3a4e2e
fix [ #25388 ] Export to X3D generates texture fields in X3D file for objects
...
use vertex color paint setting to export vertex colors when a material is assigned.
2011-01-04 15:25:12 +00:00
Campbell Barton
e86a489327
Ported back import BVH as Empties, uses delta transformations.
...
& small pep8 changes.
2011-01-03 16:22:30 +00:00
Campbell Barton
35422ac536
rna/api
...
move Object.update(...) to ID.update(). since depsgraph update function can now be called on ID types.
also changed how update flags work.
obj.update(scene, 1, 1, 1)
... is now
obj.update({'OBJECT', 'DATA', 'TIME'})
Don't pass scene anymore. This was used for recalculating text but I think this is better dont in a different function.
2011-01-03 09:09:30 +00:00
Campbell Barton
dacdfbe6f3
recent change to keyframe menu broke BVH import, now don't use the operator at all, instead assign the action manually.
...
Also added bpy.path.display_name_from_filepath(), since filepaths are not ensured to be utf8.
same as calling: os.path.splitext(os.path.basename(name))[0].encode("utf8", "replace").decode("utf8")
2011-01-03 08:28:22 +00:00
Campbell Barton
1306a38133
fix for own error in recent commit.
2011-01-03 07:07:18 +00:00
Campbell Barton
a7ceeafd71
- correct typos in comments.
...
- move boxpack struct out of the public header.
2011-01-02 11:06:50 +00:00
Campbell Barton
f101e59e09
python api: rna array slices now return tuples rather then lists (fits with recent change made to mathutils).
...
minor improvements/cleanup to exporters.
2011-01-02 09:54:44 +00:00
Campbell Barton
129b6190ed
geometry module
...
- rename functions from camel case.
- added docs for undocumented methods.
- minor functional changes with exceptions and accepting 3d/4d vectors where it makes no difference.
Renamed:
- geometry.Intersect -> intersect_ray_tri
- geometry.ClosestPointOnLine -> intersect_point_line
- geometry.PointInTriangle2D -> intersect_point_tri_2d
- geometry.PointInQuad2D -> intersect_point_quad_2d
- geometry.LineIntersect -> intersect_line_line
- geometry.LineIntersect2D -> intersect_line_line_2d
- geometry.BezierInterp -> interpolate_bezier
- geometry.TriangleArea -> area_tri
- geometry.QuadNormal, TriangleNormal -> normal
- geometry.PolyFill -> tesselate_polygon
- geometry.BoxPack2D -> box_pack_2d
- geometry.BarycentricTransform -> barycentric_transform
2011-01-02 02:11:38 +00:00
Campbell Barton
7040c89af0
BVH Importing native order eulers was broken, simplify conversion between rotation orders.
2011-01-01 13:20:35 +00:00
Campbell Barton
e1f6dc5f73
bvh export
...
- write compatible eulers (no jumping as eulers change).
- write FPS.
- correct poll function incase bvh export is called without an armature.
2011-01-01 10:38:28 +00:00
Campbell Barton
f932371d1e
added bvh export operator & menu item, now user accessible.
2011-01-01 09:44:13 +00:00
Campbell Barton
631745ab9b
bvh export now works correctly with matrix multiplications and rad -> deg.
2011-01-01 08:57:09 +00:00
Campbell Barton
e98559fc12
pep8 cleanup
2011-01-01 08:44:17 +00:00