kzax
03-19-2009, 01:05 PM
Hi,
I'm using a python script to create render layers, put objects selected in them, and at the end I have to change the shaders of objects in the different render layers. By hand it's working well, but within the script it's not working at all. Render layers are created but the shaders are not changed. If I cut the script in two parts, the first to create render layers and the second one to change the shaders it's ok if I launch the first and then the second one when the first one is finished, but not within one script.
I think it's because the render layers window is not refreshed during the execution of the script, but can I force the refresh during the running script?
Or is there a way to change by script the shader of a specific object in a specific render layer?
Thanks a lot,
Philippe.
I'm using a python script to create render layers, put objects selected in them, and at the end I have to change the shaders of objects in the different render layers. By hand it's working well, but within the script it's not working at all. Render layers are created but the shaders are not changed. If I cut the script in two parts, the first to create render layers and the second one to change the shaders it's ok if I launch the first and then the second one when the first one is finished, but not within one script.
I think it's because the render layers window is not refreshed during the execution of the script, but can I force the refresh during the running script?
Or is there a way to change by script the shader of a specific object in a specific render layer?
Thanks a lot,
Philippe.
