View Full Version : Getting the filename of a newly rendered frame

03-04-2009, 06:10 AM

Is there any way to get the filename of the newly rendered image in a Master-plugin in the LWMasterHandler's event function (eg. During LWEVENT_NOTIFY_RENDER_FRAME_COMPLETE )?

It's possible to get the directory and first part of the filename using LWSceneInfo's RGBPrefix, but there doesn't seem to be a means of obtaining the type (file extension) or the format (number of leading zeroes and whether or not to include an underscore before the frame number), which would be useful for composing the image filename. The only way I can think of is to look in the output directory and find the most recent file matching the RGBPrefix and assume that's the file that was just outputted (if all frames are immediately moved to a different directory which is what my plugin intends to do, then there should only be a single file in the directory). Is there a less hackish way of doing this?

03-04-2009, 06:17 AM
I can't think of one, no. :(