Came up with this crazy idea while working on a tool that had a few different dotNet components and I was tired of doing a showProperties on them. Basically this is a utility to allow a user to temporarily modify a dotNet component’s properties in a propertyGrid, you can then take note of what properties there are what values work well, rapidly prototype look of UI’s, etc. Basically the ability that VS gives you, but inside Max. Thought others might benefit so here ya go. Screenshot attached
To get a better idea of what this does, execute the attached script, two windows will pop up, one with a simple MaxForm and button, the other will have two propertyGirds and a dropdown in it. In the dropdown pick the component you want to play around with and the propertyGrid will fill in with data. If the property you change has other properties the 2nd propertyGrid will get info in it.
To get it to work with your dotNet component simply add a watchMe:control(#), for example:
mButton = dotNetObject “System.Windows.Forms.Button”
add a line:
watchMe.control1 = mButton
After adding this line and running your script you will be able to run
dotNetInspectMe()
and have your control be in the dropdown.
Comments\Suggestions\Questions welcomed and if anyone can tell me why I get a “undefined” line when I execute this I would be most grateful as it is making me grumpy.