def post_publish(): element = maya_publish_dialog.result if maya_publish_dialog.published: if not cmds.file(q=True, sceneName=True) == '': cmds.file(save=True, force=True) #save file #Publish user = maya_publish_dialog.user src = maya_publish_dialog.src comment = maya_publish_dialog.comment dst = element.publish(user, src, comment) #Ensure file has correct permissions try: os.chmod(dst, 0660) except: pass print "TODO: export playblast" print maya_publish_dialog.result.get_name() if element.get_department() == Department.MODEL: print "Exporting Alembic" alembic_static_exporter.go() if element.get_department() == Department.ANIM: print "Giving the Animator the opportunity to export alembic" alembic_exporter.go()
def post_publish(): element = maya_publish_dialog.result if maya_publish_dialog.published: if not cmds.file(q=True, sceneName=True) == '': cmds.file(save=True, force=True) #save file #Publish user = maya_publish_dialog.user src = maya_publish_dialog.src comment = maya_publish_dialog.comment element.publish(user, src, comment) print "TODO: export playblast" print maya_publish_dialog.result.get_name() print "Exporting Alembic" alembic_static_exporter.go()
def exportAll(destination, tag=None, startFrame=1, endFrame=1): if tag is not None: selection = pm.ls(assemblies=True) return exportSelected(selection, destination, tag='BYU_Alembic_Export_Flag', startFrame=startFrame, endFrame=endFrame, disregardNoTags=True) else: return alembic_static_exporter.go()