App Class
Hello While looking through several of the samples, I came across code that included references to an App class. I found the documentation for DzApp but not for the App class. Can anyone help me?
View ArticleHow to Save a rendered image & Add Canvases
Hello, I have just started with Daz scripting. I'm trying to load a file, add a canvas and save the rendered image as a png. I have been able to load a file, start the render and activate the canvases...
View ArticleHow do Wildcards work?
Me again, sorry. I've got a set of dynamically-generated buttons named switch0, switch1, etc. If I use findChildOfWidget("switch"), nothing is returned. If I try to use a wildcard (i.e....
View ArticleAction when certain buttons in a button group are pressed
Here's the code I have: function hasfad() { for (i=0; i<swtch.length; i++) { var fad = opt.indexOf(Scene.getNode(switches[i]).name); if (swtch[i].down && fad == 0) {...
View ArticleHelp with reparenting bone to a different bone script
I am working on a script to change the Daz skeleton to match that of the Unreal Engine mannequin. It's a request I have seen around the Daz forums and a personal scripting challenge I set for myself....
View ArticleVery simple(?) script
Hello there.. Absolute beginning here. I was wondering how to make a script for some functions from the daz menu. for example if I select a genesis 8 female character, and pose it, then save it's pose...
View Articleretargetting rotation data to a joint
Hello there. Complete newbie here.. :) After importing an fbx file with some rotation data, I want to retarget that rotation data to a joint of a character (ex: his index finger). How would I make a...
View ArticleOrbit point of current camera?
The subject pretty much says it all - I need to obtain the (invisible) point in 3D space that the camera is currently orbiting.
View ArticleDzApp.getTempFilename() doesn't seem to clean-up after itself.
Hello All, According to the documentation, DzApp.getTempFilename() should clear up any files in the temp_dirs it creates when Daz shuts down. Unfortunately, this doesn't seem to be the case. I've...
View ArticleTotal Noob Question: Daz Script calling a Plugin or dll?
Hello everyone, I have a project I'm doing which I hope to get onto the store at some point. At the moment i'm struggling through some image processing/manipulation where i'm iterating over every pixel...
View ArticleSynchronous subdivision update?
Is there any way to apply a figure's subdivision synchronously? Whenever a pose is changed the figure's base geometry updates synchronously, but if subdivision is enabled it doesn't get applied until...
View ArticleSave UV Set Value with Material Preset or change UV Set via script
Hi! I'm trying to change the UV Set of a script generated shell either per script or when I apply the material. I can't get it work. I've loaded in the UVSet on the base figure and saved it as a UV...
View ArticleFace Transfer Automation - Referencing Existing Widgets - Help
I am trying to automate the process of face transfer. The idea is to pass the file path and gender type to a function. The function will then use the image and generate the model. My initial approach...
View ArticleDaz script sin() and cos() functions
I've started playing with scripts. What I want to do is rotate an object - that bit I've got working (i.e. writing different Xrot values to successive frames). But it rotates about the bottom of the...
View ArticlePostgreSQL question
Hi all, this is probably the closest place for me to ask this question- I understand that PostgreSQL is the DB being used in DAZ. I write SQL/DML queries in products like Oracle and MySQL relational...
View Articlewhat is the different between getGeometry() and getCachedGeom()
Hi, everyone. what is the different between getGeometry() and getCachedGeom()? var oMale = Scene.findNodeByLabel("Genesis 8 Female"); var oObject = oMale.getObject(); var oShape =...
View ArticleScripted Renders - What Versions of 3Delight and Renderman does Daz Use?
Hello all, I started looking into scripted rendering for 3Delight and I see in the Daz Scripting Documentation for the DzScriptedRenderer is says "Implements a scriptable RenderMan interface for the...
View ArticleSimple explanation for a C# developer (classes/inheritance)
Hi @all, For some purposes, I want to use (quite simple) inhertance in scripts an I saw this is possible, but a bit frustrating for me, because I can't find a complete reference for scripting. I 'm...
View ArticleSetting Camera Frame Width from script
Hi there, I have a script that instantiate a new camera , position it and sets up the focal length and frameWidth( see exmple below) cam.focalLength=20.78461; cam.frameWidth=24; The focalLength works...
View ArticleUpdating an NaN script to 4.9?
I've been using 'Not A Number' pose presets for a long time now (to move pieces in modular sets). They applythe trans/rot value ad infinitum, so it's not a fixed value - it just keeps adding the same...
View Article