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

Create ToolBar from directory

$
0
0

In another thread someone was looking for a script that would add all scripts in a directory to a toolbar as custom actions. It was an interesting idea and I had a few minutes, but the request was off topic for the thread, so I am posting my take on it here.

Given the file structure

  • /data/Omni Flux/Scripts/Cool Things
    • Do Cool Thing.dsb
    • Do Cool Thing.dsb.png
    • Do Something Else.dse
    • Do Something Else.png
    • Fix It.dsa
    • Fix It.dsa.png

Run the attached script with the parameter '/data/Omni Flux/Scripts/Cool Things' and it will create a new ToolBar named "Cool Things" with the CustomAction's "Do Cool Thing", "Do Something Else", and "Fix It" with their associated icons.


Viewing all articles
Browse latest Browse all 1036

Trending Articles



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