New to Blender development, and Python to C/C++ function interface programming but I’ve worked with Java to C++ (JNI) and JS to C++ in the past. I’ve been trying to understand what C/C++ code gets called when this python snippet, specifically the “obj.children”:
obj = context.object
for child in obj.children:
print_id(child)
Is the context object the trojan for everything in the scene, so that getting the list of children is purely done in Python? I’ve debugged inside collection.cc and object.cc but I’m having trouble understanding how the Python API interfaces with the source C code.
Long story short, I want to add Blender support to a plugin that currently works with Maya, Max, and MotionBuilder, and the source is written in C++. So my idea is to build a dll and have Blender’s Python API be the middle man passing the objects to the DLL where they are converted to my generic types, then manipulated and sent back through the Python API.
Appreciate any guidance, and thanks in advanced.