Skip to content

Get Current context ​

To get current context on UE5.0 you also need the official SG plugins in unreal editor.

In py3 tested in unreal engine 5.0 ​

py
import sgtk
current_engine = sgtk.platform.current_engine()
current_context = current_engine.context
tk = current_engine.sgtk

# current context
print(current_context)

# path templates
print(tk.templates)

Set current using python SG api ​