I usually store user saved presets as json files that can repopulate the UI when the preset is selected. You could also save current state on UI close and on UI show have it look for the saved state to set the initial UI state.
I would opt for this over a software specific node that only works in, say Maya. Interested to hear others thoughts as well. On Sat., Aug. 17, 2019, 9:41 a.m. Jakob Kousholt, <jako...@gmail.com> wrote: > Hey Folks, > > I'd love to get your approach to make state persist of your UI. Let's say > I have a custom-built UI and for the majority of the time, the user input > in the UI will be the same per scene. So next time they load up their scene > and open my UI the settings they entered the first time around should > persist. What is your approach? Do you create some arbitrary node in the > scene which holds the information, or what would be considered a good > approach? Looking forward to your approach, thanks! > > Jake > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAEKd6baxEMb21GugKE7cWb0F38aSBR4c1z82UEWm-7sxq8j4Lw%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAEKd6baxEMb21GugKE7cWb0F38aSBR4c1z82UEWm-7sxq8j4Lw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAJ4oLs5eMuKONX4pf0y6us%3D%3D8jBpVnG0yj6WnmppyXV4Lz7hDQ%40mail.gmail.com.