This is the relevant bit of the macro. It gets preceded by the Variable defs code I showed you above. I replaced the specific filepath and file name line, (that pressing a BPR render pass thumbnail icon creates) with the [FileNameSetNext,tifFile] part of my regular Document Export code.
// Front Colour
[IPress,Tool:SubTool:Back]
[IUnPress,Tool:SubTool:Back]
[IPress,Tool:SubTool:Front]
[IPress,Material:MatCap White01]
[IPress,Render:Render Properties:Shadows]
[IPress,Render:Render Best Preview]
[VarSet,tifFile,[StrMerge, filePathandName, “_FC.tif”]]
[FileNameSetNext,tifFile] [IPress,Render:BPR RenderPass:Img]
[VarSet,tifFile,[StrMerge, filePathandName, “_FCShadow.tif”]]
[FileNameSetNext,tifFile] [IPress,Render:BPR RenderPass:Shdw]
[VarSet,tifFile,[StrMerge, filePathandName, “_FCAO.tif”]]
[FileNameSetNext,tifFile] [IPress,Render:BPR RenderPass:AmOc]
///////////////////////
There are more renders of different combinations of materials and subtools before and after this section, and a dll gets called at the end, to combine them all into one texture page, but that doesn’t have a bearing on this code here.
Thank you for your continuing support: you are a wonderful resource!