DAEImportSettings

DAE importer settings.

@example:
# Settings class used to control parameters for DAE import
settings = DAEImportSettings()
settings.setImportAsStaticModel(True)
ce.importFile(ce.toFSPath("models/unit_cube.dae"), settings, False)

 

此处定义的方法如下:

getAlignToTerrain

getAlignToTerrain(self):

Gets AlignToTerrain field. Uncheck to import the shape as-is instead of aligning it to the terrain.

@return: Value of AlignToTerrain field.  [True/False]

getFile

getFile(self):

Gets File field.

@return: Value of File field.  [str]

getImportAsStaticModel

getImportAsStaticModel(self):

Gets ImportAsStaticModel field. Uncheck to import as static shape (where rules can be assigned and applied).

@return: Value of ImportAsStaticModel field.  [True/False]

getOffset

getOffset(self):

Gets Offset field.

@return: Value of Offset field.  [sequence of float]

getScale

getScale(self):

Gets Scale field.

@return: Value of Scale field.  [float]

load

load(self, name):

Load the named settings from the current scene file.

@param name: The name of the settings to load.  [str]
@return: result.

save

save(self, name):

Save the named settings to the current scene file.

@param name: The name of the settings to save.  [str]

setAlignToTerrain

setAlignToTerrain(self, booleanValue):

Sets AlignToTerrain field. Uncheck to import the shape as-is instead of aligning it to the terrain.

@param booleanValue: the new value. [True/False]

setFile

setFile(self, stringValue):

Sets File field.

@param stringValue: the new value. [str]

setImportAsStaticModel

setImportAsStaticModel(self, booleanValue):

Sets ImportAsStaticModel field. Uncheck to import as static shape (where rules can be assigned and applied).

@param booleanValue: the new value. [True/False]

setOffset

setOffset(self, floatArrayValue):

Sets Offset field.

@param floatArrayValue: the new value. [sequence of float]

setScale

setScale(self, floatValue):

Sets Scale field.

@param floatValue: the new value. [float]