Re: [Maya2osg-users] Discussion of next changes
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-05-20 13:44:55
|
Hi, all Issues fixed, detailed notes in Repo Log. Cheers, PP > Hi guys, > > I've started looking at what you've done Peter for the pre/post-export > script, it's cool that it's a MEL command. Is it possible from this > field to call a function in a separate MEL script? Say I have a function > called doPreExportStuff() in a file called preExport.mel, can I do > something like (pseudocode) > > loadMEL("preExport.mel"); doPreExportStuff(); > > ? > > If so that should be fine. > > Second, I am getting an error when I click Export and the pre-export > script field contains the default thing you put there (print( "preExp > $path$file.$type " ) ;) First of all there seemed to be a newline > character in there at the end, because it would say: > > print( "preExp > C:/Users/jeang/Documents/maya/projects/default/scenesbox_normalmap_maya2osg.osg > > " ) ; > // Error: // > // Error: Unterminated string. // > > So just before the closing quote there seems to be a newline. Then when > I removed the newline, I got this: > > print( "preExp > C:/Users/jeang/Documents/maya/projects/default/scenesbox_normalmap_maya2osg.osg" > ) ; > preExp > C:/Users/jeang/Documents/maya/projects/default/scenesbox_normalmap_maya2osg.osg > // Error: Too many arguments. Expected 0, found 1. // > > Is the print("preExp ...") supposed to call a function called preExp? > The error is because this function does not exist? Or is it something else? > > Sorry for my MEL newb-ness... > > The other two examples (post-export exec( "osgviewer cow.osg" ) and > preview exec( "osgviewer $file" ) work fine. They're great additions. > Thanks. > > Thanks in advance, > > J-S |