On 02/02/2016 at 07:00, xxxxxxxx wrote:
I'm trying to pull render data from a template file and insert it into the active document. I can do it one line at a time using
rD = templateFile.GetFirstRenderData()
rD1 = rD.GetNext()
"templateFile" is a file that the user loads and the script then loads the document to pull the render data.
Then I InsertRenderData(rD) into the active document. It all works if I do line by line but a "while" statement would be best for this as I don't know how many id's of Render Settings I'm pulling from the template.
When I put it into a "while" loop it crashes. It seems to pull the first ID but then it gets stuck in the active document and stops pulling from the loaded file, it will just pull the settings from the active document. I know I'm missing something but I just can't find it on google. Any help would be great! Maybe there is a better way!
Thanks!
Anthony