Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Browsing all 1036 articles
Browse latest View live

Daz will not close

Hi,   sorry for my bad english. I´m running a script an my system. It load a scene, render everything and then it closed daz automatically. I´m working with this script...

View Article


Static Variable for a Function?

Hi, I understand it's possible to create static variables in Javascript.  Because functions are considered to be objects, it's possible to have something like this: (function() { function...

View Article


Removing submenu item

I have used a variation of Robs "Create Custom Action" (http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/actions/action_custom_create/start) in...

View Article

Deleting a follower by script

I'm writing a script to quickly remove some followers from a figure. So I iterate all nodes from the root, and check their label to find the one to delete. I was wondering what's the best way to delete...

View Article

Daz Script Debugger

I have a couple of basic questions concerning the Debugger. I've been using it for a a few months now, but still can't find a way to kill the debugging session when I encounter errors. I know there's a...

View Article


Unable to save dsa as dse

I have a dsa script that runs without errors.  I load it in the script editor then "Save encrypted script".  When I execute the new dse file I get:   2019-09-10 06:48:19.438 WARNING: Script Error: Line...

View Article

Aiming lights

Does anybody know if you can aim (point) a Spotlight in Daz Script in a similar fashion as aiming a camera? I've examined the DzSpotlight API but can't see anything.  

View Article

Setting a DzImageProperty value to a new DzTexture [SOLVED]

Well, I'm stumped. My script is attempting to change the image used by a DzImageProperty (it's a DzBrickMaterial, I iterate through the property list and find the matching property name.) So I've got a...

View Article


How do I retrieve selected assets from the product views of DzSmartContent

Ok, this works fine for the File tab of the smart contents pane, but how do I retrieve the same information from the product content tab or from "Explore Product..."? I've been dumping the JS objects,...

View Article


How to read/write pose to variable

Hello. I have tree questions and it will be great if I get an answer to one of them. Question #1. I have a script that creates pose file with this code ... var fi = DzFileInfo(sFile);...

View Article

What's the best way to learn Daz Scripting?

Ok, so from what I can gather, Daz Script 2 is an extension of QtScript, which is an extension of ECMAScript, which is a standardized form of JavaScript. So would I be better off learning JavaScript...

View Article

Set Content Library Container help

I tried this script a year ago and gave up in frustration. But in my current project, I have to continually drill down into a Poser folder to get stuff....

View Article

How to set 'Grayscale from' to 'Alpha' in Image Editor via script

I want to set a PNG image with an alpha channel to Cutout Opacity and use that alpha channel. I can do that with the Image Editor. However, can I set it via a script?

View Article


script window show-hide

Hi! When you work with the script dialog box, the work in the DAZ is blocked until you close the script or hide the window. When the script window is hidden (but not closed), then you can work in the...

View Article

Get node name and parent

I am struggling with this bit of code for what seems like foreever.  i am trying to print a scence object next to its parent  But whenever I have an non-root object the recursive function just returns...

View Article


How to stop the "Enter" key from activating the first button in the dialog?

How do I stop the "Enter" key from activating the first button on the dialog? Tests: run script, press the enter key. run script, click on any text box, type something, press the enter key.   // Create...

View Article

Node Unique ID.

  Is there a unique identifier that is exposed to Daz Script that I can use to differentitle between nodes with the same name or label?  

View Article


pushIfNotExists

var aTemp = [ "a", "b", "c", "d" ]; var a = "e"; var b = aTemp.pushIfNotExists( a );// aTemp == [ "a", "b", "c", "d", "e" ] print(b); b = aTemp.pushIfNotExists( a ); print(b); print(aTemp); the ouput...

View Article

Script to render a scene based on dynamic variables

Hi, I have some logic happening on a remote location and I want to use it's output as variables in my script. So the script needs to be remotely executed (with the variables) or accessible via API....

View Article

DzArrayHelper vs PushIfNotExists?

I was wondering what difference there is when adding an object to an array using either Array.PushIfNotExists() or using DzArrayHelper.addToArray()?  Both methods check if the object added is already...

View Article
Browsing all 1036 articles
Browse latest View live