exactly, by scripting it all you will achieve is the same thing as doing 2 renders. I suggest the 2 renders approach