I found a reference to some DS 4.5 scripting here:
Unfortunately, it’s not complete yet. The Object Index hasn’t been written. A sample script explains how to render to the viewport here:
but this seems to have been written specifically for the regular 3Delight renderer, not the scripted renderer, and I can’t see how to integrate any of what I see here with the script bits I already have. In particular, there is a call that seems to be about getting the active camera, but I’m not convinced it gets a brick camera—I tried inserting it in a couple of places in my code and I still just get a render from the viewpoint of the current camera, but ignoring the brick-based camera shader I’ve defined. :(
Supposing that there is some analogy between DzBrickCamera and DzShaderCamera, do I maybe want to use something like this?
file:///C:/Program Files/DAZ 3D/DAZStudio3/docs/DAZScript/class_dz_shader_camera.html#cc29733a690be9cee94bf379bf0e54e4
oCamera.setDisplay(name, type, mode, aTokens, aParams)
Or maybe it should be Camera, not oCamera:
These methods affect the camera at render-time, and are provided for the render-time script only. Calling these functions from outside the render-time script will have no effect. A global transient variable named Camera - refering to the current DzShaderCamera - exists for the duration of the render-time script. Referencing this variable from outside a render-time script will result in an error.
I’m sorry to keep asking these clueless questions, but without docs, I’m kind of stuck. The brick shaders being a particular feature of Daz Studio, I don’t think any other references are likely to help, are they?