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
5092eeaa
Commit
5092eeaa
authored
12 years ago
by
Bastien Montagne
Browse files
Options
Downloads
Patches
Plain Diff
Spell and typo fixes.
parent
94e23455
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
add_curve_ivygen.py
+3
-3
3 additions, 3 deletions
add_curve_ivygen.py
io_mesh_ply/__init__.py
+2
-2
2 additions, 2 deletions
io_mesh_ply/__init__.py
mocap/__init__.py
+4
-4
4 additions, 4 deletions
mocap/__init__.py
with
9 additions
and
9 deletions
add_curve_ivygen.py
+
3
−
3
View file @
5092eeaa
...
...
@@ -109,7 +109,7 @@ def createIvyGeometry(IVY, growLeaves):
node
=
root
.
ivyNodes
[
i
]
nodeNext
=
root
.
ivyNodes
[
i
+
1
]
# Find the weight and normali
s
e the smooth adhesion vector
# Find the weight and normali
z
e the smooth adhesion vector
weight
=
pow
(
node
.
length
*
prevIvyLength
,
0.7
)
# Calculate the ground ivy and the new weight
...
...
@@ -276,7 +276,7 @@ class Ivy:
self
.
maxAdhesionDistance
=
maxAdhesionDistance
self
.
maxLength
=
0.0
# Normali
s
e all the weights only on intialisation
# Normali
z
e all the weights only on intialisation
sum
=
self
.
primaryWeight
+
self
.
randomWeight
+
self
.
adhesionWeight
self
.
primaryWeight
/=
sum
self
.
randomWeight
/=
sum
...
...
@@ -312,7 +312,7 @@ class Ivy:
# Set the primary direction from the last node
primaryVector
=
prevIvy
.
primaryDir
# Make the random vector and normali
s
e
# Make the random vector and normali
z
e
randomVector
=
Vector
((
rand_val
()
-
0.5
,
rand_val
()
-
0.5
,
rand_val
()
-
0.5
))
+
Vector
((
0
,
0
,
0.2
))
randomVector
.
normalize
()
...
...
This diff is collapsed.
Click to expand it.
io_mesh_ply/__init__.py
+
2
−
2
View file @
5092eeaa
...
...
@@ -81,8 +81,8 @@ class ImportPLY(bpy.types.Operator, ImportHelper):
class
ExportPLY
(
bpy
.
types
.
Operator
,
ExportHelper
):
"""
Export a single object as a
s
tanford PLY with normals,
"""
\
"""
colo
u
rs and texture coordinates
"""
"""
Export a single object as a
S
tanford PLY with normals,
"""
\
"""
colors and texture coordinates
"""
bl_idname
=
"
export_mesh.ply
"
bl_label
=
"
Export PLY
"
...
...
This diff is collapsed.
Click to expand it.
mocap/__init__.py
+
4
−
4
View file @
5092eeaa
...
...
@@ -433,7 +433,7 @@ class OBJECT_OT_RetargetButton(bpy.types.Operator):
# has an action for retargeting
"""
Retarget animation from selected armature to active armature
"""
bl_idname
=
"
mocap.retarget
"
bl_label
=
"
Retarget active action from Performer to Enduser
"
bl_label
=
"
Retarget active action from Performer to End
-
user
"
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
}
def
execute
(
self
,
context
):
...
...
@@ -471,7 +471,7 @@ class OBJECT_OT_SaveMappingButton(bpy.types.Operator):
#Operator for saving mapping to enduser armature
"""
Save mapping to active armature (for future retargets)
"""
bl_idname
=
"
mocap.savemapping
"
bl_label
=
"
Save user generated mapping from Performer to Enduser
"
bl_label
=
"
Save user generated mapping from Performer to End
-
user
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
@@ -494,7 +494,7 @@ class OBJECT_OT_LoadMappingButton(bpy.types.Operator):
"""
Load saved mapping from active armature
"""
#Operator for loading mapping to enduser armature
bl_idname
=
"
mocap.loadmapping
"
bl_label
=
"
Load user generated mapping from Performer to Enduser
"
bl_label
=
"
Load user generated mapping from Performer to End
-
user
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
@@ -780,7 +780,7 @@ class OBJECT_OT_GuessHierachyMapping(bpy.types.Operator):
#Operator which calls heurisitic function to guess mapping between 2 armatures
"""
Attempt to auto figure out hierarchy mapping
"""
bl_idname
=
"
mocap.guessmapping
"
bl_label
=
"
Attemp to auto figure out hierarchy mapping
"
bl_label
=
"
Attemp
t
to auto figure out hierarchy mapping
"
def
execute
(
self
,
context
):
enduser_obj
=
bpy
.
context
.
active_object
...
...
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