Free Python Script for Creating a Custom Menu


https://forum.reallusion.com/Topic401504.aspx
Print Topic | Close Window

By jlittle - 5 Years Ago
While watching KT's Robby python scripting videos (great vids by the way KT) I noticed that he had a lot of scripts for just the Robby project.
This got me thinking that there should be an easy way to create a menu or menus that you could easily select a script to run from.
Mainly, if in the future, you had a multitude of scripts and wanted an easy way to access them something like this would be handy. Especially for those scripts that become your goto favorites.
Now, most python programmers would not have a problem with this but not everyone is a python programmer.
In fact, even though I am a programmer, this is only my second python program (not counting Hello World BigGrin).

So, I created a this custom menu script that i have attached here. Just unzip into the OpenPlugin directory, configure and have fun.
The script is heavily commented with a menu example included and explained.

It is currently setup to load when iClone is started but if you rename the main.py file you can manually load it as needed.
You can even copy the folder to different names and have multiple custom menus available for manual loading.
Or, just use sub-menus for different groupings of scripts.

Here is an image of the example it comes configured with:


If anyone has any issues or suggestions for improvements please post them here.

Enjoy!

Jeff

By SeanMac - 5 Years Ago
Hi jeff

Thanks for that - that's thinking ahead.
By sonic7 - 5 Years Ago
Yes Jeff; great idea and very kind of you to offer this! ... Thankyou!  Smile