SurfaceDefinition
Canonical path: NemAll_Python_BasisElements.SurfaceDefinition
Surface resource definition
AbsolutePath
property
writable
get the absolute path of the surface, outside from the design path
AlphaFromTextureStatus
property
writable
get the flag for using alpha channel from the color bitmap
MetricStatus
property
writable
get the flag for texture scale dependency from the object size. true - texture is scaled independently from the object size
NormalMapStatus
property
writable
get the flag for using normal map texture in bump map, otherwise it will be height map
RelativeName
property
writable
get the relative path and name of the surface, under the design folder
eSurfaceTextureID
Canonical path: NemAll_Python_BasisElements.SurfaceDefinition.eSurfaceTextureID
Bases: Enum
__getitem__
__getitem__(key: str | int | float) -> eSurfaceTextureID
get the item for a key
Parameters:
-
key
(str | int | float
) –value key
Returns:
-
eSurfaceTextureID
–value for the key
CopyData
CopyData(pSrcSurface: SurfaceDefinition, bCopyName: bool = True)
copy the data from an other surface
GetDiffuseFactor
get the diffuse factor calculated from diffuse color intensity, reflection intensity and the transparency intensity
GetReflectionFactor
calculate the reflection factor from transparency and reflection intensity
GetSeasonStatus
get the surface season flag , true - not all color texture are the same
Save
Save(
surfacePath: str, bitmapDict: Dict[eSurfaceTextureID, BitmapDefinition]
) -> bool
Create a surface definition
Returns:
-
bool
–Creation successful state
Parameters:
-
surfacePath
(str
) –Path of the bitmap
-
bitmapDefinitions
–Dict with the bitmap definitions