Inexplicable disappearance

I adapted three identical models for list loading and defined a sequence of functions that move up and down, but when called again, only the last call will be performed and other objects will disappear. Why is that?

codemao = []
    for i in range(-350, 450, 300):
        coden= loader.loadModel('codemao')
        coden.setPos(i, 0, 0)
        cnodePath = coden.attachNewNode(CollisionNode('cnode'))
        cnodePath.node().addSolid(CollisionSphere(0, 0, 110, 50))
        cnodePath.node().setTag('codemaol', '1')
    myTraverser = CollisionTraverser()
    pq = CollisionHandlerQueue()
    chuiPath = chui.attachNewNode(CollisionNode('chui'))
    chuiPath.node().addSolid(CollisionSphere(-120, 0, 250, 50))
    pickerRay = CollisionRay()
    def change(coden):
        a = random.uniform(1,2)
        b = random.uniform(0.2, 0.5)
        c = random.uniform(1, 2)
        d = random.uniform(0.1, 0.8)
        yundong = coden.posInterval(a, (coden.getX(), coden.getY(), coden.getZ()), (coden.getX(), coden.getY(), coden.getZ()-180))
        yundong_1 = coden.posInterval(b,(coden.getX(), coden.getY(), coden.getZ()-180), (coden.getX(), coden.getY(), coden.getZ()))
        mySequence = Sequence(yundong, Wait(c),  yundong_1, Wait(d), name="Sequence_%s"%coden).loop()   

It looks like the problem might be the “name” that you’re specifying for your Sequence; in an experiment on my end, removing that seemed to cause the NodePaths to move.

This is true, but why is this? Why is the name of the sequence related to this? I didn’t find instructions about these in the manual!

No idea, I’m afraid! I honestly don’t use Sequences and Intervals overmuch, and don’t think that I’ve ever used the name property.