How to identify morphs that affect bones / skeleton
I'm building my first script and I need a way to identify morphs that have bone movements. As far as I know, in the .dsf file you can tell when a morph has bone movements by checking whether there is...
View ArticleHow to Restore Figure Shape
Looking for the scripting method to restore figure shape, or for that matter, activate any of the actions in the Edit -> Figure menu.
View ArticleHow to handle morph rules for silent FBX export when morph names conflict
What I'm wondering is how one sets the name for the CSV/Rule set for the "include morphs" part of silent FBX export when you want a specific morph and that morph's name is a prefix for several other...
View ArticleScripts for Puppeteer
This may be a shot in the dark. Are there scripts that work directly on the Puppeteer interface? I'd like to run a script to assign image to the pose dots programmatically.
View ArticleHow to setOverrideControllers for a JCM morph
So, I have some code to find things like CTRL morphs if I want to change their values. I think this is actually from the sample scripts IIRC: var oPropertyGroupTree = oElement.getPropertyGroups(); if...
View ArticleError warning without scripting error? (Surface renaming)
Strange problem here: I'm trying to rename the G8 Surface "Torso" to G8.1 Surface "Body" (for a Geoshell). The script does what it should (without errors) - but I still get the message "Error: Result...
View ArticleProblems with DzLine3.segmentsIntersect
If I create a DzLine3 with an origin.x as a numeber with decimal places segmentsIntersect and linesIntersect will return false. If I use an integer true will be returned. var l1 = new DzLine3(new...
View ArticleLimits On (Rotation) via script?
Hi! Is there a way to activate the rotation limits of the figure with a script? Similar to “Parameters-Limits-Limits On (Rotation)”? So far I'm able to use ".setIsClamped( true );" to activate them on...
View ArticleCreating Face Group
function CreateFaceGroup(mesh, group_name, facet_array) { mesh.beginEdit(); if (!mesh.createFaceGroup(group_name)) { print("Failed to create face group: " + group_name);...
View ArticleHermit Interpolation
There is Hermit interpolation in dazscript, but setting it's params will not work as expected Also is not available in UI, is hermit deprecated?
View ArticleHow to get facet (or vertex index) from surface in script
Hello, i'd like to get the facets contains in a surface node by script. For exemple, in the geometry editor, when you look in the surface tab, you can see how many vertices are in a given surface, i'd...
View ArticleDisable progress windows during file export?
What I am attempting to accomplish is a multi-tiered progress window that shows total progress as well as separate progress bars for functions that must complete before the total is finished. One of...
View ArticleSetting the default timeline interpolation to linear
Yep. I know [believe] this has been answered before and a script, or rather a link to a script or maybe some scripty instructions, was posted. I used to have such a script, it was called...
View ArticleScript to export geograft morphs
Currently trying to replicate this in script: https://www.youtube.com/watch?v=Gq6eePZxxvE Was hoping I could use `oElement.addProperty` to quickly copy a property from the geograft to the main figure....
View ArticleGetting Property Name
I'm having an issue where when I read a property name string, I gate a string with the text "Value". var oOwner = oProperty.getOwner(); var sPropertyLabel = oProperty.getLabel(); var sPropertyName =...
View ArticleQuestion on DzProductAssetContainer.addAsset
If I select an asset in the content library and use “create product from”, I can add my asset to any existing product. If I use DzProductAssetContainer.addAsset(), I can only add assets to products...
View ArticleSilent .MDD Export
I only see documentation for .obj, but not for .mdd. How do you export it in silent mode without showing a dialog.
View ArticleHow to change userKeywords
I am trying to change the user keywords of an asset. I have created a metadata file and tried to import it via DzAssetMgr.importMetadataFiles(), but this does not work for all products. For categories,...
View ArticleDisable Viewport Updating
I want to do heavy process, so viewport shouldn't be referesh/ updated, until the end. any context or command to do this?
View Article