The material below is Open Game Content from a 3PP Source
School transmutation; Level bard 6, cleric 6, witch-4wfg 6, witch 6
Casting Time 1 standard action
Components V, S
Range medium (100 ft. + 10 ft./level)
Targets one Small object per caster level; see text
Duration 1 round/level
Saving Throw none; Spell Resistance no
You imbue inanimate objects with mobility and a semblance of life. Each such animated object then immediately attacks whomever or whatever you initially designate.
An animated object can be of any nonmagical material. You may animate one Small or smaller object or a corresponding number of larger objects as follows: A Medium object counts as two Small or smaller objects, a Large object as four, a Huge object as eight, a Gargantuan object as 16, and a Colossal object as 32. You can change the designated target or targets as a move action, as if directing an active spell.
This spell cannot affect objects carried or worn by a creature.
Animate objects can be made permanent with a permanency spell.