Page 25 of 45

Re: XSI ZETools

Posted: Thu Oct 11, 2012 2:53 am
by sereja2
Unfortunately, your new versions, still can't export anim, or import anything.
XSIZETools_11_11_02_r4, was the best of them... At least it works.
Well, here the all types of errors:
Export anim:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 694, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 744, in do_export
' self.msh.animation = anim.convert()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 85, in convert
' bonecoll.add(boneconv.convert())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 35, in convert
' self.bone.recrc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1673, in recrc
' self.CRC = msh2_crc.crc(self.name)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
' - [line 35 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : >[35] try:
' ERROR : [36] export.export()
' ERROR : [37] except SystemExit:
' ERROR : [38] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 694, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 744, in do_export
' self.msh.animation = anim.convert()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 85, in convert
' bonecoll.add(boneconv.convert())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 35, in convert
' self.bone.recrc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1673, in recrc
' self.CRC = msh2_crc.crc(self.name)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
'
[/code]
Import animated msh:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 548, in do_import
' self.msh = unpacker.unpack()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_unpack.py", line 115, in unpack
' bone.set_name_from_crc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1691, in set_name_from_crc
' name = msh2_crc.compare_crc_adv(names, self.CRC)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 100, in compare_crc_adv
' if crc_ == crc(string):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
' - [line 79 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [77] params.preview()
' ERROR : [78] import_ = andezetimport.Import(xsi, params)
' ERROR : >[79] try:
' ERROR : [80] import_.import_()
' ERROR : [81] except SystemExit:
' ERROR : [82] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 548, in do_import
' self.msh = unpacker.unpack()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_unpack.py", line 115, in unpack
' bone.set_name_from_crc()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1691, in set_name_from_crc
' name = msh2_crc.compare_crc_adv(names, self.CRC)
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 100, in compare_crc_adv
' if crc_ == crc(string):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2_crc.py", line 28, in crc
' startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
' AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
'
[/code]
Import msh:
Hidden/Spoiler:
[code]' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 562, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 375, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 147, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 189, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified. - [line 79 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [77] params.preview()
' ERROR : [78] import_ = andezetimport.Import(xsi, params)
' ERROR : >[79] try:
' ERROR : [80] import_.import_()
' ERROR : [81] except SystemExit:
' ERROR : [82] return
' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 80, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 521, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 562, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 375, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 147, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 189, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified.
[/code]

Re: XSI ZETools

Posted: Thu Oct 11, 2012 7:37 am
by ANDEWEGET
I'll take a look at all those .msh files which didn't work tomorrow.
@sereja: The first two errors should be fixed easily. Which .msh did you try to import when the third error happened?

Re: XSI ZETools

Posted: Thu Oct 11, 2012 8:05 am
by sereja2
Which .msh did you try to import when the third error happened?
I copy and paste, first random msh, from near by open folder... I guess it was my custom "Nar Shaddaa tv" model.

Re: XSI ZETools

Posted: Thu Oct 11, 2012 10:19 am
by ANDEWEGET
Did you export it with my exporter or Pandemics?

Re: XSI ZETools

Posted: Thu Oct 11, 2012 1:34 pm
by sereja2
Did you export it with my exporter or Pandemics?
None of them. All of my models was exported with MshEx... So, you mean, it is possible to import, only stock models from assets? I didn't check it yet, but anyway, it is sad, if that so... :(

Re: XSI ZETools

Posted: Thu Oct 11, 2012 1:42 pm
by Maveritchell
sereja2 wrote:
Did you export it with my exporter or Pandemics?
None of them. All of my models was exported with MshEx... So, you mean, it is possible to import, only stock models from assets? I didn't check it yet, but anyway, it is sad, if that so... :(
MshEx's exporter isn't complete - it doesn't include all the data that Pandemic's exporter does. As a result, you can't import those models back in (Rep's Meshtool can't even import them).

Re: XSI ZETools

Posted: Thu Oct 11, 2012 3:46 pm
by ANDEWEGET
Pretty much.
I believe MshEx writes one chunk in a wrong format which shouldn't be the problem tho(but maybe it is, the importer is not that robust yet). Most likely he uses other chunks to store the polygon information. My importer can't read those(NDXL and NDXT). The engine can read them but afaik they were created for the PS2 engine. Xbox and PC seem to be using STRP chunk. It's possible to convert between them but that's a low priority for me.
Pandemic exported and ZETools exported should work. I dunno about MSH viewer .msh files.

Re: XSI ZETools

Posted: Thu Oct 11, 2012 4:05 pm
by CressAlbane
I can check Msh viewer files for you when I get home.

Re: XSI ZETools

Posted: Thu Oct 11, 2012 4:12 pm
by Cleb
I got my error thing, but it's really long (over 60,000 charachters) and I can't find textbin.com or whatever because the internet says it doesn't exist. Maybe I should post half of it(Its very repetitive)? :? :oops:

Re: XSI ZETools

Posted: Thu Oct 11, 2012 4:15 pm
by ANDEWEGET
Cool. ;)
If everything goes according to plan I should be able to fix serejas errors by tomorrow, depending on what keeps some weights for some models from importing it could take a bit longer for that.
@ cleb: 60k?
Have you tried the version I released yesterday? If you have just post the first 20 lines or so.

Re: XSI ZETools

Posted: Thu Oct 11, 2012 4:32 pm
by Cleb
Yay it worked! The new ZETools, I mean. It exported my model and I got it ingame and everything even though the collision is offa nd its really gitchy but that's probablly my fault. I'm just so happy that I got my model in game! Thank you thank you :bowdown: :o :P

Re: XSI ZETools

Posted: Sat Oct 13, 2012 6:48 am
by ANDEWEGET
ANDEWEGET wrote:
ANDEWEGET wrote:Groovy. :D

Changelog:
  • Import: Fixed weights with deformer index 0 overwriting each other.
    Import: Added import logging to a text file(XSIZETools\\import_log.log).
    Import: Cloth doesn't break enveloping and export anymore.
    Import: Added 'MYTP' as chunk. .msh files exported with MshEx could work now.
    msh2_crc: Now using the _subprocess module for STARTF_USESHOWWINDOW and SW_HIDE constants. Should fix error on some python distributions where those constants don't exist in subprocess.
    Import: Added MshImportError exception.
First entry fixes walker main bodies not being weighted properly.
Third fixes ARC Trooper and Sith not importing correctly.
Fourth might fix .msh files from MshEx not importing at all.
Fifth should fix your animation export/import errors sereja.

The importing process will be logged to XSIZETools\\import_log.log now. On handled errors (or exceptions I throw) a window will pop up telling you to check that log file for the error. That happens only when the error can be expected.
When applying the death animations to the AT-AT and AT-TE some of their parts(head and maincannon) float around... Have to check if that's done by the importer or the actual data in the .msh file...

I'll release r1 today or tomorrow.
Added r1 to the first page.

All models you mentioned, Ace, import fine. I have to see if I can do anything about the misplaced edges. Maybe triangulate every face, even if it has just 4 sides.

BTW, Safe and Debug import only change the function called when calculating CRCs so they won't have any effect on geometry or hierarchy problems.

EDIT: Removed the file. Have to fix something with the exporter.

Added r2 to the first page. Noticed a problem when the exporter actually found a BBox model and with scaling.
Changelog:
  • Export: Fixed scale.
    Export: Fixed per-model BBox.
    Export: Now automatically calculating global BBox.
BBox is now being calculated from the selection on export. In all tests the result equaled the BBox from the Pandemic exporter. As the controls in UI aren't needed anymore I moved the two anim checkboxes to that place. The window is now 30 px less high!

Re: XSI ZETools

Posted: Sat Oct 13, 2012 9:41 am
by Tears2Roses
what is BBox? And what does it do? :runaway:

Re: XSI ZETools

Posted: Sat Oct 13, 2012 10:43 am
by sereja2
Just check it... No, still is not works :( :

Export msh - not work's at all:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' - [line 31 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [29]
' ERROR : [30] def exportbutton_OnClicked():
' ERROR : >[31] params = andezetcore.Config()
' ERROR : [32] params.from_ppg(PPG.Inspected(0))
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' [/code]
Export anim - the same:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' - [line 31 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [29]
' ERROR : [30] def exportbutton_OnClicked():
' ERROR : >[31] params = andezetcore.Config()
' ERROR : [32] params.from_ppg(PPG.Inspected(0))
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 32, in exportbutton_OnClicked
' params.from_ppg(PPG.Inspected(0))
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetcore.py", line 202, in from_ppg
' bbox.text = ppg.Parameters('bbox').Value
' AttributeError: 'NoneType' object has no attribute 'Value'
' [/code]
Import msh -

Can't say for sure. Some model is realy show up, but it anyway display some "red line" error:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' - [line 77 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [75] params.from_ppg(PPG.Inspected(0))
' ERROR : [76] import_ = andezetimport.Import(xsi, params)
' ERROR : >[77] try:
' ERROR : [78] import_.import_()
' ERROR : [79] except SystemExit:
' ERROR : [80] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' [/code]
Import animated msh -

The same, as with non animated msh: it import some separated models (some mess in separated hierarchi), but the animation is dead. (It's not works, when I press > button). So the "red line" content is next:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' - [line 77 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [75] params.from_ppg(PPG.Inspected(0))
' ERROR : [76] import_ = andezetimport.Import(xsi, params)
' ERROR : >[77] try:
' ERROR : [78] import_.import_()
' ERROR : [79] except SystemExit:
' ERROR : [80] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 658, in do_import
' enveloper.envelope()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 509, in envelope
' if model.model_type == 'cloth':
' AttributeError: 'NoneType' object has no attribute 'model_type'
' [/code]
Import of MshEx exported msh - realy is not work's at all:
Hidden/Spoiler:
[code]' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 653, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 423, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 164, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 217, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified. - [line 77 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\importer.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [75] params.from_ppg(PPG.Inspected(0))
' ERROR : [76] import_ = andezetimport.Import(xsi, params)
' ERROR : >[77] try:
' ERROR : [78] import_.import_()
' ERROR : [79] except SystemExit:
' ERROR : [80] return
' ERROR : 2028 - Traceback (most recent call last):
' File "<Script Block >", line 78, in importbutton_OnClicked
' import_.import_()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 601, in import_
' self.do_import()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 653, in do_import
' self.chain = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 423, in build
' item = builder.build()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 164, in build
' self.build_geo()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetimport.py", line 217, in build_geo
' self.model.name)
' File "<COMObject <unknown>>", line 3, in AddPolygonMesh
' File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 276, in _ApplyTypes_
' result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
' COM Error: Invalid argument specified.[/code]

Re: XSI ZETools

Posted: Sat Oct 13, 2012 1:17 pm
by Marth8880
Tears2Roses wrote:what is BBox? And what does it do? :runaway:
Bounding box. Big blue box that encompasses models in Zero Editor, to put it simply. It controls the model's visibility and point of origin sorta: the model is visible only when any part of the bounding box is visible to the camera.

Re: XSI ZETools

Posted: Sat Oct 13, 2012 5:26 pm
by ANDEWEGET
ANDEWEGET wrote:RIP old message by the hands of not-working copy&paste. Most important part of the message: MshEx does a lot of stuff wrong on which my importer heavily depends => won't be supported.
Added r3. This hopefully should work now...

Re: XSI ZETools

Posted: Sun Oct 14, 2012 2:49 pm
by sereja2
Hmm... This time, I got error, only when try export anim:
Hidden/Spoiler:
[code]' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 686, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 747, in do_export
' if not self.write_msh(self.msh.pack()):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 129, in pack
' data.append(self.animation.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1592, in pack
' data.append(self.cycle.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1627, in pack
' data.append(struct.pack('<LL', self.frames))
' error: pack requires exactly 2 arguments
' - [line 35 in C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZETools\Application\Logic\exporter.py]
' ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
' ERROR : [33] params.preview()
' ERROR : [34] export = andezetexport.Export(xsi, params)
' ERROR : >[35] try:
' ERROR : [36] export.export()
' ERROR : [37] except SystemExit:
' ERROR : [38] return
' ERROR : Traceback (most recent call last):
' File "<Script Block >", line 36, in exportbutton_OnClicked
' export.export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 686, in export
' self.do_export()
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Core\andezetexport.py", line 747, in do_export
' if not self.write_msh(self.msh.pack()):
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 129, in pack
' data.append(self.animation.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1592, in pack
' data.append(self.cycle.pack())
' File "C:\users\Serejenka\Autodesk\Softimage_Mod_Tool_7.5\Addons\XSIZEtools\Application\Modules\msh2.py", line 1627, in pack
' data.append(struct.pack('<LL', self.frames))
' error: pack requires exactly 2 arguments
'
[/code]
Funny: all exported msh, with all versions of ZETools, are always invisible in Zero Editor, and I have to hex edit them, to see... :lol:

Re: XSI ZETools

Posted: Sun Oct 14, 2012 4:22 pm
by ANDEWEGET
What do you have to hex edit? The FLGS chunk?
Weird that that error shows up now... I didn't make any changes to the anim export. I'll take a look at it tomorrow.
At least we're down to one animation error...

Re: XSI ZETools

Posted: Mon Oct 15, 2012 12:44 am
by sereja2
ANDEWEGET wrote:What do you have to hex edit? The FLGS chunk?
I am use my "universal" hex editor code:
Hidden/Spoiler:
[code]33 33 33 3F 33 33 33 3F 33 33 33 3F CC CC CC 4C 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 9A 99 99 3E 9A 99 99 3E 9A 99 99 3E 00 00 80 3F 00 00 80 40 41 54 52 42 04 00 00 00 00 00 00 00[/code]
It should be pasted before TX0D on each texture. Usualy, I am use it, to make models "shiny" (specular), but this code, strong enough, to kill any "flag bug". :jango:

Re: XSI ZETools

Posted: Mon Oct 15, 2012 11:17 am
by ANDEWEGET
What you do is change Diffuse Color Alpha to... very much and the Specular Decay/Gloss/Shinyness to 4. All exporters(Pandemic SWBF1 and Pandemic SWBF2) export colors in a range from 0.0 to 1.0. So changing alpha to over 1.0 shouldn't make any difference. For me it really doesn't make any difference. I can see models exported with the ZETools just fine in both Zero Editors.
Changing the Gloss value doesn't make any difference for me either. I tested 0, 1, 100, 300 and 1000 and none of them changed anything. BTW, specular only worked for me when I either had the Rendertype Specular(4) enabled or the 5th-place-after-ATRB specular enabled. I only tested changing Gloss in SWBF2 though...

I fixed that anim export error, too.

r4 up.