05-12-2019, 03:55 AM 
		
	
	
		Thanks!  I tried what you suggested and it worked great.
I'm using a button to save the image and it works well. However, I have to add another related feature and I'm having some problems.
The scene has a building with several floors. I need to save a separate image showing the building with just one floor, then 2 floors, then 3 floors, etc. I need to do this automatically without having the user press a button for each floor. I tried two different approaches and both failed.
First, I tried to just draw the image with one floor and immediately save the image. I get the following error: "Cannot render to bitmap because TargetViewport3D is null"
Then, I figured I needed to wait for the image to be rendered, so I added a timer to wait a few seconds after I draw the image before I try to save it. It does save without an error, but I get a blank jpg for all floors I'm trying to save.
Can you give me some advice on how to do what I need to do?
	
	
	
I'm using a button to save the image and it works well. However, I have to add another related feature and I'm having some problems.
The scene has a building with several floors. I need to save a separate image showing the building with just one floor, then 2 floors, then 3 floors, etc. I need to do this automatically without having the user press a button for each floor. I tried two different approaches and both failed.
First, I tried to just draw the image with one floor and immediately save the image. I get the following error: "Cannot render to bitmap because TargetViewport3D is null"
Then, I figured I needed to wait for the image to be rendered, so I added a timer to wait a few seconds after I draw the image before I try to save it. It does save without an error, but I get a blank jpg for all floors I'm trying to save.
Can you give me some advice on how to do what I need to do?

