Пример #1
0
def test_tools_submitRender():

  toolRoot = os.path.split(os.path.abspath(__file__))[0]
  toolRoot = os.path.split(toolRoot)[0]
  toolRoot = os.path.split(toolRoot)[0]
  toolRoot = os.path.join(toolRoot, 'tools')

  host = Host('python', {'QtWidgets': QtWidgets, 'QtCore': QtCore})
  ws = WorkShop(host, toolRoot)
  tool = ws.instantiate(cmd='submitrender')
  tool.invokeWithUI()
Пример #2
0
    import os
    import opi
    from opi.client.database import DataBase as OpiDB
    from opi.tools.host import Host as OPIHost
    from opi.tools.workshop import WorkShop as OPIWorkShop
    from opi.ui.Qt import QtWidgets, QtCore

    path = os.path.split(os.path.abspath(__file__))[0]
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]

    dbRoot = "e:\\PROJECTS"

    templateRoot = os.path.join(path, 'OPI_Tools', 'templates')
    toolRoot = os.path.join(path, 'OPI_Tools', 'tools')

    db = OpiDB(dbRoot,
               templateRoot=templateRoot,
               rootSubFolders=['ROT_Rotkaeppchen', 'ROT_Rotkaeppchen_2'])

    host = OPIHost('python', {
        'db': db,
        'QtWidgets': QtWidgets,
        'QtCore': QtCore
    })
    workshop = OPIWorkShop(host, toolRoot)

    tool = workshop.instantiate(cmd='saveas')
    tool.invokeWithUI()
Пример #3
0
    import opi
    from opi.client.database import DataBase as OpiDB
    from opi.tools.host import Host as OPIHost
    from opi.tools.workshop import WorkShop as OPIWorkShop
    from opi.ui.Qt import QtWidgets, QtCore

    filepath = os.path.abspath(__file__)

    dbRoot = "e:\\projects"

    path = os.path.split(filepath)[0]
    path = os.path.split(path)[0]
    os.environ["OPI_TOOL_DIR"] = path
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]

    templateRoot = os.path.join(path, 'OPI_Tools', 'templates')
    toolRoot = os.path.join(path, 'OPI_Tools', 'tools')

    db = OpiDB(dbRoot, templateRoot=templateRoot, rootSubFolders=[''])

    host = OPIHost('python', {
        'db': db,
        'QtWidgets': QtWidgets,
        'QtCore': QtCore
    })
    workshop = OPIWorkShop(host, toolRoot)

    tool = workshop.instantiate(cmd='createproject')
    tool.invokeWithUI(active=False)
Пример #4
0
    import os
    import opi
    from opi.client.database import DataBase as OpiDB
    from opi.tools.host import Host as OPIHost
    from opi.tools.workshop import WorkShop as OPIWorkShop
    from opi.ui.Qt import QtWidgets, QtCore

    path = os.path.split(os.path.abspath(__file__))[0]
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]

    dbRoot = "e:\\PROJECTS"

    templateRoot = os.path.join(path, 'OPI_Tools', 'templates')
    toolRoot = os.path.join(path, 'OPI_Tools', 'tools')

    db = OpiDB(dbRoot,
               templateRoot=templateRoot,
               rootSubFolders=['ROT_Rotkaeppchen'])

    host = OPIHost('python', {
        'db': db,
        'QtWidgets': QtWidgets,
        'QtCore': QtCore
    })
    workshop = OPIWorkShop(host, toolRoot)

    tool = workshop.instantiate(cmd='openscene')
    tool.invokeWithUI()
Пример #5
0
if __name__ == '__main__':

    import os
    import opi
    from opi.client.database import DataBase as OpiDB
    from opi.tools.host import Host as OPIHost
    from opi.tools.workshop import WorkShop as OPIWorkShop
    from opi.ui.Qt import QtWidgets, QtCore

    path = os.path.split(os.path.abspath(__file__))[0]
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]
    path = os.path.split(path)[0]

    dbRoot = "e:\\projects"

    templateRoot = os.path.join(path, 'OPI_Tools', 'templates')
    toolRoot = os.path.join(path, 'OPI_Tools', 'tools')

    db = OpiDB(dbRoot, templateRoot=templateRoot, rootSubFolders=[''])

    host = OPIHost('python', {
        'db': db,
        'QtWidgets': QtWidgets,
        'QtCore': QtCore
    })
    workshop = OPIWorkShop(host, toolRoot)

    tool = workshop.instantiate(cmd='createrenderbat')
    tool.invokeWithUI()
import os
import opi
from opi.client.database import DataBase as OpiDB
from opi.tools.host import Host as OPIHost
from opi.tools.workshop import WorkShop as OPIWorkShop
from opi.ui.Qt import QtWidgets, QtCore

filepath = os.path.abspath(__file__)

dbRoot = "e:\\projects"

path = os.path.split(filepath)[0]
path = os.path.split(path)[0]
path = os.path.split(path)[0]


templateRoot =  os.path.join(path, 'OPI_Tools', 'templates')
toolRoot =  os.path.join(path, 'OPI_Tools', 'tools')
os.environ["OPI_TOOL_DIR"] = toolRoot

db = OpiDB(dbRoot, templateRoot=templateRoot, rootSubFolders=[''])

host = OPIHost('python', {'db': db, 'QtWidgets': QtWidgets, 'QtCore': QtCore})
workshop = OPIWorkShop(host, toolRoot)

tool = workshop.instantiate(cmd='installredshiftversion')
tool.invokeWithUI()