It is currently 19 May 2013, 05:27

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Scene] token gives wrong name
PostPosted: 07 Aug 2012, 15:16 
Offline

Joined: 02 Aug 2012, 12:24
Posts: 5
Hi

I've got a problem with a character that invariably crashes Softimage when you try to import it as a model, or merge it into an existing scene. The only way round this is to merge/import whatever else is needed for the shot into the character's base scene. (I've tried to track down the cause of the crashes without success - something to do with one of the many ICE trees on the thing, I guess).

The problem is that whatever I save the new scene as, anything that requires a file path string (shadow maps, simulation caches, rendered frames, etc.) has the same (wrong) name inserted where I've used [Scene] in the string.

I seem to remember that the same thing happens if you rename a scene outside of XSI; does anyone know a fix ?


Top
 Profile  
 
 Post subject: Re: [Scene] token gives wrong name
PostPosted: 07 Aug 2012, 15:29 
Offline
User avatar

Joined: 09 Jun 2009, 11:02
Posts: 539
Location: Montreal Canada
iirc, look into using the FileName or UserSceneName parameters of the Scene object

_________________
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage


Top
 Profile  
 
 Post subject: Re: [Scene] token gives wrong name
PostPosted: 08 Aug 2012, 21:11 
Offline

Joined: 02 Aug 2012, 12:24
Posts: 5
I gave it a go Steve, but both these were just ignored, i.e. files were saved to the next folder up.


Top
 Profile  
 
 Post subject: Re: [Scene] token gives wrong name
PostPosted: 09 Aug 2012, 17:00 
Offline
User avatar

Joined: 09 Jun 2009, 11:02
Posts: 539
Location: Montreal Canada
For the case where you rename the scene using the file system...

Code:
# In the file system, I renamed "My_Scene" to "PSS_Scene"
# So, open PSS_Scene and run this:
scn = Application.ActiveProject.ActiveScene
scn.Parameters("Name").Value = "PSS_Scene"

_________________
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage


Top
 Profile  
 
 Post subject: Re: [Scene] token gives wrong name
PostPosted: 09 Aug 2012, 18:18 
Offline

Joined: 02 Aug 2012, 12:24
Posts: 5
Many thanks, that seems to have sorted it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group