Linked scene in VSE doesn't run Python script I'm making a short movie in which one scene, I hide part of the mesh of a character using some python code in a Register .py file, like this:

bpy.data.objects['spider_eye.L'].modifiers['Mask.001'].show_viewport = 1


which hides the mesh in the animation file (anim.blend). I also have another blend file (vse.blend) where I linked the scene from the anim.blend to edit it but in the sequencer viewer of the VSE, the mesh is not hidden.



I'm guessing that when a scene is linked, the added code is not executed.

Is there a way around this?

Thanks for your help.
Make sure, in the User Preferences (Ctrl+Alt+U) you have Auto Run Python Scripts selected in the File Tab at the very bottom.