Scripting Template Repeater as a component

Hello,

Issue:
I am trying to add a component scripting to create animation for a Template Repeater but I am not able to use the repeater as a component.

Task:
I want to use system.gui.transform function to add a left to right animation for the template repeater from a button click. Button component scripting I am trying is something like this :

component = event.source.parent.getComponent( Template Repeater )

origX = component.x

origY = component.y

system.gui.transform(

component,

0 , 0 ,

duration = 1000 ,

callback = lambda : system.gui.transform(

component,

origX, origY,

duration = 2000 ,

acceleration = system.gui.ACCL_FAST_TO_SLOW

)

)

Any support/ help will be appreciated.