Update Daz Canvas UI after change?
mikek
Posts: 195
In the render options I add with script a new canvas + node list which works. But the issue is while the list is added the studio UI doesn't show the change unless I force it to reload the canvases panel to reload the settings.
How do I tell the DAZ UI it has to update what it displays as the node list has changed?
var aoRenderElementObjects = App.getRenderMgr().getRenderElementObjects();var oIrayPropertyHolder=aoRenderElementObjects[1];//DzIrayPropertyHoldervar oCanvas = oIrayPropertyHolder.findCanvasDefinition("Canvas", true); //add a new canvasvar sDefaultNodeName="NL1";if(oIrayPropertyHolder.isNodeInNodeList(sDefaultNodeName, toAddToCanvases)==false){ oIrayPropertyHolder.addNodeToNodeList(sDefaultNodeName, toAddToCanvases);}//result: node list element gets added internally but isn't visible in Daz Studio until reload
Post edited by mikek on
Comments
Do bear in mind https://www.daz3d.com/forums/discussion/comment/7272936/#Comment_7272936
Thanks for mentioning. I have made a backup of my Daz version in case things change at one point.