Due to the lack of a class diagramm I need to explore the data structures by dumping objects to see what is in there.
How can I dump the Objects internals to the console?
In this snippet I tried to print the objects but I only get error messages 'TypeError'
def assignPose( plIdx ):
rig = bpy.data.objects.get("rig")
if rig != None:
print("rig=" + str(tuple( rig ))) # TypeError: 'Object' object is not iterable
print( "" + rig.__str__ ) # TypeError: Can't convert 'method-wrapper' object to str implicitly
pl = rig.pose_library
pl.poselib_apply_pose( plIdx )
else:
print("couldn't find rig.")
tuple(rig.data.bones)
. If you want to get names of properties of rig itself, trydir(rig)
$\endgroup$ – mg007 Jul 18 '13 at 6:55