Hi there,
I am wanting to add a menu in the Silhouette preferences to enable/disable all the custom python scripts I am loading. I am using the fx.prefs.add function in the scripts to create a tick box in the preferences which loads them when ticked, and ignores them when not.
fx.prefs.add("Artist Tools.Adjust Clone Frame Offset Keybind", True)
fx.prefs.add("Artist Tools.Change Exposure Keybind", True)
fx.prefs.add("Artist Tools.Change Paint Opacity Keybind", True)
fx.prefs.add("Artist Tools.Jump To Frame", True)
fx.prefs.add("Artist Tools.Reshape Toggler", True)
fx.prefs.add("Artist Tools.Swap brush size and clone offset controls", True)
fx.prefs.add("Artist Tools.Project Version Up", True)
This is working very well, however it would be great to be able to organise these and group them into ‘Keybinds’, and ‘Tools’.
For example, in the default Silhouette menu ‘Input/Output’, the items are grouped into ‘Silhouette Shapes’, ‘Nuke 6.2+ Shapes’ and ‘Nuke 9+ Shapes’ with a title and border like this:
How would I do this in my menu?
Thanks,
Josh