本文整理汇总了Python中MovieCamera.chooseHealShot方法的典型用法代码示例。如果您正苦于以下问题:Python MovieCamera.chooseHealShot方法的具体用法?Python MovieCamera.chooseHealShot怎么用?Python MovieCamera.chooseHealShot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MovieCamera
的用法示例。
在下文中一共展示了MovieCamera.chooseHealShot方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: doHeals
# 需要导入模块: import MovieCamera [as 别名]
# 或者: from MovieCamera import chooseHealShot [as 别名]
def doHeals(heals, hasInteractivePropHealBonus):
if len(heals) == 0:
return (None, None)
track = Sequence()
for h in heals:
ival = __doHealLevel(h, hasInteractivePropHealBonus)
if ival:
track.append(ival)
camDuration = track.getDuration()
camTrack = MovieCamera.chooseHealShot(heals, camDuration)
return (track, camTrack)
示例2: doPetSOSs
# 需要导入模块: import MovieCamera [as 别名]
# 或者: from MovieCamera import chooseHealShot [as 别名]
def doPetSOSs(PetSOSs):
if len(PetSOSs) == 0:
return (None, None)
track = Sequence()
textTrack = Sequence()
for p in PetSOSs:
ival = __doPetSOS(p)
if ival:
track.append(ival)
camDuration = track.getDuration()
camTrack = MovieCamera.chooseHealShot(PetSOSs, camDuration)
return (track, camTrack)
示例3: doHeals
# 需要导入模块: import MovieCamera [as 别名]
# 或者: from MovieCamera import chooseHealShot [as 别名]
def doHeals(heals):
if len(heals) == 0:
return (None, None)
ivals = []
for h in heals:
ival = __doHealLevel(h)
if ival:
ivals.append(ival)
mtrack = Track(ivals)
camDuration = mtrack.getDuration()
camTrack = MovieCamera.chooseHealShot(heals, camDuration)
return (mtrack, camTrack)
示例4: doNPCSOSs
# 需要导入模块: import MovieCamera [as 别名]
# 或者: from MovieCamera import chooseHealShot [as 别名]
def doNPCSOSs(NPCSOSs):
if len(NPCSOSs) == 0:
return (None, None)
track = Sequence()
textTrack = Sequence()
for n in NPCSOSs:
ival, textIval = __doNPCSOS(n)
if ival:
track.append(ival)
textTrack.append(textIval)
camDuration = track.getDuration()
if camDuration > 0.0:
camTrack = MovieCamera.chooseHealShot(NPCSOSs, camDuration)
else:
camTrack = Sequence()
return (track, Parallel(camTrack, textTrack))