Hi all!
Looks like these classes are not exposed to HOM. As a workaround you can use inlinecpp to check if OBJ node is a camera. Though you need Visual Studio installed (or Xcode on OSX) to use it. So no simple way afaik
Try to put this in session module:
import inlinecpp
utils = inlinecpp.createLibrary("utils",
includes="#include <OBJ/OBJ_Node.h>",
function_sources=["""
bool isCamera(OBJ_Node* node)
{
return node->castToOBJCamera() != NULL;
}
"""])
Then you can check OBJ nodes like this
node = hou.node("obj/cam1/")
geo_node = hou.node("obj/geo1/")
print hou.session.utils.isCamera(node) # True
print hou.session.utils.isCamera(geo_node) # False
That would work with builtin and hda cameras