Object Track to Active Camera Only

hello,
this is my first post!

i was searching about script that make object track to active camera only
but i could not find any…

after tinkering a bit i finally made one :slight_smile:

so let say it was for a game that have multiple and changing camera
based on character location (sort of like classic resident evil)
and if you had an effect that you want to make by using 2d plane
it will be pain for you to manually change them using logic bricks,
so i made this simple script that will make object follows the active camera
by using “track to” operator using python, hope it helps!

flame_track.blend (651 KB)

NOTE : the flame texture taken from tutorialsforblender3d.com