unreal.ShotgridEngine
¶
- class unreal.ShotgridEngine(outer=None, name='None')¶
Bases:
unreal.Object
Wrapper for the Python Shotgrid Engine The functions are implemented in Python by a class that derives from this one
C++ Source:
Plugin: Shotgrid
Module: Shotgrid
File: ShotgridEngine.h
Editor Properties: (see get_editor_property/set_editor_property)
selected_actors
(Array(Actor)): [Read-Write] Selected Actorsselected_assets
(Array(AssetData)): [Read-Write] Selected Assets: Selected assets to be used for Shotgrid commands
- execute_command(command_name) None ¶
Execute a Shotgrid command by name in the Python Shotgrid Engine
- Parameters
command_name (str) –
- classmethod get_instance() ShotgridEngine ¶
Get the instance of the Python Shotgrid Engine
- Return type
- get_referenced_assets(actor)¶
Get the assets that are referenced by the given Actor
Get the available Shotgrid commands from the Python Shotgrid Engine
- Return type
- on_engine_initialized() None ¶
Callback for when the Python Shotgrid Engine has finished initialization
- property selected_assets¶
[Read-Write] Selected Assets: Selected assets to be used for Shotgrid commands