Translation scripting?

What would be the best way to write a script for translating geometry? (was made in a scriptSOP). Can I include some code for the movement within the scriptSOP? Also is it possible for me to control the movement and parameters of the camera using a script?

Have a look at Help/Operator Snippets/ScriptSOP for some examples.

Even simpler for translating geometry is to use stuff like an LFO and reference it to Tx, Ty, Tz as you like in a Transform SOP or Geo.

Or write Python scripts in a Text DAT.

Hope this helps