AssertionError

Hi this is my first time posting! Hope i dont cause too much trouble javascript:emoticon(’:oops:’)
Embarassed

I’m encountering an error with this part of the code

    def moveCuby(self,dt):
        if (self.keys['liftItUp']!=0):
            if self.isMoving is False:
           # randomize force's kick position around the bowl's origin
                self.cuby.play('reach')
                self.isMoving = True
            forcePos=(random.gauss(0,.00),random.gauss(0,.00),0)
            self.SIM_cuby.body.addForceAtRelPos((0,0,50), forcePos)
        else:
            if self.isMoving:
                self.cuby.stop()
                self.cuby.pose('still',1)
                self.isMoving = False

When i attempt to use this function within the simulation, a long line of error occurs ending with this

File "C:\Panda3D-1.4.2\direct\src\actor\Actor.py", line 2057, in __bindAnimToPart
    animBundle = (animNode.find("**/+AnimBundleNode").node()).getBundle()
AssertionError: !is_empty() at line 273 of c:\temp\mkpr\panda\src\pgraph\nodePath.I

The error start with the Pose part. And i have no idea what is this error about or why it is occuring. Anyone has any ideas?

This assertion error means the internal code tries to access a nodepath which should be there but isn’t there. Does it have the animations you request? Do you get more errors? How did you create the nodes?