Skip to content

Instantly share code, notes, and snippets.

@OmniZ3D
Created January 22, 2012 11:37
Show Gist options
  • Save OmniZ3D/1656666 to your computer and use it in GitHub Desktop.
Save OmniZ3D/1656666 to your computer and use it in GitHub Desktop.
MoBu: Copy keys to FBModel
from pyfbsdk import *
mySource = FBFindModelByName("cube_source")
myDestination = FBFindModelByName("cube_destination")
print mySource.Name,myDestination.Name
myDestination.Translation.GetAnimationNode().Nodes[0].FCurve = mySource.Translation.GetAnimationNode().Nodes[0].FCurve
myDestination.Translation.GetAnimationNode().Nodes[1].FCurve = mySource.Translation.GetAnimationNode().Nodes[1].FCurve
myDestination.Translation.GetAnimationNode().Nodes[2].FCurve = mySource.Translation.GetAnimationNode().Nodes[2].FCurve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment