[osg-users] OSGExp custom preview

2011-06-16 Thread Jean-Sébastien Guay
Hello, I would like to be able to use a custom command to preview what is being / has been exported by OSGExp. The toolbar contains an Export and Preview button, but would it be possible to specify a custom command in the options? That way I could preview objects in a lite version of our

Re: [osg-users] OSGExp custom preview

2011-06-16 Thread Farshid Lashkari
Hi Jean-Sebastien, I would like to be able to use a custom command to preview what is being / has been exported by OSGExp. The toolbar contains an Export and Preview button, but would it be possible to specify a custom command in the options? That way I could preview objects in a lite version

Re: [osg-users] OSGExp custom preview

2011-06-16 Thread Jean-Sébastien Guay
Hi Farshid, I'm pretty sure MAXScript supports automating the export process and executing arbitrary shell commands. You could write a script that exports the model to the temp folder and then passes the model to your application. I've never actually done this myself, but I'd be interested to

Re: [osg-users] OSGExp custom preview

2011-06-16 Thread Farshid Lashkari
Hi Jean-Sébastien Guay, On Thu, Jun 16, 2011 at 11:29 AM, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com 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?) :-)

Re: [osg-users] OSGExp custom preview

2011-06-16 Thread Jean-Sébastien Guay
Hi Farshid, 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. Wow, that was quick! And I can probably start learning from this very script to adapt it to our needs. Thanks a lot! I'll let you

Re: [osg-users] OSGExp custom preview

2011-06-16 Thread Jean-Sébastien Guay
Hi again, 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. I've tried to modify the script to export to the current project's export folder. It doesn't seem to export anything. So I tried

Re: [osg-users] OSGExp custom preview

2011-06-16 Thread Jean-Sébastien Guay
Hi Farshid, Why does it print my variable 3 times? I assume the true is the return value from exportfile? And (most importantly) why is there no test.osg in the directory above? Argh, sorry, for some reason I had unchecked Save file in the export options... All is well once again with the