unreal.DatasmithCameraActorElement

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

Bases: unreal.DatasmithActorElement

  • UDatasmithCameraActorElement

C++ Source:

  • Plugin: DatasmithImporter

  • Module: DatasmithImporter

  • File: DatasmithUObjectElements.h

get_f_stop() → float

Get camera FStop also known as FNumber

Returns

Return type

float

get_focal_length() → float

Get camera focal length in millimeters

Returns

Return type

float

get_focus_distance() → float

Get camera focus distance in centimeters

Returns

Return type

float

get_look_at_actor() → str

Get camera look at actor name

Returns

Return type

str

get_look_at_allow_roll() → bool

Get camera look at allow roll state

Returns

Return type

bool

get_post_process() → DatasmithPostProcessElement

Get camera’s postprocess

Returns

Return type

DatasmithPostProcessElement

get_sensor_aspect_ratio() → float

Get framebuffer aspect ratio (width/height)

Returns

Return type

float

get_sensor_width() → float

Get camera sensor width in millimeters

Returns

Return type

float

set_f_stop(f_stop) → None

Set camera FStop also known as FNumber

Parameters

f_stop (float) –

set_focal_length(focal_length) → None

Set camera focal length in millimeters

Parameters

focal_length (float) –

set_focus_distance(focus_distance) → None

Set camera focus distance in centimeters

Parameters

focus_distance (float) –

set_look_at_actor(actor_path_name) → None

Set camera look at actor name

Parameters

actor_path_name (str) –

set_look_at_allow_roll(allow) → None

Set camera look at allow roll state

Parameters

allow (bool) –

set_sensor_aspect_ratio(sensor_aspect_ratio) → None

Set framebuffer aspect ratio (width/height)

Parameters

sensor_aspect_ratio (float) –

set_sensor_width(sensor_width) → None

Set camera sensor width in millimeters

Parameters

sensor_width (float) –