Thread: [Maya2osg-users] Updated Maya Export Scripts
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-07-08 22:15:31
|
Hi, I woked on the Maya UI scripts as announced. Now threre are more Macros, which should make it quite easy to add new Arguments and UI Controls. Please test, and inform me about any Bugs. Want to write the wiki entry about those Macros and usage tomorrow. Javier, do you have a prefered place to add this entry ? Would suggest one more maijor Topic e.g. "Developer Notes", wehere we could write wiki information how to use features that we implemented. Cheers, PP |
From: Javier T. <jav...@gm...> - 2011-07-09 11:24:46
|
Hi Peter, I take a quick look at what you commited and it looks great. I'll take a closer look asap, and I'll test it thoroughly. Actually, I'm going to need to add new options soon so I'll use the new macros. The code is much more cleaner and coherent now, also. Lots of lava code removed :) and generally I think it is more understandable and easy to follow now. I think there was a change missing, I committed it a few minutes ago. I finished yesterday the blend shapes stuff (at last!). I'll try to commit it this afternoon, I have just to clean up a bit the code, and then I'll notify it in the list. Thanks for your work, I really appreciated the effort. I hate creating UIs and all these scripts make my life easier ;) Regards, On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel <pp...@cg...> wrote: > Hi, > > I woked on the Maya UI scripts as announced. Now threre are more Macros, > which should make it quite easy to add new Arguments and UI Controls. > Please test, and inform me about any Bugs. > > Want to write the wiki entry about those Macros and usage tomorrow. > Javier, do you have a prefered place to add this entry ? > Would suggest one more maijor Topic e.g. "Developer Notes", wehere we > could write wiki information how to use features that we implemented. > > Cheers, PP > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > -- Javier Taibo |
From: Javier T. <jav...@gm...> - 2011-07-09 11:28:47
|
Hi Peter, On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel <pp...@cg...> wrote: > Want to write the wiki entry about those Macros and usage tomorrow. Great! > Javier, do you have a prefered place to add this entry ? > Would suggest one more maijor Topic e.g. "Developer Notes", wehere we > could write wiki information how to use features that we implemented. OK. Just link it from the main page and that's it. As we add contents we'll be shaping it and surely reorganizing it as its contents grow (hopefully). -- Javier Taibo |
From: Javier T. <jav...@gm...> - 2011-07-09 15:01:56
|
Hi Peter, The pre and post export commands were called with the old code in osgFileExportOptions.mel. I already changed that some days ago, but they came back in one of the last SVN changes. Please, test it also with the "File > Export all/selection" command when you change the scripts. I changed this in SVN, but there is still a problem with the Maya "File > Export*" option. There is a syntax error that I don't know where it comes. As the system is perfectly usable with the shelf button, I'm going to finish the other pending tasks before. If you have any idea about where this problem is, help is welcome. Regards, On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel <pp...@cg...> wrote: > Hi, > > I woked on the Maya UI scripts as announced. Now threre are more Macros, > which should make it quite easy to add new Arguments and UI Controls. > Please test, and inform me about any Bugs. > > Want to write the wiki entry about those Macros and usage tomorrow. > Javier, do you have a prefered place to add this entry ? > Would suggest one more maijor Topic e.g. "Developer Notes", wehere we > could write wiki information how to use features that we implemented. > > Cheers, PP > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > -- Javier Taibo |
From: Peter W. <pp...@cg...> - 2011-07-09 15:12:53
|
Currently I am working on the script and wiki, so I will have a look. I found already the export selected issue, but of the other error I was not aware. Are you talking about the one when changing to a different file type in the fileDialog ? "// Error: file: F:/Documents/maya/scripts/osgFileExportOptions.mel line 23: Cannot find procedure "maya2osg_eventExportCommand". //" Cheers, PP > Hi Peter, > > The pre and post export commands were called with the old code in > osgFileExportOptions.mel. I already changed that some days ago, but > they came back in one of the last SVN changes. Please, test it also > with the "File > Export all/selection" command when you change the > scripts. > > I changed this in SVN, but there is still a problem with the Maya > "File > Export*" option. There is a syntax error that I don't know > where it comes. > > As the system is perfectly usable with the shelf button, I'm going > to finish the other pending tasks before. If you have any idea about > where this problem is, help is welcome. > > > Regards, > > > On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel <pp...@cg... > <mailto:pp...@cg...>> wrote: > > Hi, > > I woked on the Maya UI scripts as announced. Now threre are more > Macros, > which should make it quite easy to add new Arguments and UI Controls. > Please test, and inform me about any Bugs. > > Want to write the wiki entry about those Macros and usage tomorrow. > Javier, do you have a prefered place to add this entry ? > Would suggest one more maijor Topic e.g. "Developer Notes", wehere we > could write wiki information how to use features that we implemented. > > Cheers, PP > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously > valuable. > Why? It contains a definitive record of application performance, > security > threats, fraudulent activity, and more. Splunk takes this data and > makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > <mailto:May...@li...> > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > > > > -- > Javier Taibo > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users |
From: Javier T. <jav...@gm...> - 2011-07-09 15:19:27
|
Hi Peter, I found several errors in the last update. After tweaking the optionVars and correcting the pre/post export code, the one I am having is a syntax error, that now I am seeing that is caused because the variable $resultCallback passed to the osgFileExportOptions code is empty. We are appending the options to it and eval'ing. Thats the cause of the syntax error. Who should provide the $resultCallback and why is it empty? Can we just ignore it, replace by the maya2osg command? Regards, On Sat, Jul 9, 2011 at 5:12 PM, Peter Wrobel <pp...@cg...> wrote: > Currently I am working on the script and wiki, so I will have a look. I > found already the export selected issue, but of the other error I was not > aware. Are you talking about the one when changing to a different file type > in the fileDialog ? > > "// Error: file: F:/Documents/maya/scripts/osgFileExportOptions.mel line > 23: Cannot find procedure "maya2osg_eventExportCommand". //" > > Cheers, PP > > > Hi Peter, > > The pre and post export commands were called with the old code in > osgFileExportOptions.mel. I already changed that some days ago, but they > came back in one of the last SVN changes. Please, test it also with the > "File > Export all/selection" command when you change the scripts. > > I changed this in SVN, but there is still a problem with the Maya "File > > Export*" option. There is a syntax error that I don't know where it comes. > > As the system is perfectly usable with the shelf button, I'm going to > finish the other pending tasks before. If you have any idea about where this > problem is, help is welcome. > > > Regards, > > > On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel <pp...@cg...>wrote: > >> Hi, >> >> I woked on the Maya UI scripts as announced. Now threre are more Macros, >> which should make it quite easy to add new Arguments and UI Controls. >> Please test, and inform me about any Bugs. >> >> Want to write the wiki entry about those Macros and usage tomorrow. >> Javier, do you have a prefered place to add this entry ? >> Would suggest one more maijor Topic e.g. "Developer Notes", wehere we >> could write wiki information how to use features that we implemented. >> >> Cheers, PP >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Maya2osg-users mailing list >> May...@li... >> https://lists.sourceforge.net/lists/listinfo/maya2osg-users >> > > > > -- > Javier Taibo > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense.http://p.sf.net/sfu/splunk-d2d-c2 > > > > _______________________________________________ > Maya2osg-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > -- Javier Taibo |
From: Peter W. <pp...@cg...> - 2011-07-09 15:39:58
|
Hi Javier, working on that as well. I am trying to further automate the process, in terms of that the argument Names which we want to pass to the PlugIn will get extracted automatically from the OptionVar Initialization. This means we need to add argument names to less places. I reduced it to OptionVar initialization and UI Building. > > I found several errors in the last update. After tweaking the > optionVars and correcting the pre/post export code, the one I am > having is a syntax error, that now I am seeing that is caused because > the variable $resultCallback passed to the osgFileExportOptions code > is empty. We are appending the options to it and eval'ing. Thats the > cause of the syntax error. > > Who should provide the $resultCallback and why is it empty? The Method maya2osg_buildCommandOptions() in maya2osg_export.mel should pass this string, and was doing it till now. Error must have come from all the new changes, but I am on it right now. > > Can we just ignore it, replace by the maya2osg command? Unfortunatelly not, maya implicitly exports through the osgFileTranslator, if the File->export menu is used. This was the reason why I created the osgwriter.h/cpp. Fixes and new features should be there by today eveneing. Cheers, PP > > Regards, > > > On Sat, Jul 9, 2011 at 5:12 PM, Peter Wrobel <pp...@cg... > <mailto:pp...@cg...>> wrote: > > Currently I am working on the script and wiki, so I will have a > look. I found already the export selected issue, but of the other > error I was not aware. Are you talking about the one when changing > to a different file type in the fileDialog ? > > "// Error: file: > F:/Documents/maya/scripts/osgFileExportOptions.mel line 23: Cannot > find procedure "maya2osg_eventExportCommand". //" > > Cheers, PP > > >> Hi Peter, >> >> The pre and post export commands were called with the old code >> in osgFileExportOptions.mel. I already changed that some days >> ago, but they came back in one of the last SVN changes. Please, >> test it also with the "File > Export all/selection" command when >> you change the scripts. >> >> I changed this in SVN, but there is still a problem with the >> Maya "File > Export*" option. There is a syntax error that I >> don't know where it comes. >> >> As the system is perfectly usable with the shelf button, I'm >> going to finish the other pending tasks before. If you have any >> idea about where this problem is, help is welcome. >> >> >> Regards, >> >> >> On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel >> <pp...@cg... <mailto:pp...@cg...>> wrote: >> >> Hi, >> >> I woked on the Maya UI scripts as announced. Now threre are >> more Macros, >> which should make it quite easy to add new Arguments and UI >> Controls. >> Please test, and inform me about any Bugs. >> >> Want to write the wiki entry about those Macros and usage >> tomorrow. >> Javier, do you have a prefered place to add this entry ? >> Would suggest one more maijor Topic e.g. "Developer Notes", >> wehere we >> could write wiki information how to use features that we >> implemented. >> >> Cheers, PP >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is >> seriously valuable. >> Why? It contains a definitive record of application >> performance, security >> threats, fraudulent activity, and more. Splunk takes this >> data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Maya2osg-users mailing list >> May...@li... >> <mailto:May...@li...> >> https://lists.sourceforge.net/lists/listinfo/maya2osg-users >> >> >> >> >> -- >> Javier Taibo >> >> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> >> >> _______________________________________________ >> Maya2osg-users mailing list >> May...@li... <mailto:May...@li...> >> https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously > valuable. > Why? It contains a definitive record of application performance, > security > threats, fraudulent activity, and more. Splunk takes this data and > makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > <mailto:May...@li...> > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > > > > -- > Javier Taibo > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users |
From: Peter W. <pp...@cg...> - 2011-07-09 16:11:05
|
Sorry, I missunderstood you, $resultCallback is provided by Maya and should be the name of the selected FileTranslator. iT might be that you detected a Maya Bug, but will try to confirm this. The new version is great but full of Bugs. Btw, do you have Hotfix 3 applied already ? Cheers, PP > Hi Peter, > > I found several errors in the last update. After tweaking the > optionVars and correcting the pre/post export code, the one I am > having is a syntax error, that now I am seeing that is caused because > the variable $resultCallback passed to the osgFileExportOptions code > is empty. We are appending the options to it and eval'ing. Thats the > cause of the syntax error. > > Who should provide the $resultCallback and why is it empty? > > Can we just ignore it, replace by the maya2osg command? > > > Regards, > > > On Sat, Jul 9, 2011 at 5:12 PM, Peter Wrobel <pp...@cg... > <mailto:pp...@cg...>> wrote: > > Currently I am working on the script and wiki, so I will have a > look. I found already the export selected issue, but of the other > error I was not aware. Are you talking about the one when changing > to a different file type in the fileDialog ? > > "// Error: file: > F:/Documents/maya/scripts/osgFileExportOptions.mel line 23: Cannot > find procedure "maya2osg_eventExportCommand". //" > > Cheers, PP > > >> Hi Peter, >> >> The pre and post export commands were called with the old code >> in osgFileExportOptions.mel. I already changed that some days >> ago, but they came back in one of the last SVN changes. Please, >> test it also with the "File > Export all/selection" command when >> you change the scripts. >> >> I changed this in SVN, but there is still a problem with the >> Maya "File > Export*" option. There is a syntax error that I >> don't know where it comes. >> >> As the system is perfectly usable with the shelf button, I'm >> going to finish the other pending tasks before. If you have any >> idea about where this problem is, help is welcome. >> >> >> Regards, >> >> >> On Sat, Jul 9, 2011 at 12:15 AM, Peter Wrobel >> <pp...@cg... <mailto:pp...@cg...>> wrote: >> >> Hi, >> >> I woked on the Maya UI scripts as announced. Now threre are >> more Macros, >> which should make it quite easy to add new Arguments and UI >> Controls. >> Please test, and inform me about any Bugs. >> >> Want to write the wiki entry about those Macros and usage >> tomorrow. >> Javier, do you have a prefered place to add this entry ? >> Would suggest one more maijor Topic e.g. "Developer Notes", >> wehere we >> could write wiki information how to use features that we >> implemented. >> >> Cheers, PP >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is >> seriously valuable. >> Why? It contains a definitive record of application >> performance, security >> threats, fraudulent activity, and more. Splunk takes this >> data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Maya2osg-users mailing list >> May...@li... >> <mailto:May...@li...> >> https://lists.sourceforge.net/lists/listinfo/maya2osg-users >> >> >> >> >> -- >> Javier Taibo >> >> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> >> >> _______________________________________________ >> Maya2osg-users mailing list >> May...@li... <mailto:May...@li...> >> https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously > valuable. > Why? It contains a definitive record of application performance, > security > threats, fraudulent activity, and more. Splunk takes this data and > makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Maya2osg-users mailing list > May...@li... > <mailto:May...@li...> > https://lists.sourceforge.net/lists/listinfo/maya2osg-users > > > > > -- > Javier Taibo > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users |
From: Javier T. <jav...@gm...> - 2011-07-09 16:23:23
|
On Sat, Jul 9, 2011 at 6:10 PM, Peter Wrobel <pp...@cg...> wrote: > Sorry, I missunderstood you, $resultCallback is provided by Maya and > should be the name of the selected FileTranslator. iT might be that you > detected a Maya Bug, but will try to confirm this. The new version is great > but full of Bugs. Btw, do you have Hotfix 3 applied already ? > I didn't even know that such thing existed! :) No, I have not hotfix 3 applied, at least I didn't apply it consciously. The exact version I'm using is Autodesk® Maya® 2011 201003190014 03/19/2010 Regards, -- Javier Taibo |
From: Peter W. <pp...@cg...> - 2011-07-09 16:41:55
|
Yes, I was also very surprised about these Hotfixes, they do it since 2011. 2012 is a cool version but so full of bugs, thats sad. HEre is the link: http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=17286269&linkID=9242259 So the fileTranslator Issue came from a space not getting between the command in $resultCallback and the argument string passed from the mel scripts. Very simple but stupid error. I added some more Macros, so that Initializing OptionVars gets easier, and also generates an Argment List which will get passed to the PlugIn. I think I wont finish the Wiki by today, need to take care of my gf :-) Cheers, PP > On Sat, Jul 9, 2011 at 6:10 PM, Peter Wrobel <pp...@cg... > <mailto:pp...@cg...>> wrote: > > Sorry, I missunderstood you, $resultCallback is provided by Maya > and should be the name of the selected FileTranslator. iT might be > that you detected a Maya Bug, but will try to confirm this. The > new version is great but full of Bugs. Btw, do you have Hotfix 3 > applied already ? > > > I didn't even know that such thing existed! :) No, I have not > hotfix 3 applied, at least I didn't apply it consciously. > > The exact version I'm using is Autodesk® Maya® 2011 201003190014 > 03/19/2010 > > > Regards, > > > -- > Javier Taibo > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users |
From: Javier T. <jav...@gm...> - 2011-07-09 16:55:00
|
On Sat, Jul 9, 2011 at 6:41 PM, Peter Wrobel <pp...@cg...> wrote: > Yes, I was also very surprised about these Hotfixes, they do it since > 2011. 2012 is a cool version but so full of bugs, thats sad. HEre is the > link: > http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=17286269&linkID=9242259 > > So the fileTranslator Issue came from a space not getting between the > command in $resultCallback and the argument string passed from the mel > scripts. Very simple but stupid error. > > I added some more Macros, so that Initializing OptionVars gets easier, and > also generates an Argment List which will get passed to the PlugIn. I think > I wont finish the Wiki by today, need to take care of my gf :-) > There is no hurry at all. The world does not end until 2012 ;) Enjoy! -- Javier Taibo |
From: Peter W. <pp...@cg...> - 2011-07-09 16:58:43
|
:-) I have heard that the latest Maya 2012 was supposed to be called "Total Annihilation Edition" ... but something went wrong ... :-) > > On Sat, Jul 9, 2011 at 6:41 PM, Peter Wrobel <pp...@cg... > <mailto:pp...@cg...>> wrote: > > Yes, I was also very surprised about these Hotfixes, they do it > since 2011. 2012 is a cool version but so full of bugs, thats sad. > HEre is the link: > http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=17286269&linkID=9242259 > <http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=17286269&linkID=9242259> > > So the fileTranslator Issue came from a space not getting between > the command in $resultCallback and the argument string passed from > the mel scripts. Very simple but stupid error. > > I added some more Macros, so that Initializing OptionVars gets > easier, and also generates an Argment List which will get passed > to the PlugIn. I think I wont finish the Wiki by today, need to > take care of my gf :-) > > > There is no hurry at all. The world does not end until 2012 ;) > > > Enjoy! > > > -- > Javier Taibo > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users |