That's what I figured.  Although, I don't need to actually save the scene at
any point.

We're rewriting our render submission ui which updates interactively when
things change in maya.  Because we have very strict naming conventions, you
can't submit to the farm unless your scene is named correctly (We''ve
overridden the open/save dialogs to handle this).  I wanted to update my ui
whenever the scene name changed to let the user know their scene wasn't
named correctly.  In almost all cases workspaceChanged will works fine,
there's just a few edge cases.

Thanks!
Justin



On Fri, Sep 10, 2010 at 1:20 PM, hapgilmore <[email protected]> wrote:

> It may be because the 'file -rename' command only changes the name of
> the scene in maya.  On it's own, the rename command doesn't actually
> save/write anything.  Have you tried combining rename with saveAs?  I
> bet that would cause the workspace to change.
>
> -Ian
>
> On Sep 10, 10:03 am, Justin Rosen <[email protected]> wrote:
> > Heya,
> >
> > I'm trying to get a script job that catches when the name of a scene
> > changes.
> >
> > The following works
> > pm.scriptJob(event=["workspaceChanged", updateSceneName])
> >
> > But doesn't work through code
> > pm.cmds.file(rename="test")
> >
> > I perused the events and couldn't find one that seemed to fit.  Any
> ideas?
> >
> > Thanks
> > Justin
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to