andygraph opened this issue on Feb 10, 2014 · 55 posts
structure posted Sun, 30 March 2014 at 1:03 PM Forum Coordinator
def ActVisible(act,toggle,frame):
obj=''
scene.SetFrame(frame)
for frame in frames:
if act.Name().endswith(frame):
act.SetVisible(1)
else:
act.SetVisible(0)
for myfile in myfiles:
if myfile.endswith('.obj'):
cfile = os.path.join(sdir, myfile)
try:
ImportObj(cfile)
act = scene.CurrentActor()
act.SetName(myfile[:-4])
act.SetName(act.Name())+'%03d' % frame
ActVisible(act,1,0)
frame += 1
scene.SetFrame(frame)
ActVisible(act,1,frame)
if frame > 2:
scene.SetFrame(frame - 2)
ActVisible(act,0,frame)
scene.SetFrame(frame)
except:
Locked Out