unreal.DatasmithTextureElement

class unreal.DatasmithTextureElement(outer=None, name='None')

Bases: unreal.DatasmithObjectElement

  • UDatasmithTextureElement

C++ Source:

  • Plugin: DatasmithImporter
  • Module: DatasmithImporter
  • File: DatasmithUObjectElements.h
get_allow_resize() → bool

Get allow texture resizing

Returns:
Return type:bool
get_file() → str

Get texture filename

Returns:
Return type:str
get_rgb_curve() → float

Get texture gamma <= 0 for auto

Returns:
Return type:float
get_texture_mode() → DatasmithTextureMode

Get texture usage

Returns:
Return type:DatasmithTextureMode
set_allow_resize(allow_resize) → None

Set allow texture resizing

Parameters:allow_resize (bool) –
set_file(file) → None

Set texture filename

Parameters:file (str) –
set_rgb_curve(rgb_curve) → None

Set texture gamma <= 0 for auto

Parameters:rgb_curve (float) –
set_texture_mode(mode) → None

Set texture usage

Parameters:mode (DatasmithTextureMode) –