Sequence throwing NoneType error

Hi there, I get a NoneType error even though I have clearly created a Sequence:

def platform1Move(self):
        plat1Move1 = LerpPosInterval(self.platform1, 10, VBase3(10,self.platform1dis+8,6),VBase3(0,self.platform1dis,0))
        
plat1Move2 = LerpPosInterval(self.platform1, 10, VBase3(-10,self.platform1dis+5,-6),VBase3(10,self.platform1dis+8,6))
        
plat1Move3 = LerpPosInterval(self.platform1, 10, VBase3(0,self.platform1dis,0),VBase3(-10,self.platform1dis+5,-6))
        
self.plat1Seq = Sequence(plat1Move1,plat1Move2,plat1Move3).loop()    



def platform2Move(self):
plat2Move1 = LerpPosInterval(self.platform2, 10, VBase3(-4,self.platform2dis+8,-2),VBase3(0,self.platform2dis,0))
        
plat2Move2 = LerpPosInterval(self.platform2, 10, VBase3(18,self.platform2dis-5,12),VBase3(-4,self.platform2dis+8,-2))
        
plat2Move3 = LerpPosInterval(self.platform2, 10, VBase3(0,self.platform2dis,0),VBase3(18,self.platform2dis-5,12))
        
self.plat2Seq = Sequence(plat2Move1,plat2Move2,plat2Move3).loop()

This is definately followed by:

def resetPlatforms(self):
        self.plat1Seq.pause()
        self.plat2Seq.pause()

I can physically view the platforms rotating so the sequence is playing. Why the NoneType error, has it anything to do with looping the sequence?

Thanks.

This statement:

self.plat1Seq = Sequence(plat1Move1,plat1Move2,plat1Move3).loop()

is wrong. This is creating a Sequence and then calling loop() on that Sequence, and then setting plat1Seq to the return value of the call to loop(), which is None.

You should do something like this instead:

self.plat1Seq = Sequence(plat1Move1,plat1Move2,plat1Move3)
self.plat1Seq.loop()

David

solved, thankyou.