Message 1 of 2
How not to merge takes while merging two files in python
Not applicable
06-15-2015
09:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to merge a rig file to an animation file.
However, I want not to merge the takes of the rig file. In GUI, I can just uncheck the takes and merge the file, but I am having problem do the same in python.
I got following code:
#Open animation file first lFbxOptions = FBFbxOptions(True) FBApplication().FileOpen(AnimationFile,False,lFbxOptions) #Setup options for merge FbxMergeOptions = FBFbxOptions(True) FbxMergeOptions.SetAll(FBElementAction.kFBElementActionMerge, True); FBApplication().FileMerge(rigFile, False, FbxMergeOptions)
I got some suggestion in the forum to unselect the takes using following code:
for takeIndex in range( 0, FbxMergeOptions.GetTakeCount() ):
FbxMergeOptions.SetTakeSelect( takeIndex, False )But GetTakeCount() is always returning 0.
So what is the correct way to unselect the takes while merging a second file using python script?
Thanks.