SaladFingers
07-07-2005, 12:47 AM
I have a transform controller plugin I created, and I want to write a maxscript utility plugin that exposes all of my custom controllers currently in the scene. The modeler should be able to add/remove from this list and modify the controllers' properties and all that good stuff.
I understand how to do this in maxscript but I'm having trouble with my importer and exporter. The importer and exporter are written in C++ and need access to my global list of transform controller plugins. But if this global list is maintained in a maxscript utility plugin, how can I access it in C++?
Some ideas I have: 1) Forget about maxscript and instead write a max utility in C++ that manages the controller list and use function publishing to expose the appropriate functions to the importer/exporter. This is probably a valid option but I'd prefer not to do this since writing the utility in C++ would be a lot more work than doing it in maxscript. Also I'm still not sure how the importer/exporter would retrieve the utility plugin object to call functions on it. 2) Use the ExecuteStringScript() method of the GUP class to make maxscript calls. This would probably work but seems like a hack.
Any help is appreciated.
I understand how to do this in maxscript but I'm having trouble with my importer and exporter. The importer and exporter are written in C++ and need access to my global list of transform controller plugins. But if this global list is maintained in a maxscript utility plugin, how can I access it in C++?
Some ideas I have: 1) Forget about maxscript and instead write a max utility in C++ that manages the controller list and use function publishing to expose the appropriate functions to the importer/exporter. This is probably a valid option but I'd prefer not to do this since writing the utility in C++ would be a lot more work than doing it in maxscript. Also I'm still not sure how the importer/exporter would retrieve the utility plugin object to call functions on it. 2) Use the ExecuteStringScript() method of the GUP class to make maxscript calls. This would probably work but seems like a hack.
Any help is appreciated.
