danni.coy Posted December 21, 2011 Share Posted December 21, 2011 This image is an example of something we are working on currently. there are ~1200 separate objects to export in this scene. We have written max scripts to do this effectively except that for each mesh we want to export we have to set the controls interactively which means in this case one of our artists (in this case my boss) has to push the ok button ~1200 times. This is one of many such files we will be working on in the coming weeks. I would really appreciate an eta on when this issue can be fixed or if there is a possiblility that I could get access to the source-code for the plugins in order to fix this issue. Link to comment
ulf.schroeter Posted December 21, 2011 Share Posted December 21, 2011 Danny, really just blind guessing based on a short look into Max exporter script UnigineMenu.ms. Try changing line 79 to include #noprompt argument for exportFile call. fn export_mesh type = ( ..... ..... -- export nodes select nodes exportFile name #noprompt selectedonly:true -- restore selection select old_selection ) Maybe this will suppress the dialogs Link to comment
danni.coy Posted December 21, 2011 Author Share Posted December 21, 2011 Yeah we have our own tools written that use #noprompt the problem is that the mesh exporter doesn't seem to honour that setting Link to comment
ulf.schroeter Posted December 21, 2011 Share Posted December 21, 2011 so you call exportFile name #noprompt ... from your scripts directly, right ? Link to comment
danni.coy Posted December 22, 2011 Author Share Posted December 22, 2011 yes... that is what I am doing. If somebody else out there can get it to work I will love them longtime Link to comment
binstream Posted December 26, 2011 Share Posted December 26, 2011 Unfortunately the developer who wrote the current version of the 3ds Max plugin has left the company some time ago, we can't provide the solution quickly, sorry. Plugins refactoring is planned, but it isn't on the top of the tasks list. Link to comment
ulf.schroeter Posted December 26, 2011 Share Posted December 26, 2011 Danny, I already tried to debug it for you, but unfortunately the exporter plugin source code/project will not build with VisualStudio Express edition. Maybe I will be able to do it when returning to work first week of January where I might have a VS professional version Link to comment
ivan.cuevas Posted December 27, 2011 Share Posted December 27, 2011 Danni, can you tell me the MAX version are you using? Link to comment
danni.coy Posted January 3, 2012 Author Share Posted January 3, 2012 I think most of the office are on 2011 at the moment but there might be some 2010s and a few people have started to migrate to 2012 Link to comment
danni.coy Posted January 10, 2012 Author Share Posted January 10, 2012 Danny, I already tried to debug it for you, but unfortunately the exporter plugin source code/project will not build with VisualStudio Express edition. Maybe I will be able to do it when returning to work first week of January where I might have a VS professional version Ulf - has anybody told you your awesome lately Link to comment
ulf.schroeter Posted January 10, 2012 Share Posted January 10, 2012 Ulf - has anybody told you your awesome lately well, no, but don't be to enthusiastic: unfortunately I don't have a VS professional version at work, so I am still unable to build the 3DMax plugins for debugging (in the source code there are some dependencies on MFC/ATL not available with VS express) Nevertheless thanks for the flowers Link to comment
ivan.cuevas Posted January 10, 2012 Share Posted January 10, 2012 I've tested this code and works Ok (no prompt) in MAX 2012 32 bits fn foo = ( for obj in objects do ( select obj local name= "C:\\Temp\\" + obj.name + ".mesh" exportFile name #noprompt selectedonly:true ) ) foo() In order to reproduce it, can you pass me a very simple scene? Link to comment
danni.coy Posted February 8, 2012 Author Share Posted February 8, 2012 here is a small test scene... thankyou Test file for export 2012.max.zip Link to comment
ivan.cuevas Posted February 9, 2012 Share Posted February 9, 2012 Test my plugin and script. It doesn't prompt me anything. exporter.rar Link to comment
danni.coy Posted February 10, 2012 Author Share Posted February 10, 2012 ok -- Problem is solved. Thankyou Ivan and Ulf for your help... We had a combination of problems going this end including an unexpected code path being taken and it seems that #noprompt is only honoured if it is before selectedonly:true.... Link to comment
Recommended Posts