I copied PUZ_RisingPlatform.itemScript to Portcullis.itemScript and added some Output lines.

I placed a BLD_HOE_Wall_Shifting_4m_A asset on level and replaced it's RootTemplate with a BLD_Humans_Prison_Grating_I.

I've got the following script fragment

THEN
Output("Portcullis Init CLOSE")
ItemPlayAnimationTo("close",100.0,100.0)
ELSE
Output("Portcullis Init OPEN")
ItemPlayAnimationTo("open",100.0,100.0)
ENDIF

When I click on the item, I can see the Output lines, but the animation does nothing.

Are item animations hardcoded/embedded into the models themselves?