AlignGraphSettings

Graph align settings.

@example:
# Settings class used to control parameters for alignGraph operation
graph = ce.getObjectsFrom(ce.scene, ce.withName('streets'))
settings = AlignGraphSettings()
heightmap = ce.getObjectsFrom(ce.scene, ce.isMapLayer, ce.withName('Heightmap'))[0]
settings.setHeightmapLayer(heightmap)
ce.alignGraph(graph, settings)

 

Methods defined here:

getAlignFunction

getAlignFunction(self):

Gets AlignFunction field. Specifies the alignment function.

@return: Value of AlignFunction field.  ["PROJECT_ALL", "PROJECT_BELOW", "PROJECT_TO_OBJ_AVG", "TRANSLATE_TO_AVG", "TRANSLATE_TO_MAX", "TRANSLATE_TO_MIN"] [str]

getHeightmap

getHeightmap(self):

Gets Heightmap field. Specifies the heightmap to align to. Use "y = 0" for alignment to X-Z plane.
@deprecated: Only for legacy scripts, use getHeightmapLayer instead.

@return: Value of Heightmap field. [str]

getHeightmapLayer

getHeightmapLayer(self):

Gets HeightmapLayer field. Specifies the heightmap to align to. Use "y = 0" for alignment to X-Z plane.

@return: Value of HeightmapLayer field.  [str]

getOffset

getOffset(self):

Gets Offset field. Y-Offset to be added to the aligned vertices.

@return: Value of Offset field.  [float]

setAlignFunction

setAlignFunction(self, enumValue):

Sets AlignFunction field. Specifies the alignment function.

@param enumValue: the new value ["PROJECT_ALL", "PROJECT_BELOW", "PROJECT_TO_OBJ_AVG", "TRANSLATE_TO_AVG", "TRANSLATE_TO_MAX", "TRANSLATE_TO_MIN"]. [str]

setHeightmap

setHeightmap(self, stringValue):

Sets Heightmap field. Specifies the heightmap to align to. Use "y = 0" for alignment to X-Z plane.
@deprecated: Only for legacy scripts, use setHeightmapLayer instead.

@param stringValue: the new value.  [str]

setHeightmapLayer

setHeightmapLayer(self, stringValue):

Sets HeightmapLayer field. Specifies the heightmap to align to. Use "y = 0" for alignment to X-Z plane.

@param stringValue: the new value. [str]

setOffset

setOffset(self, floatValue):

Sets Offset field. Y-Offset to be added to the aligned vertices.

@param floatValue: the new value. [float]

Constants

This class defines the following constants:

PROJECT_ALL = 'PROJECT_ALL'
PROJECT_BELOW = 'PROJECT_BELOW'
PROJECT_TO_OBJ_AVG = 'PROJECT_TO_OBJ_AVG'
TRANSLATE_TO_AVG = 'TRANSLATE_TO_AVG'
TRANSLATE_TO_MAX = 'TRANSLATE_TO_MAX'
TRANSLATE_TO_MIN = 'TRANSLATE_TO_MIN'