Re: [Maya2osg-users] osgpreview, UI and flags
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-05-23 22:33:10
|
Hi Javier, > Now we have to add the features we need to preview animations. Btw, > I hope to start next week with blend shapes export. > Cool, I will try add the skining module. To be honest, I hope I can overtake the blend shape stuff, as all regarding characters and rigging ( this includes best possible and fatest meshes export ) are my major field of interst. If you know about corrective BlendShapes, I might be writing my Bachelor Thesis about a certain extension to this system which would yield perfect results at joints with more than one degree of freedom. But we should talk about the curent mesh export mechanism, as there are some traps waiting :-) see new thread. . > OK. All what you suggest is interesting. What about creating a new > section "Previewing" or "Previsualization" or something similar in the > export options window? > That can be done, but currently its only one TextField, does it really make sense for now ? > I don't understand completely what you are proposing. Just two notes: > > 1. maya2osg_export and maya2osg_preview procs must be in two > independent files with these same names to be automatically loaded the > first time they are called. This is the same reason I created the > "osgFileExportOptions.mel" file (otherwise the Maya Export option > failed if you haven't called maya2osg_export before). Now I think I can't follow you, neither can reproduce the case you are talking about. I have merged the function already, but just not commited, and it works as expected. Before evaluating a global proc, the file where it is defined needs to be sourced, that's it. And as all settings are stored in environment variables, the UI does not have to be opened or executed, you can directly use the osg_preview command. The only case is, when the whole system is installed, and no envVars are created, so we can catch this case, and generate the default ones. > 2. The maya2osg_preview command is meant to be a "quick preview" and > so it has no GUI. It just uses the last options that were set on the > plug-in and creates the output files in the temp directory and deletes > them after closing the preview window. > As said, all that can be done without the UI opened, or the preview command existing in a seperate file. Btw, I like it very much, that it is a Maya window :-) do you remember the discussion about having a direct connection between Maya and a osg Window ? :-) Cheers, PP |