Ejemplo n.º 1
0
def selectByName(name):
    """select object, deselect everything else!

    :param name: name of the object to select

    """
    command = "SELECT SELECTNAME NAME=" + name
    udkUI.fireCommand(command)
Ejemplo n.º 2
0
def selectByName(name): 
    """select object, deselect everything else!

    :param name: name of the object to select

    """
    command = "SELECT SELECTNAME NAME="+name
    udkUI.fireCommand(command)
Ejemplo n.º 3
0
def selectByNames(namesList):
    """add objects to the current selection

    :param namesList: list containing the object names

    """
    for name in namesList:
        command = "ACTOR SELECT NAME=" + name
        udkUI.fireCommand(command)
Ejemplo n.º 4
0
def selectByNames(namesList):
    """add objects to the current selection

    :param namesList: list containing the object names

    """
    for name in namesList:
        command = "ACTOR SELECT NAME="+name
        udkUI.fireCommand(command)
Ejemplo n.º 5
0
def exportObjToFile(package, objName, objType, filePath):
    """all parameters are strings, package is only the package name, no groups
    filePath must include the filename and extension

    :deprecated: this only works if the resources can be found under their
    original import path, a real export won't work that way 
    """
    command = "OBJ EXPORT PACKAGE=%s TYPE=%s FILE=%s NAME=%s" % \
              (package, objType, filePath, objName)
    udkUI.fireCommand(command)
Ejemplo n.º 6
0
def exportObjToFile(package, objName, objType, filePath):
    """all parameters are strings, package is only the package name, no groups
    filePath must include the filename and extension

    :deprecated: this only works if the resources can be found under their
    original import path, a real export won't work that way 
    """
    command = "OBJ EXPORT PACKAGE=%s TYPE=%s FILE=%s NAME=%s" % \
              (package, objType, filePath, objName)
    udkUI.fireCommand(command)
Ejemplo n.º 7
0
def setCamera(x, y, z, rx, ry, rz):
    """Set the Camera in UDK

    :param x,y,z: position for the camera
    :param rx,ry,rz: rotation for the camera

    By telling UDK to set the camera, all viewport cameras will be set to the
    provided position and rotation, there is no option to set a specific camera
    only.

    """
    rot = _convertRotationToUDK((rx, ry, rz))
    command = "BUGITGO %f %f %f %f %f %f" % (x, y, z, rot[0], rot[1], rot[2])
    udkUI.fireCommand(command)
Ejemplo n.º 8
0
def setCamera(x,y,z,rx,ry,rz):
    """Set the Camera in UDK

    :param x,y,z: position for the camera
    :param rx,ry,rz: rotation for the camera

    By telling UDK to set the camera, all viewport cameras will be set to the
    provided position and rotation, there is no option to set a specific camera
    only.

    """
    rot=_convertRotationToUDK((rx,ry,rz))
    command = "BUGITGO %f %f %f %f %f %f" % (x,y,z,rot[0],rot[1],rot[2])   
    udkUI.fireCommand(command)
Ejemplo n.º 9
0
def unhideSelected():
    command = "ACTOR UNHIDE SELECTED"  # TODO: cmd does not work
    udkUI.fireCommand(command)
Ejemplo n.º 10
0
def undo():
    command = "TRANSACTION UNDO"
    udkUI.fireCommand(command)
Ejemplo n.º 11
0
def redo():
    command = "TRANSACTON REDO"
    udkUI.fireCommand(command)
Ejemplo n.º 12
0
def redo():
    command = "TRANSACTON REDO"
    udkUI.fireCommand(command)
Ejemplo n.º 13
0
def unhideSelected():
    command = "ACTOR UNHIDE SELECTED" # TODO: cmd does not work
    udkUI.fireCommand(command)
Ejemplo n.º 14
0
def undo():
    command = "TRANSACTION UNDO"
    udkUI.fireCommand(command)