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

Image may be NSFW.
Clik here to view.

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 Article


Blend 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 Article


scaling 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 Article

How 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 Article


How 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 Article

More 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 Article

Get 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 Article


Setting 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 Article


Setting 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 Article

Determining 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 Article

Image may be NSFW.
Clik here to view.

Creating 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 Article

Getting 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 Article


A 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 Article

Applying 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 Article


Watchout 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 Article

wordwrap 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 Article


How 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 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

[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
Browsing all 1036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>