def execute():
    from pymel import core
    replay = core.fileDialog2(dir=core.workspace(q=True, dir=True),
                              ds=2,
                              ff="Uv Set Ascii (*.uv)",
                              fm=1,
                              okc='Import',
                              cap=NAME)
    if not replay:
        return None
    import_path = replay[0]
    core.studioUV(typ='import', s='selected', rp=False, dir=import_path)
    return import_path
Beispiel #2
0
def execute():
    from pymel import core
    replay = core.fileDialog2(dir=core.workspace(q=True, dir=True),
                              ds=2,
                              ff="Uv Set Ascii (*.uv)",
                              fm=0,
                              okc='Export',
                              cap=NAME)
    if not replay:
        return None
    export_path = replay[0]
    if not replay[0].endswith('.uv'):
        export_path = '%s.uv' % replay[0]
    core.studioUV(typ='export', s='all', dir=export_path)
    return export_path
def execute():
    from pymel import core
    core.studioUV(cl=True, s='selected')
    return True