Ejemplo n.º 1
0
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')
Ejemplo n.º 2
0
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')
Ejemplo n.º 3
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)
Ejemplo n.º 4
0
def export():
    node = get_export_node()
    if node is not None:
        ms_export.export(node)
Ejemplo n.º 5
0
 def render(self, args):
     node = cmds.ls(sl=True)
     ms_export.export(node[0])
Ejemplo n.º 6
0
def export():
    node = get_export_node()
    if node is not None:
        ms_export.export(node)
Ejemplo n.º 7
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)