|
Hi everybody,
i have a movie clip, that I want to split. After the splitting I change the start and end frame in the timelime. So only the splitted MovieClip plays in the timeline. The next step is to plot the current timeline after that i would like to export the current timeperiod in the timeline as a fbx file.
Problem:
When I open the exported file the timeline shows me the whole timeperiod and not the timeperiod from the splitted clip.
Example:
the whole clip has 1500 frames (storymode),
i split it into 0-600, 601-800 and 801-1500
i would like to export the Frames 601-800
now i changed the timeline with
FBPlayerControl().LoopStart = FBTime(0,0,0,601) FBPlayerControl().LoopStop = FBTime(0,0,0,800)
after i changing the timeline i would like to make a new take and delete all other takes
sceneList = FBSystem().Scene
takeList = sceneList.Takes
takeList[0].CopyTake("nTake")
sceneList = "" takeList = "" sceneList = FBSystem().Scene
takeList = sceneList.Takes
for take in takeList:
if take.Name <> "nTake":
take.FBDelete()
sceneList = FBSystem().Scene
takeList = sceneList.Takes
for take in takeList:
if take.Name == "nTake":
lenght = int(self.stop) - int(self.start)
FBSystem().CurrentTake = take
FBSystem().CurrentTake.PlotTakeOnSelected(FBTime(0,0,0,int(lenght)))
now i would like to save the selecet model
mod = FBFindModelByName(parent) childlist = FBModelList() FBGetSelectedModels(childlist, mod, True) FBGetSelectedModels(childlist, mod, False)
for child in childlist:
child.Selected = True
lMgr = FBFbxManager()
if lMgr.SaveBegin(exportFileName):
# Save only selected files, in ASCII format so we can have a look
# at the file.
lMgr.UseASCIIFormat = True
lMgr.Selected = True
# Now do the actual save.
if not lMgr.Save():
print 'Problem saving the file: Save()'
else:
print 'Problem saving the file: SaveBegin()'
if not lMgr.SaveEnd():
print 'Problem saving the file: SaveEnd()'
Result:
the export file has a timeline wiht the whole 1500 frames and only frame 601-800 has keys.
But i would like to have only a timeline with 0-199 Frames.......
I hope somebody can help me!
|