Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
2a79b350
Commit
2a79b350
authored
13 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
reduce stl docstrings and keep chan exporter pep8 (remove minor warnings at least)
parent
0660cc92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_anim_nuke_chan/import_nuke_chan.py
+3
-4
3 additions, 4 deletions
io_anim_nuke_chan/import_nuke_chan.py
io_mesh_stl/__init__.py
+1
-3
1 addition, 3 deletions
io_mesh_stl/__init__.py
with
4 additions
and
7 deletions
io_anim_nuke_chan/import_nuke_chan.py
+
3
−
4
View file @
2a79b350
...
@@ -59,9 +59,9 @@ def read_chan(context, filepath, z_up, rot_ord, sensor_width, sensor_height):
...
@@ -59,9 +59,9 @@ def read_chan(context, filepath, z_up, rot_ord, sensor_width, sensor_height):
translation_mat
=
Matrix
.
Translation
(
v_transl
)
translation_mat
=
Matrix
.
Translation
(
v_transl
)
translation_mat
.
to_4x4
()
translation_mat
.
to_4x4
()
# read the rotations, and set the rotation order basing on the
order
# read the rotations, and set the rotation order basing on the
# set during the export (it's not being saved in the chan
file
#
order
set during the export (it's not being saved in the chan
# you have to keep it noted somewhere
#
file
you have to keep it noted somewhere
# the actual objects rotation order doesn't matter since the
# the actual objects rotation order doesn't matter since the
# rotations are being extracted from the matrix afterwards
# rotations are being extracted from the matrix afterwards
e_rot
=
Euler
((
radians
(
float
(
data
[
4
])),
e_rot
=
Euler
((
radians
(
float
(
data
[
4
])),
...
@@ -100,7 +100,6 @@ def read_chan(context, filepath, z_up, rot_ord, sensor_width, sensor_height):
...
@@ -100,7 +100,6 @@ def read_chan(context, filepath, z_up, rot_ord, sensor_width, sensor_height):
obj
.
rotation_euler
=
trns
[
1
].
to_euler
(
obj
.
rotation_mode
)
obj
.
rotation_euler
=
trns
[
1
].
to_euler
(
obj
.
rotation_mode
)
obj
.
keyframe_insert
(
"
rotation_euler
"
)
obj
.
keyframe_insert
(
"
rotation_euler
"
)
# check if the object is camera and fov data is present
# check if the object is camera and fov data is present
if
camera
and
len
(
data
)
>
7
:
if
camera
and
len
(
data
)
>
7
:
camera
.
sensor_fit
=
'
HORIZONTAL
'
camera
.
sensor_fit
=
'
HORIZONTAL
'
...
...
This diff is collapsed.
Click to expand it.
io_mesh_stl/__init__.py
+
1
−
3
View file @
2a79b350
...
@@ -108,9 +108,7 @@ class ImportSTL(bpy.types.Operator, ImportHelper):
...
@@ -108,9 +108,7 @@ class ImportSTL(bpy.types.Operator, ImportHelper):
class
ExportSTL
(
bpy
.
types
.
Operator
,
ExportHelper
):
class
ExportSTL
(
bpy
.
types
.
Operator
,
ExportHelper
):
'''
'''
Save STL triangle mesh data from the active object
'''
Save STL triangle mesh data from the active object
'''
bl_idname
=
"
export_mesh.stl
"
bl_idname
=
"
export_mesh.stl
"
bl_label
=
"
Export STL
"
bl_label
=
"
Export STL
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment