def selectByName(name): """select object, deselect everything else! :param name: name of the object to select """ command = "SELECT SELECTNAME NAME=" + name udkUI.fireCommand(command)
def selectByName(name): """select object, deselect everything else! :param name: name of the object to select """ command = "SELECT SELECTNAME NAME="+name udkUI.fireCommand(command)
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)
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)
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)
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)
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)
def unhideSelected(): command = "ACTOR UNHIDE SELECTED" # TODO: cmd does not work udkUI.fireCommand(command)
def undo(): command = "TRANSACTION UNDO" udkUI.fireCommand(command)
def redo(): command = "TRANSACTON REDO" udkUI.fireCommand(command)