Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / How can I get original name of a Model nested under a ref-model?
  RSS 2.0 ATOM  

How can I get original name of a Model nested under a ref-model?
Rate this thread
 
30143
 
Permlink of this thread  
avatar
  • RedBjarne
  • Posted: 18 December 2008 01:20 AM
  • Location: Copenhagen
  • Total Posts: 50
  • Joined: 22 February 2008 02:47 AM

When importing a reference model, any nested models with names that already is present in the scene will be renamed. I need to find out what the original name is.

I suspect this renaming is a major bug in the whole model system of XSI because I can create several instances where removing models that have been renamed by the system will cause the whole scene structure to fall apart. This also have a major influence on how the Delta system works (making it very dangerous to use on more complex scenes).

If I could only get the name of the model before the system renames it I can work around alot of problems.



Replies: 0
avatar
  • mantom
  • Posted: 18 December 2008 06:31 AM

If a model is renamed upon import, it should only have a number added as a suffix.  Therefore, chop the number off the end and you have the original name.

I would also suggest naming things so they don’t have a number at the end of their names so that when this rename thing happens, you won’t be surprised.

Second, if you’re importing the referenced model, then you should know the name of it already.



Replies: 0
avatar
  • RedBjarne
  • Posted: 18 December 2008 07:40 AM

If I now make the model local, make some changes, and then re-export the model as a ref model, my nested models will have new names with trailing numbers and the system would be broken. I somehow need to store the original name.



Replies: 0
avatar
  • mantom
  • Posted: 18 December 2008 09:41 AM

Ah, I see the problem - workflow.

Don’t localize a model to make changes and re-reference.  Instead, start with an empty scene and import the model you need to make changes too.  Then save over itself.  Any scene referencing the model will inherit the changes upon next refresh/reload.



Replies: 0