Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjy Cook <benjycook@hotmail.com>2011-08-13 22:46:34 +0400
committerBenjy Cook <benjycook@hotmail.com>2011-08-13 22:46:34 +0400
commit2fef8f13f0189a8a748e6729081a4e5cb769314b (patch)
tree943b4093fe9716fb7871f0ffd4ba0c667a7dcc26 /release/scripts/startup
parentc86bcd50658f03215d93fe059d11b61401847b79 (diff)
Added argument to retargeting - step size. Allows retargeting every other 'step' frame, useful for previewing or faster retargeting.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r--release/scripts/startup/ui_mocap.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/ui_mocap.py b/release/scripts/startup/ui_mocap.py
index 0820b6183f4..9be26a3b2ff 100644
--- a/release/scripts/startup/ui_mocap.py
+++ b/release/scripts/startup/ui_mocap.py
@@ -161,6 +161,10 @@ bpy.types.Armature.stitch_settings = bpy.props.PointerProperty(type=AnimationSti
bpy.types.Armature.active_mocap = bpy.props.StringProperty(update=retarget.NLASystemInitialize)
bpy.types.Armature.mocapNLATracks = bpy.props.CollectionProperty(type=MocapNLATracks)
bpy.types.Armature.advancedRetarget = bpy.props.BoolProperty(default=False, update=advancedRetargetToggle)
+bpy.types.Armature.frameStep = smooth_out = bpy.props.IntProperty(name="Frame Skip",
+ default=1,
+ description="Amount of frames to skip - for previewing retargets quickly. 1 is fully sampled",
+ min=1)
#Update function for IK functionality. Is called when IK prop checkboxes are toggled.
@@ -301,6 +305,7 @@ class MocapPanel(bpy.types.Panel):
mapRow.operator("mocap.loadmapping", text='Load mapping')
self.layout.prop(data=performer_obj.animation_data.action, property='name', text='Action Name')
self.layout.prop(enduser_arm, "advancedRetarget", text='Advanced Retarget')
+ self.layout.prop(enduser_arm, "frameStep")
self.layout.operator("mocap.retarget", text='RETARGET!')