Daz script to remove LIE images?
MelonArts3D
Posts: 56
in The Commons
Hi,
I'm working on a product that lets you apply multiple different LIE presets.
Now I wanted to create a script that removes all LIE images with a specific tag in their file name.
Is this possible? can someone help me because I have absolutely no experience with scripting and I tried it with ChatGPT but it's not working...
Thanks you in advance.
Comments
Do you know that you can simply open up the Surfaces tab, go to the surface on which the LIE is applied, and remove any or all of them?
You can do (almost) everything that DS script products do manually.
Yes I know that. I just want a "button" that lets you remove all LIE images related to my product with one klick.
I'm pretty sure it can be done. I believe the make-up for V9 product works like that. It used scripts to insert and remove LIEs. It's apparently not an easy thing to do, however, as that make-up product had some problems. I don't know if they ever got sorted out, as I refunded it.
Ok so it's not that easy to create such a script..
Do you know whats the best way to learn Daz scripting? Are there some tutorials or something like that?
Look at the sample scripts http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start (which are very well commented) and check the object reference http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/start for the details of the elemnts used. Also, if you are completely new, have a look for tutorials in other similar languages (such as Javascript) to get a feel of the general principles (but bear in mind that Daz Script and Javascript are examples of a common base, but differ in details). Also, if you use one of the samples as a starting point make sure you respect the CC 3 by attribution license terms.
See thread below. Look for the FenixPhoenix line with the added attachment(s):
https://hpclscruffy.daz3d.com/forums/discussion/559406/removing-l-i-e-face-scars
Thank you, I will look into this!
Ok thats cool, I can look into the script and maybe I learn to write my own :)