Re: [Maya2osg-users] Mac 2011 Build
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2010-12-26 13:58:46
|
Hi Len, On Sun, Dec 26, 2010 at 1:26 AM, Len White <le...@le...> wrote: > Hello all. > I'm very excited about this plugin. It will help my work immensely. Many > thanks! > However, I'm on Mac on Maya 2011. > I just spent the last few hours getting an Xcode project put together and > everything seemed to go well. > However, here's the weird stopping point that, perhaps, someone can help > with... > I'm sorry I cannot help you so much with this, as I couldn't test it in Mac yet. Anyway, if you manage to make it work, the contribution is appreciated. I get the command in Maya and it will run but I can't find the output file > anywhere on my system. > Very weird. I've tried heavy geometry and the command takes longer, but > regardless of the file path I can't find the file anywhere. > > It's as if the maya2osg.cpp line > osgDB::writeNodeFile(*root.get(), filename.asChar()); > is doing absolutely nothing. No empty file, nothing. > I've printed the filename and it looks fine. > What OSG version are you using? What file extension are you trying to export to? I assume from what you say that "root" has a valid scene graph. The only thing I can suggest is to trace the osgDB::writeNodeFile code to see where the problem is. Be sure also that there are no problems with write permissions. If the scene is not written, some error message should be printed on the console. What do you see there? Another minor hiccup is that the std::cout command seems to no longer print > to the script window (I'm assuming a 2011 Qt-related change). > The standard output is not sent to the script window, it goes to the console where you started Maya (in Linux) or to the Output Window (in Windows). I also suggest you to compile the plug-in with the "_DEBUG" symbol defined as it can give you more information about potential problems. > If anyone has any debugging tips I'd love to hear them. > If any mac users want my project I'm happy to send it for the help. > If/once I get this working I'm happy posting my Xcode project back to > sourceforge for other mac users out there. > Thank you for your feedback. The Xcode project is welcome. Happy new year! -- Javier Taibo |