|
def | cleanUpManipulating (self, selectedNPs) |
| reply = wx.MessageBox("Do you want to delete selected?", "Delete?", wx.YES_NO | wx.ICON_QUESTION) if reply == wx.YES: base.direct.removeAllSelected() else: need to reset COA
dnp = base.direct.selected.last Update camera controls coa to this point
Coa2Camera = Coa2Dnp * Dnp2Camera
mCoa2Camera = dnp.mCoa2Dnp * dnp.getMat(base.direct.camera) row = mCoa2Camera.getRow(3) coa = Vec3(row[0], row[1], row[2]) base.direct.cameraControl.updateCoa(coa) More...
|
|
def | convertFromMaya (self, modelname, callBack) |
|
def | convertMaya (self, modelname, callBack, obj=None, isAnim=False) |
|
def | deselectAll (self, np=None) |
|
def | deselectAllCB (self, dnp=None) |
|
def | exportToMaya (self, mayaFileName) |
|
def | exportToMayaCB (self, mayaFileName, exportRootNP) |
|
def | load (self, fileName) |
|
def | loadSettings (self) |
|
def | propMeetsReq (self, typeName, parentNP) |
|
def | reset (self) |
|
def | resetOrthoCam (self, view) |
|
def | save (self) |
|
def | saveAs (self, fileName) |
|
def | saveSettings (self) |
|
def | select (self, nodePath, fMultiSelect=0, fSelectTag=1, fResetAncestry=1, fLEPane=0, fUndo=1) |
|
def | selectedNodePathHook (self, nodePath, fMultiSelect=0, fSelectTag=1, fLEPane=0) |
|
def | updateStatusReadout (self, status, color=None) |
|
def | updateStatusReadoutTimeouts (self, task=None) |
|
Base class for Level Editor
You should write your own LevelEditor class inheriting this.
Refer LevelEditor.py for example.
def direct.leveleditor.LevelEditorBase.cleanUpManipulating |
( |
|
self, |
|
|
|
selectedNPs |
|
) |
| |
reply = wx.MessageBox("Do you want to delete selected?", "Delete?", wx.YES_NO | wx.ICON_QUESTION) if reply == wx.YES: base.direct.removeAllSelected() else:
need to reset COA
dnp = base.direct.selected.last
Update camera controls coa to this point
Coa2Camera = Coa2Dnp * Dnp2Camera
mCoa2Camera = dnp.mCoa2Dnp * dnp.getMat(base.direct.camera) row = mCoa2Camera.getRow(3) coa = Vec3(row[0], row[1], row[2]) base.direct.cameraControl.updateCoa(coa)