omni::connect::core::acquirePythonObjectInstance

Defined in omni/connect/core/Python.h

std::shared_ptr<carb::scripting::Object> omni::connect::core::acquirePythonObjectInstance(const std::string &function)

Execute a global python function which returns an instance of an object.

Note: The returned object will be destroyed when the reference count of the smart pointer drops to 0. It is not safe use carbonite APIs to destroy this object directly.

Returns

A Carbonite scripting Object which holds the python object instance.