unreal.RigVMHost¶
- class unreal.RigVMHost(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectRig VMHost
C++ Source:
Plugin: RigVM
Module: RigVM
File: RigVMHost.h
Editor Properties: (see get_editor_property/set_editor_property)
asset_user_data(Array[AssetUserData]): [Read-Write] Array of user data stored with the assetasset_user_data_editor_only(Array[AssetUserData]): [Read-Write] Array of user data stored with the asset
- add_asset_user_data_of_class(user_data_class) bool¶
Creates and adds an instance of the provided AssetUserData class to the target asset.
- get_asset_user_data_of_class(user_data_class) AssetUserData¶
Returns an instance of the provided AssetUserData class if it’s contained in the target asset.
- get_current_frames_per_second() float¶
Returns the current frames per second (this may change over time)
- Return type:
- get_extended_execute_context() RigVMExtendedExecuteContext¶
Get Extended Execute Context deprecated: This function has been deprecated and it is no longer supported.
- Return type:
- get_script_accessible_variables() Array[Name]¶
Returns the names of variables accessible in scripting
- has_asset_user_data_of_class(user_data_class) bool¶
Checks whether or not an instance of the provided AssetUserData class is contained.
- is_init_required() bool¶
Returns true if this host requires the VM memory to be initialized
- Return type:
- request_run_once_event(event_name, event_index=-1) None¶
Requests to run an event once
- Parameters:
event_name (Name) – The event to run
event_index (int32) – Deprecated argument. Not used.
- set_absolute_and_delta_time(absolute_time, delta_time) None¶
Set the current absolute and delta times
- set_frames_per_second(frames_per_second) None¶
Set the current fps
- Parameters:
frames_per_second (float)