On 05/11/2014 at 06:10, xxxxxxxx wrote:
Hello,
when you double click on your material Cinema will create an new preview image. This preview image is created by rendering a simple scene. This scene is stored in the folder you mention above (resource\modules\xtensions\preview_scenes). To find out if the current render process is a preview rendering simply check the flag INITRENDERFLAG_PREVIEWRENDER.
The path to the original scene is stored in the given document's BaseContainer with the ID DOCUMENT_SECONDARYPATH.
if(irs.flags & INITRENDERFLAG_PREVIEWRENDER)
{
if(irs.doc && irs.doc->GetDataInstance())
{
const Filename originalPath = irs.doc->GetDataInstance()->GetFilename(DOCUMENT_SECONDARYPATH);
GePrint(originalPath.GetString());
}
}
Best wishes,
Sebastian