Error When Importing [Solved]

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Error When Importing [Solved]

Post by GAB »

I have a series of palm models released by Sky_216 some time ago, that, whenever I try to import, I get a long red line at the bottom of the XSI window, which, in the end says: 'import' object has no attribute 'get origin'.

So, how do I import the model in XSI without getting the error?
Last edited by GAB on Fri Jul 11, 2014 9:35 am, edited 1 time in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Error When Importing

Post by Marth8880 »

Ugh, oh boy. Yeah, I get this error with a lot of models as well. :( You can try converting the msh to obj via meshtool, but don't expect it to work. :(
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Error When Importing

Post by GAB »

Yeah, I tried converting to obj and them importing but then the import window in XSI just... disappears... and nothing is imported. :(

Isn't there any other solution?

EDIT
Here's what appears in the script editor:
Hidden/Spoiler:
[code]Application.NewScene("", "")
Application.MSHImport()
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 91, in importbutton_OnClicked
# import_.import_()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 757, in import_
# self.do_import()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 791, in do_import
# self.abort_checklog()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 738, in abort_checklog
# path = os.path.join(self.get_origin(), 'import_log.log')
# AttributeError: 'Import' object has no attribute 'get_origin'
# - [line 90 in D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\\Application\Logic\importer.py]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR : [88] settings = andezetcore.load_settings('import', PPG.Inspected(0))
# ERROR : [89] import_ = andezetimport.Import(xsi, settings)
# ERROR : >[90] try:
# ERROR : [91] import_.import_()
# ERROR : [92] except SystemExit:
# ERROR : [93] return
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 91, in importbutton_OnClicked
# import_.import_()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 757, in import_
# self.do_import()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 791, in do_import
# self.abort_checklog()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 738, in abort_checklog
# path = os.path.join(self.get_origin(), 'import_log.log')
# AttributeError: 'Import' object has no attribute 'get_origin'
#
[/code]
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Error When Importing

Post by AceMastermind »

Are you talking about the palm trees he converted here? They are already in *.obj format at the source.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Error When Importing

Post by GAB »

Yes. I'm talking about those.

By the way, I just downloaded the .obj models from the second link you posted Ace, and those I did manage to open in XSI, so thanks for the link :). I'll see if I can convert them to .msh tomorrow.

Off Topic: Is it still possible to download anything from gamefront? Whenever I try, I get an unavailable page.

EDIT

Off Topic 2: I see that the .obj models I downloaded have polysurfaces instead of polymesh. I'm not very keen on this, but I remember reading somewhere that .msh doesn't support surfaces. So, is there a quick way to turn a surface into a mesh?
Last edited by GAB on Thu Jul 10, 2014 8:53 pm, edited 1 time in total.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Error When Importing

Post by Noobasaurus »

You can download a lot of things from gamefront. All of the downloads at starwarsbattlefront.filefront.com work.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Error When Importing

Post by GAB »

Then I must be really unlucky or something, because whenever I try to download anything from starwarsbattlefront.filefront.com I get an Unavailable page message. By the way, I use Chrome. I had no success with the crappy IE I have on my PC either.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Error When Importing

Post by AceMastermind »

GAB wrote:Off Topic 2: I see that the .obj models I downloaded have polysurfaces instead of polymesh. I'm not very keen on this, but I remember reading somewhere that .msh doesn't support surfaces. So, is there a quick way to turn a surface into a mesh?
These are all polygon mesh objects and will export fine, what you are seeing in the Explorer is just the object names which can be changed to whatever you want. The icons preceeding the object name is a quick way to identify its type and will distinguish it from other object types. The polygon mesh icon looks like a chair with no hind legs and the surface mesh icon looks like a playground slide.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Error When Importing

Post by ANDEWEGET »

In most of these meshes there's an object designated as geometry but it doesn't actually have any geometry (and also import for MshEx .msh files was disabled). I pushed out an update which enables it and fixes the problem with that empty object (imports it as a null).
Here.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Error When Importing

Post by GAB »

Great ANDE. It worked just fine. Thanks.
Post Reply