PDA

View Full Version : Animation Plot Selected command


locust79
05-11-2010, 07:36 AM
I want to plot Propertie by command.
In the GUI I would go through Animation/Plot Selected (All Properties). This is what I am looking to do with Python.
But I couldn't find.
If you know something let me know

_stev_
05-12-2010, 06:03 PM
It is a method of the FBTake object:


lTake = FBSystem().CurrentTake
lTake.PlotTakeOnSelected( FBTime(0,0,0,1) )




Stev

locust79
05-17-2010, 01:10 AM
Thank you
I add some script.
This script will plot every Take
#--------- blog.naver.com/locust79
#--------- How to use
#--------- 1. select prop
#--------- 2. Excute selectedPlot
#--------- *** Note ***
#--------- You must select prop what you want to plot
from pyfbsdk import *
#------------------------------------------------------
#splitNumber
#Name : string
#FindString : string
#return : int
#--------- number of order
#------------------------------------------------------
def splitNumber(Name,FindString):
NameSize=len(Name)
for i in range (0,NameSize,1):
if Name[i]==FindString:
#print Name[i]
return i
#------------------------------------------------------
#split
#Name : string
#FindString : string
#return : string
#Name=split('Bas_Char','_')
#print Name
#--------- splited name
#------------------------------------------------------
def split(Name,FindString):
ComName=''
Number=splitNumber(Name,FindString)
for i in range(0,Number,1):
ComName = ComName+Name[i]
return ComName
#------------------------------------------------------
#BooExPlotCurrentTake
#--------- plot each take
#------------------------------------------------------
def BooExPlotSelectProp():
ExListSystem = FBSystem()
#--------- get name of take's
ExListTakeNames = ExListSystem.Takes
#print ExListTakeNames[0].Name
#--------- get name of actor's name
ExListActorNames = ExListSystem.Scene.Actors
#print ExListActorNames[0].Name
#--------- get name of characters
ExListCharacters = ExListSystem.Scene.Characters
#print ExListCharacters[0].Name
for i in range (0,len(ExListSystem.Scene.Takes),1):
ExListTakeNames[i].PlotTakeOnSelected(FBTime(0,0,0,1))
ExListSystem.CurrentTake = ExListSystem.Scene.Takes[i]
BooExPlotSelectProp()
# Cleanup of imported modules.
del(split, splitNumber,BooExPlotSelectProp)

CGTalk Moderation
05-17-2010, 01:10 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.