You could use a snippet to check if your scene has the same name than your
filename, and/or rename your scene to your filename.

Something like this:

// JScript
var SceneName = Application.ActiveProject2.ActiveScene.Name
var sFilenamePath = Application.ActiveProject2.ActiveScene.filename.value
var sProjectPath = String(Application.ActiveProject2.ActiveScene.parent)
// delete the project path + scenes\ (+8 chars) from the filename path and
delete the extension (-4 chars)
var Filename =  sFilenamePath.substring(sProjectPath.length +8,
sFilenamePath.length - 4)

// Rename
Application.ActiveProject2.ActiveScene.Name = Filename

* It doesn't check if you have a model in your scene with the same name.

Martin Yara


On Wed, Apr 18, 2012 at 2:43 AM, Tim Crowson <[email protected]
> wrote:

>  Thanks. That was it.
>
> Just checked with some folks here and indeed, scenes were renamed outside
> of Softimage. For shame! I have reprimanded them with much reprimanding.
> Cranial samples to follow.
>
> -Tim
>
>
>
> On 4/17/2012 12:26 PM, Sandy Sutherland wrote:
>
> Most likely because someone copied a scene and renamed in in
> windows/explorer - we had the same thing here, never happened before then
> suddenly on this show, point caches are being written into funny named
> folders - which works by querying the scene name and path to write!!  Found
> animators had copied a scene which was working to another one, then renamed
> it!
>
> S.
>
>
> _____________________________
> Sandy Sutherland
> Technical Supervisor
> [email protected]
> _____________________________
>
>
>
>
>   ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of Tim Crowson [
> [email protected]]
> *Sent:* 17 April 2012 18:39
> *To:* [email protected]
> *Subject:* Scene file name incorrectly displayed?
>
>  Some of our scene files are returning a different string than what is
> displayed in the either the file system or the SI window.
>
> For example, we have a scene file named* '001_02SMB_lipsync_v011.scn.'*It 
> shows this name in the file system (in this case Windows Explorer, and
> in the SI browser). But when we run "Save As..." the string defaults to
> reflect a previous scene state *'001_02SMB_anim_v011.scn'*.
>
> So I opened up my script editor and printed the active scene name (
> Application.ActiveProject2.ActiveScene.Name) for my scene entitled *
> '001_02SMB_lipsync_v011.scn'*. Sure enough, it returned *'001_02SMB_anim
> _v011.scn'*.
>
> If I run 'Save As' and manually rename it to what it should be, then any
> subsequent queries to the active scene name are correct, return an expected
> result, and our Save Incremental tool works fine. But for that initial
> 'Save As', it defaults to the string name of a previous state.
>
> Any idea what's going on?
>
> --
>
>
>
> *Tim Crowson
> **Lead CG Artist*
>
>   *Magnetic Dreams Animation Studio, Inc.
> *2525 Lebanon Pike, Building C. Nashville, TN 37214
> *Ph*  615.885.6801 | *Fax*  615.889.4768 | www.magneticdreams.com
> [email protected]
>
>
>
>
> --
>
>
>
>
>
>

<<image/gif>>

Reply via email to