This works, but the panda model node becomes invisible. I also tried the reverse order, I attached CallbackNode to the panda model node and it also became invisible (debug geometry) with this all working as expected.
from panda3d.core import CallbackNode, BoundingBox
import direct.directbase.DirectStart
def init(cbdata):
print (cbdata.getData().node().getName())
pass
cbnode = CallbackNode("cbnode")
cbnode.setBounds(BoundingBox())
cbnode.setCullCallback(init)
cbnp = render.attachNewNode(cbnode)
cbnp.showBounds()
mpanda = loader.loadModel("panda")
mpanda.reparentTo(cbnp)
base.run()
I wonder why created a separate callback node instead of adding the required method to the Node class?