Re: [cgkit-user] Freezing will running a python script with an expression.
Brought to you by:
mbaas
From: Matthias B. <mat...@gm...> - 2007-05-11 23:15:31
|
Sorry for the delay... Luke Titley wrote: > Just run these lines of mel in Maya8.0's mel script editor. > > ///// START > // Create an expression called "FreezeMe" which uses Maya Python to > print the string "Freeze Expression" to stdout. > expression -s "py \"print 'Freeze Expression'\" ;" -o "" -n "FreezeMe" > -ae 1 -uc all ; > > // Use Maya Python to change the time/frame on the timeline ( and > therefore update all the DG nodes ). The freeze occures at this point. > py "from maya.mel import currentTime; currentTime(2,e=None) " ; > > ///// END > > I imagine it is something to do with a call to the py mel command which > invokes another call of the py mell command ? > If thats the case there may also be an issue with Maya scriptNode's > containing python code. Well, I could reproduce the above behavior when using the 0.9.3 plugin. The good news is that everything goes fine with the latest version of the plugin (in svn). However, I can't really say right now what caused the above problem but I did change a couple of things related to the way that MEL commands are invoked. - Matthias - |