DzQuat question
I have the following 2 scripts that find a node (merlins skull) and rotates it 90 degrees. the second uses an overloaded version of DzQuad var nNode=Scene.findNode('MRLN_MSSkull_7542');...
View ArticleBlend an image stack in the Script GUI
I'm working on a script, and for a good user feedback, I thought I could use a stack of png images and blend them together, maybe using DLayeredImage, but it looks like those cannot be constructed from...
View Articlescaling an image within a pixmap
Hello everyone! I'm trying to add in a dialog several pixmaps with images loaded somewhere else in the script. This is not fundamental, but this would be "much more cute" this way (gosh, it's always...
View ArticleHow to zoom viewport camera using script?
What's the best way to programmatically zoom in the viewport camera (equivalent to manual viewport controls)?
View Article* Solved* Force a Iray Preview render to restart
My script change the contents of the file beloning to a file property (and the set the data to that file property), but if the filename is the same as last time, it doesn't trigger a refresh of the...
View ArticleHow to send Output ridisplay to window Preview render for Outline...
Hello I have reviewed the files to generate the Outline effect, and works well with files scripts \ support \ DAZ \ ScriptedRenderer \ Outline \ OutlineRenderScript.dsa that come with DAZ. and help...
View ArticleMore than two Environment maps
Hi, I was wondering if its possible to come up with a scrip, that lets someone, use more than two environment maps- in Render settings environment? It would be fantastic if you develeoped more...
View ArticleGet global position of Child vert
If I have a child object, oGeometry.getVertex() returns the local coordinates. Is there an easy way to return the global position instead?
View ArticleSetting Simulation Properties Under the Surfaces Tab Via Script
The following code is an old snippet that I've used in the past to set material properties. In this case, it never enters if( prop ), but works fine if I change "Dynamics Strength" to "Opacity...
View ArticleSetting Align Options
How can you set the Align options through a script? I know you can call the DzAlignAction to execute the align, but I need to set the options first.
View ArticleDetermining the actual class of an object
Hi, How can I determine the actual class an object? For example: var oRoot = Scene.getSelectedNode(1).getSkeleton(); var numProps = oRoot.getNumProperties(); var oProp; for(var i = 0; i <...
View ArticleCreating new morph channels with script
Hi, I've been playing around on an idea of creating new morph channels on the fly, much like Poser's PMD files do. Sadly the PMD plugin AFAIK died off as of DS 4. I think I'll give it a shot using a...
View ArticleGetting label of layered image
I can't seem to get the label of a layered image... .label returning undefined.. oMap = oProperty.getMapValue(); if( oMap ){ if( oMap.className() == "DzLayeredTexture" ){ NumOfLayers =...
View ArticleA question about 'Render DrawStyle' Sample error
Hi! I am running the "Render DrawStyle" sample and it throws me an error in line 156. // Set the alpha for the image to a color mask oImage.setAlphaFromMask( oImage.getColorMask( clrMask, true, 10 ) );...
View ArticleApplying Poses, Camera, saving scene
This was something I did in Poser for my workflow using python. Think of it as a mass rendering setup - and I'd like to see if I can do it in Daz. Essentially fill a scene with a few characters, 1 or...
View ArticleWatchout for this little "trap" I tripped in
I was using the DzListView and DzListViewItems I had an object that I stored with the list view items addDataItem( String key, Object val ) It worked well, for a bit, but then when that was read back...
View Articlewordwrap for DzLabel is broken on 4.10
Hello, I just saw by testing some of my new scripts on 4.10 that the command wordWrap does not work any longer. Then I just checked some of my older products and I saw that they had the same wordWrap...
View ArticleHow to read or set the Ambient Strength of a Material
This is where I got...but missing the way to read or set the value (like 0.1 or 10%) if(!(node = Scene.getPrimarySelection())){ return; }; print ("node= "+node.name); shellObject = node.getObject();...
View ArticleWhat'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[Solved] Is there a way to change the image gamma using DzTextureModifier?
The "Image Editor" has the ability to read and edit image gamma, so logically, so should DzTextureModifier, except I can't find a method or property that allows me to do so. Has anybody figured out how...
View Article