Hi Jean-Sébastien Guay, On Thu, Jun 16, 2011 at 11:29 AM, Jean-Sébastien Guay < [email protected]> wrote: > > Agreed, though I was hoping to do it in the plugin mainly because I'm > infinitely more familiar with C++ than with MaxScript (anything divided by 0 > gives infinity right?) :-) > > But I guess that has to change someday, as I've been learning MEL (Maya's > scripting language) lately too, so MaxScript is next I guess. I'll have a > look at how I could get this done. >
With help from my artist I was able to come up with a MAXScript that automatically exports the scene and opens the model with a custom application. Follow these steps: - Download the attached MAXScript file and open in a text editor - Change the value of the "filename" and "application" variables to the file you want to export to and the application you want to open with - In Max select "MAXScript -> Run Script..." from the menu - Select the download script file in the file explorer - Right-click on the empty toolbar area and select "Customize" - In the "Category" drop-down menu select "Scripts" - There should be an action item called "Export to OpenSceneGraph format and preview" - Click and drag the item onto the toolbar - Now you can click the button to automatically export and preview the current scene Let me know if you have any problems or improvements. I think this is a useful script and will probably include it with the next release. Cheers, Farshid
OSGExportPreview.ms
Description: Troff MS-macros document
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

