Render from script ignores hidden subparts (?!)
Hi! I hide some genesis parts from script, and then render my scene. While in viewport I can see all needed parts hidden properly, my render code snippet still renders them into final image. Why? What's the catch?
For example, if I hide hair, hair is not rendering, perhaps because it is hidden fully, including hair root object. So I assume it is related to some body parts hidden, like limbs, while other body parts stays visible. But I have no idea how to avoid such behaviour.
.....
for ( var n3 = 0 ; n3 < nodes3.length ; n3++ )
{
nodes3[ n3 ].setVisible( false );
}
var oRenderMgr = App.getRenderMgr();
var settings = oRenderMgr.getRenderOptions();
settings.renderImgToId = settings.DirectToFile;
var outPic = "E:\\path\\base_0.png";
settings.renderImgFilename = outPic;
oRenderMgr.doRender();
Comments
Oh, ah, don't mind, now that I looked through Node docs, I spotted
setVisibleInRender
and then it triggered in my head!
But OMG 0_0
Even if I set setVisibleInRender(false), it still renders!
Hmm, its likely not script-related, but internal Daz bug or shader I'm using, so I'll go on with investigation.