I've made a .NET assembly to help with manipulating state sets (from maxscript), including forcibly settings various parameters. This appears to work, but the changes are lost on reload.
I'm checking if a StateSet has that State (so, for example, a Rendering state), and adding if not, then checking if it has a Parameter for that RenderProperty, and if not, creating it. It returns the Parameter. In maxscript, i'm then directly setting the Parameter.Value.
Am I doing it the wrong way? Should I be setting the value a different way?