def export_no_deps(node): if node is not None: tex_export = cmds.getAttr(node + '.overwrite_existing_textures') geo_export = cmds.getAttr(node + '.overwrite_existing_geometry') cmds.setAttr(node + '.overwrite_existing_textures', 0) cmds.setAttr(node + '.overwrite_existing_geometry', 0) ms_export.export(node) cmds.setAttr(node + '.overwrite_existing_textures', tex_export) cmds.setAttr(node + '.overwrite_existing_geometry', geo_export) else: ms_commands.error('No render settings nodes present')
def re_export(): if ms_export.previous_export is not None and cmds.objExists( ms_export.previous_export): ms_export.export(ms_export.previous_export)
def export(): node = get_export_node() if node is not None: ms_export.export(node)
def render(self, args): node = cmds.ls(sl=True) ms_export.export(node[0])
def re_export(): if ms_export.previous_export is not None and cmds.objExists(ms_export.previous_export): ms_export.export(ms_export.previous_export)