Problem with "include()"
Hi, As I understand it, the 'include()' function can only be used outside of the anonymous function that we're supposed to use for starting scripts. For example:...
View ArticleMDL to Shader Converter
This script generates Shader Presets from MDL files. Thank you to @Catherine3678ab and @Bejaymac for help with shader bricks! The attached shader networks are generated depending on whether the...
View ArticleWorld-space position of the end of the bone
Hello, How can I obtain world-space position of the end of the bone? I need it for for posed and scaled figure. I know that I can get world-space position of the start of the bone using...
View ArticleTrouble with DzPopupMenu
In DS 4.21 I wanted to use DzPopupMenu.insertTextSubmenuItem to create a submenu within the popup and got the error 'TypeError: cannot call insertTextSubmenuItem(): argument 2 has unknown type `QMenu*'...
View ArticleScripted way of getting the currently used parameters over the timeline
I have an issue where I need to save an animated Shaping Preset, but I don't wan to save ALL the shape parameters. I got so excited when I discovered that, when saving a shaping preset, you can...
View ArticleExport figure without geografts
Been wondering this a while. Is there a way to export a figure without geografts via script? Because it normally exports with geografts and then after sculpting on the figure the import fails with the...
View ArticleScript to carry out repetitive actions.
I find that I am repeating the same actions very frequently ie 'Edit>Rigging>Adjust rigging to shape' 'Accept' followed immediately by 'Edit>Geometry>Apply smoothing modifier' Is it...
View ArticleErrors in Daz documentation for DzFloatProperty.setValue()
From documentation: void : setValue( Number val ) Sets the value for this property at the current time; or the default value if this property is not animatable. This function differs from setRawValue()...
View ArticleDraw a rectangle
Hi there! Is it possible to draw a rectangle over my Image? For example, I got an image from an active viewport // Get the active viewport var oViewportMgr = MainWindow.getViewportMgr(); var oViewport...
View ArticleDzListViewItem: delete vs. remove
In DzListViewItem I found two methods: deleteItem() and removeItem(). It seems to me that both will remove a child item from the parent item. However, I am somewhat surprised that the description 'item...
View ArticleI want to find all morphs for Genesis 8.1 Female
Below is my code my it not working // Function to find a modifier by its label function findModifierByLabel(node, label) { var modifiers = node.getModifiers(); // Get all modifiers for the node for...
View ArticleFiguring Out DzSetting keys/properties for DzAction
I know how to find the names of DzActions and also how to trigger the actions. For example, using triggerWithSettings method - but that requires a settings object. I need to be able to find out the...
View ArticleDzActionMgr.setCustomActionFile?
With DzActionMgr.getCustomActionFile I can get the file of a custom action. Is there also an elegant way to set the file, or do I have to use DzActionMgr.addCustomAction to create a new custom action...
View ArticleChange DzPushButton Color (background and text)
Since this morning I've been struggling to change the color (background and text) of one single DzPushButton of my interface (which is an important button that I would like to make more visible). I...
View Article[SOLVED] Is there any way to reference the node that emitted a signal?
I saved a figure/prop asset after setting up some node data which runs a specified script when the asset is loaded. This script sets up a connection using the callback manager that causes a second...
View ArticleTrying to write a script for "headless" execution
This discussion was created from comments split from: DAZ Studio 4.x Scripting Documentation.
View ArticlePose preset save sample versus Daz Pose preset Menu item functionality.
Ok. So, i get that there's a pose preset sample avaliable, however, it seems the built-in filter is doing a lot more than said sample and so I'm curious if there's a way to get a hold of its source...
View ArticleDzAction.ShowTextAndIcon
To set/reset 'Show Text And Icon' for custom actions I found the method DzActionMgr.setCustomActionShowTextWithIcon(). Now I'm looking for a getter method or property for the current value for...
View ArticleSelect nodes -> collapse in Hierarchy+Timeline tabs
Hi, I'm trying to write a script that will: 1. Find all 'Hip' nodes in scene; 2. Collapse/Close them in Hierarchy tab 3. Collapse/Close them in Timeline tab I managed to find first node in scene and...
View ArticleContentMgr findFile() from just file name
The challenge is to reference user-facing files when the user has moved them into a non-default directory structure. Consider the following example: I am able to find the absolute dir for a file...
View Article