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

Reply via email to