def newAnimation(name, inputText): # create a new getItem if(name == 'Previs'): newItem.createNewPrevisFolders(name, inputText) else: newItem.createNewShotFolders(name, inputText) newItem.copyTemplateAnimation(inputText) return
def newAnimation(name, inputText): # create a new getItem if (name == 'Previs'): newItem.createNewPrevisFolders(name, inputText) else: newItem.createNewShotFolders(name, inputText) newItem.copyTemplateAnimation(inputText) return
def previsToAnim(name): # This creates a new animation with the name of the previs and clones the shot over. # previs_path = os.path.join(os.environ['PREVIS_DIR'], name, 'animation') anim_path = os.path.join(os.environ['SHOTS_DIR'], name, 'animation') # print previs_path # print anim_path #no such animation file exists! if not os.path.exists(anim_path): newItemDAO.createNewShotFolders('Animation', name) return cloneShot(name, name, 2) # This will be using both previs and shot.