ZBrushCentral

Question: coding image sequence with passes?

I’m taking baby steps in trying to code something similar to Turntable Plus. Essentially I want to render an image sequence and save the different passes (shaded, shadow, AO, depth, SSS, etc.)

The first issue that I’m running across is that zscipt errors on saving a simple render pass.
For example, I might have a simple zscript like this in part of my code:

[IPress,Render:BPR RenderPass:Render Best Preview]
[FileNameSetNext,“renders\shade_001.tif”][IPress,Render:BPR RenderPass:Img]

then I’ll get an error like this:

ERROR: Render:BPRRenderPass:Img
IN: [IPress,Render:BPRRenderPass:Img]

The second issue that I’m having trouble with is extracting the Time Track information so I can write a loop with a counter to advance the frame in the timeline after the image is rendered and the passes are saved.

I know that I could easily render a turnable with different shaders to get a color pass, shadow pass, etc., but there is no way to my knowledge to do this for AO, depth, and sss passes in order to composite them in post.

By any chance is Turntable Plus available for Z4R5?

I will look into updating Turntable Plus.

In the meantime, you can export the render pass files like this:


//image export
[FileNameSetNext,"shaded.psd"]
[If,([StrFind,"Width=",[IGetInfo,2219]]>-1),[IPress,2219]]//shaded
	
//depth export
[FileNameSetNext,"depth.psd"]
[If,([StrFind,"Width=",[IGetInfo,2220]]>-1),[IPress,2220]]//depth
	
//shadow export
[FileNameSetNext,"shadow.psd"]
[If,([StrFind,"Width=",[IGetInfo,2221]]>-1),[IPress,2221]]//shadow
	
//AO export
[FileNameSetNext,"ao.psd"]
[If,([StrFind,"Width=",[IGetInfo,2222]]>-1),[IPress,2222]]//AO
	
//mask export
[FileNameSetNext,"alpha.psd"]
[If,([StrFind,"Width=",[IGetInfo,2223]]>-1),[IPress,2223]]//mask

//Sss export
[FileNameSetNext,"sss.psd"]
[If,([StrFind,"Width=",[IGetInfo,2301]]>-1),[IPress,2301]]//Sss

//Floor export
[FileNameSetNext,"floor.psd"]
[If,([StrFind,"Width=",[IGetInfo,2302]]>-1),[IPress,2302]]//Floor

This uses the numerical IDs for the buttons instead of their button paths, and the info check is to see that there is actually an image to save.

HTH,