IC8 Python API:RLPy RIBuildingObject

From Reallusion Wiki!
Jump to: navigation, search

Description

This class represents a building in the scene and provides access to its floors and walls.

Constructor & Destructor

__init__ (self, *args, **kwargs)

Initializes a new ri building object instance.

Parameters

  • args
  • kwargs

Member Functions

AddBlankFloor (self, nNewFloor, nTemplate, nColumn, nRow, fWidth, fLength, strDummyPropFileName)

Adds a blank floor to this building.

Parameters

  • nNewFloor
  • nTemplate
  • nColumn
  • nRow
  • fWidth
  • fLength
  • strDummyPropFileName

DeleteFloor (self, spFloorObject)

Deletes the specified floor from this building.

Parameters

  • spFloorObject

DuplicateFloor (self, nNewFloor, spFloor)

Duplicates a floor in this building.

Parameters

  • nNewFloor
  • spFloor

GetAllWalls (self, kWalls)

Returns all walls belonging to this building.

Parameters

  • kWalls

GetFloorNumber (self, spFloor)

Returns the number assigned to the specified floor.

Parameters

  • spFloor

GetFloors (self, kFloors)

Returns the floors belonging to this building.

Parameters

  • kFloors

MoveFloor (self, spTargetPosition, spFloor, bMoveUpward)

Moves a floor to a new position in this building.

Parameters

  • spTargetPosition
  • spFloor
  • bMoveUpward

Optimize (self)

Optimizes the building object.

UpdateFloorsPosition (self)

Updates the positions of the floors in this building.

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.