On 01/04/2014 at 12:38, xxxxxxxx wrote:
First time posting here, but have been creepily lurking in the shadows reading your posts for a couple years. Thanks for all the help
I am trying to make a tool to break out an R&D scene file into multiple scene files.
Our directors usually start by creating an animatic in C4D to accompany the pitch boards. Theyll then work inside that scene for a few days/weeks until everything is approved and they have worked out their timing. In many cases, this will all be done in a single scene file that uses a Stage object to direct what camera is active and so on. We also animate layer visibility to match.
This essentially creates multiple shots into one massive file. IMO, not the best way to work, but thats not my call.
I would like to now build a tool that reads the keyframes of the stage object and saves out files that only consist of the camera and objects being used within that frame range.
My plan was to grab the stage object, get all of its keyframes, then check the visibility of the objects in the scene for each of the ranges given by the keyframe list, delete everything invisible, save a file, and so on.
I thought this would be trivial as listing keyframes and values in CG packages is usually very simple. Not so much as I cannot seem to get a list of the keyed values anywhere. I can start at 0 and scrub my way through keyframes on things like the position and rotation, and even though that seems like a very time consuming and roundabout way to collect them, it does work.
When I try to do the same with a stage object, the CTrack returned gives very large, seemingly random values in the x with 0 in the y and I am unable to decipher what is happening.
Am i missing something here? This is my first time really working with the stage object, and I have been unable to find any real indepth documentation on it, so Im somewhat flying blind at the moment.
Any help would be greatly appreciated! Even if it is simply that I am going about this all wrong