I’ve created an animation and now I want to download images representing each frame. I’ve tried using both the usdrecord command line prompt and the FrameRecorder.Record() function in a script, but in both cases there’s an extra light source that I can’t figure out how to remove (GL renderer). In usdview, it can be turned off by deselecting the default camera light, but I don’t see a way to disable that light in either record function.
I’m looking to either:
a) disable the default camera light in the usdrecord/FrameRecorder.Record() function
b) get the images from usdview with the light disabled
Any suggestions help, thanks!
It looks like that light is added here: OpenUSD/pxr/usdImaging/usdAppUtils/frameRecorder.cpp at release · PixarAnimationStudios/OpenUSD · GitHub … It should only affect renderers that support simple lights, i.e. Storm, but it doesn’t look like there’s a way to disable that right now. If you want to file a github issue, we can use that to let you know when we fix it up; it’s definitely something we’d like to address.
You could try using the UsdImagingGLEngine class directly; it has python bindings and a bit more control, and is the rendering class that the usdview viewport is based on. I don’t know of any image writing capabilities in the usdview app aside from possibly some debugging utilities.
Hope that helps,