74 ObjNode_setSelectable(
const char *node_path,
bool selectable)
82 throw HOM_OperationFailed(
"Internal error (could not find node)");
86 throw HOM_OperationFailed(
"Internal error (node is not an object)");
98 throw HOM_PermissionError();
105 const char *exception_class_name,
const char *instance_message,
113 exception_class = NULL;
126 PY_PyObject *hou_module_dict = PY_PyModule_GetDict(hou_module);
127 exception_class = PY_PyDict_GetItemString(
128 hou_module_dict, exception_class_name);
132 if (!exception_class)
135 PY_PyExc_RuntimeError(),
136 "Could not find exception class in hou module");
146 return PY_PyObject_Call(exception_class,
args, NULL);
164 const char *node_path;
180 ObjNode_setSelectable(node_path, (
bool)selectable);
194 typeid(error).
name());
195 if (exception_class_name.find(
"HOM_") == 0)
196 exception_class_name = exception_class_name.substr(4);
205 if (!exception_instance)
210 PY_PyErr_SetObject(exception_class, exception_instance);
223 PyInit__hdk_sample_hom_extensions(
void)
242 {
"ObjNode_setSelectable", ObjNode_setSelectable_Wrapper,
243 PY_METH_VARARGS(),
""},
244 { NULL, NULL, 0, NULL }
248 "_hdk_sample_hom_extensions", hom_extension_methods);
251 return reinterpret_cast<PyObject *
>(module);
OP_Node * findNode(const char *path, OTLSyncMode syncmode=OTLSYNC_DOSYNC) const
Uses the path (eg. "/obj/geo1") to find a node in our hierarchy.
PY_API int PY_PyArg_ParseTuple(PY_PyObject *args, const char *format,...)
bool setPickable(bool onoff) override
GLsizei const GLchar *const * string
PY_API PY_PyObject * PY_Py_BuildValue(const char *format,...)
__attribute__((visibility("default")))
UT_API std::string UTunmangleClassNameFromTypeIdName(const std::string &name)
virtual std::string instanceMessage()
GLuint const GLchar * name
int canAccess(unsigned mask) const
OP_API OP_Director * OPgetDirector()
PY_API PY_PyObject * PY_Py_InitModule(const char *name, PY_PyMethodDef *methods)
**If you just want to fire and args
OBJ_Node * castToOBJNode() const