Page 39 of 45

Re: XSI ZETools

Posted: Tue Jul 07, 2015 9:28 am
by ANDEWEGET
ANDEWEGET wrote:The problem seems to be that there's duplicate and jumping model indices in the .msh (result of the hex editing). So it assigns the weights to wrong bones. The default behavior for the in-game .msh parser just accidentally gets it right.

To solve that you'd need to go through the .msh file and change the indices in the WGHT chunks to the correct model indices (indices should be in order as they appear in the msh, 1-2-3-...).
Update 1.3.6

Changelog:
Hidden/Spoiler:
Minor modifications to Material Editor layout.
Position, Rotation and Scale parameters are now used to check whether an object is animated.
Added logging for the export.
Added "Open Export Log" menu entry.
Export copy-error-to-clipboard now copies the last 15 lines of the export log, too.

Re: XSI ZETools

Posted: Thu Jul 23, 2015 8:14 am
by Deviss
i need report 2 errors importing little msh (weapons)
Hidden/Spoiler:
INFO (861, do_import): ==========================================
INFO (862, do_import): Starting import at 2015-07-23 09:12:56.296000.
INFO (863, do_import): .msh file path: C:\Softimage\E-11s\com_weap_E-11_Blaster_Rifle_C.msh
INFO (882, do_import): Starting unpack.
ERROR (886, do_import):
Traceback (most recent call last):
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 883, in do_import
self.msh = unpacker.unpack()
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Modules\msh2_unpack.py", line 183, in unpack
raise UnpackError('Unrecognized chunk {0} in MSHUnpack (can be a valid chunk but doesnt fit into this unpack level).'.format(hdr))
UnpackError: Unrecognized chunk NAME in MSHUnpack (can be a valid chunk but doesnt fit into this unpack level).
Hidden/Spoiler:
Last 15 log lines:


INFO (861, do_import): ==========================================
INFO (862, do_import): Starting import at 2015-07-23 09:15:18.703000.
INFO (863, do_import): .msh file path: C:\Softimage\FC-1 Flechette\com_weap_FC-1_Flechette_B.msh
INFO (882, do_import): Starting unpack.


Traceback:


Traceback (most recent call last):
File "<Script Block >", line 91, in importbutton_OnClicked
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 852, in import_
self.do_import()
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 883, in do_import
self.msh = unpacker.unpack()
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Modules\msh2_unpack.py", line 116, in unpack
mdlcoll.add(mdl.unpack())
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Modules\msh2_unpack.py", line 240, in unpack
self.mdl.segments.add(segm.unpack())
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Modules\msh2_unpack.py", line 418, in unpack
self.seg.material = self.up.up.msh.get_mat_by_index(unpack('<L', self.fh.read(4))[0])
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Modules\msh2.py", line 223, in get_mat_by_index
return self.materials[index]
File "C:\users\Usuario\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Modules\msh2.py", line 591, in __getitem__
return self.materials[key]
IndexError: list index out of range

Re: XSI ZETools

Posted: Sat Jul 25, 2015 6:40 pm
by ANDEWEGET
First one looks like someone messed up while hex-editing and put a NAME chunk where none should be or didn't set the right size indicators. You can check the Chunk Structure here to see which chunks can contain NAME chunks. If you can't find the problem, send me the .msh.

The second one means that one of the segments (SEGM) has an invalid material index (MATI). Should be easy to go through the .msh and check every material index against the MATL list to make sure the material actually exists.

Re: XSI ZETools

Posted: Sun Aug 09, 2015 12:47 pm
by thelegend
@Andeweget.

I just wanted to say thank you very much for maing this tool for xsi. I just got cloth perfectly working without any massive errors or something else. The collisions work, the animations and more. Again thank you so much for this. And good luck for future releases, fixes etc. :thumbs: :thumbs: :thumbs:

Re: XSI ZETools

Posted: Mon Nov 02, 2015 5:13 am
by giftheck
So, it turns out that with more recent versions of Mod Tool, GATOR functionality has been lost, meaning you can't merge meshes without losing the enveloping/weighting. I personally import units in chunks (usually an assembled body then head/shoulders, then gear, then whatever else is necessary) Is there any chance this could be a feature added into ZETools?

Re: XSI ZETools

Posted: Mon Nov 02, 2015 8:05 am
by ANDEWEGET
Softimage 2015 has an option in the Merge dialog to merge Shape Animations and Envelope Weights. I'm pretty sure ModTool has that, too, and even if not, the student version of Softimage 2015 is free.

Re: XSI ZETools

Posted: Wed Nov 25, 2015 9:18 am
by giftheck
Any idea what's causing this error on export? I'm trying to export a weapon (I imported another and imported my mesh over the top of it):

Code: Select all

Traceback (most recent call last):
  File "<Script Block >", line 35, in exportbutton_OnClicked
  File "C:\Users\Gareth\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0011\Application\Core\andezetexport.py", line 774, in export
    self.do_export()
  File "C:\Users\Gareth\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0011\Application\Core\andezetexport.py", line 807, in do_export
    conv = ModelConverter(model, self)
  File "C:\Users\Gareth\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0011\Application\Core\andezetexport.py", line 146, in __init__
    self.geo = si_mdl.ActivePrimitive.GetGeometry2(0)
AttributeError: 'NoneType' object has no attribute 'GetGeometry2'

Re: XSI ZETools

Posted: Wed Nov 25, 2015 2:01 pm
by ANDEWEGET
Make sure that you don't have any unsupported object types (supported types are Poly. Meshes, Nulls and Bones). If that's not it you can send me your scene in a format that works in SI 2015 (.emdl/.xsi should work).

Re: XSI ZETools

Posted: Mon Dec 14, 2015 7:26 pm
by giftheck
Is ther any special setup I need to get these working in Windows 10 64bit, or is the setup the same as it is in 32 bit?

Re: XSI ZETools

Posted: Mon Jan 04, 2016 3:46 pm
by asdfjkl
ggctuk wrote:Is ther any special setup I need to get these working in Windows 10 64bit, or is the setup the same as it is in 32 bit?
Just got it on Win10. Make sure you have Python 2.6 installed... I had 3.5 installed and pywin32 wont work with it. Use the links from the install site and that version of python.

Re: XSI ZETools

Posted: Mon Jan 04, 2016 5:55 pm
by giftheck
Thanks, but I already got it working.

Re: XSI ZETools

Posted: Wed Feb 17, 2016 7:40 am
by Anakin
I got an error when trying to export an model with cloth. I'm pretty sure i did something wrong, but i hope you can tell me what i did wrong with that log
Hidden/Spoiler:
[code]
Last 15 log lines:


INFO (586, convert): Is geodynamic.
INFO (852, do_export): Finished processing.
INFO (849, do_export): Processing model "clonecommander".
INFO (575, convert): Is geometry.
INFO (239, get_vertices): Processed 10113 vertices.
INFO (339, get_faces): Processed 3371 faces.
INFO (586, convert): Is geodynamic.
INFO (852, do_export): Finished processing.
INFO (849, do_export): Processing model "kama".
INFO (580, convert): Is cloth.
INFO (508, get_cloth_geo): Retrieved cloth deformers: [u'bone_pelvis']
INFO (516, get_cloth_geo): Processed 100 faces.
INFO (526, get_cloth_geo): Processed 67 vertices.
INFO (852, do_export): Finished processing.
INFO (857, do_export): Removed multiple vertices.


Traceback:


Traceback (most recent call last):
File "<Script Block >", line 35, in exportbutton_OnClicked
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 811, in export
self.do_export()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 858, in do_export
self.msh.models.assign_cloth_collisions()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Modules\msh2.py", line 904, in assign_cloth_collisions
collision.primitive_type = cloth_collision_primitives[collision.name].primitive[0]
KeyError: 'ModelCommander.p_r_thigh'

[/code]

Re: XSI ZETools

Posted: Wed Feb 17, 2016 8:10 am
by AceMastermind
Anakin wrote:

Code: Select all

	    collision.primitive_type = cloth_collision_primitives[collision.name].primitive[0]
	KeyError: 'ModelCommander.p_r_thigh'
Collision: For XSI ZETools to recognize collision primitives the name needs to contain the type of primitive (cube, cylinder, sphere).
http://schlechtwetterfront.github.io/xs ... guidelines

examples:
p_cube_r_thigh
p_sphere_r_thigh
p_cylinder_r_thigh or just p_cyl_r_thigh

Re: XSI ZETools

Posted: Wed Feb 17, 2016 9:23 am
by Anakin
:oops: I thought it was something simple.

But it still does not work.
Hidden/Spoiler:
[code]
Last 15 log lines:


INFO (586, convert): Is geodynamic.
INFO (852, do_export): Finished processing.
INFO (849, do_export): Processing model "clonecommander".
INFO (575, convert): Is geometry.
INFO (239, get_vertices): Processed 10113 vertices.
INFO (339, get_faces): Processed 3371 faces.
INFO (586, convert): Is geodynamic.
INFO (852, do_export): Finished processing.
INFO (849, do_export): Processing model "kama".
INFO (580, convert): Is cloth.
INFO (508, get_cloth_geo): Retrieved cloth deformers: [u'bone_pelvis']
INFO (516, get_cloth_geo): Processed 100 faces.
INFO (526, get_cloth_geo): Processed 67 vertices.
INFO (852, do_export): Finished processing.
INFO (857, do_export): Removed multiple vertices.


Traceback:


Traceback (most recent call last):
File "<Script Block >", line 35, in exportbutton_OnClicked
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 811, in export
self.do_export()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 858, in do_export
self.msh.models.assign_cloth_collisions()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Modules\msh2.py", line 904, in assign_cloth_collisions
collision.primitive_type = cloth_collision_primitives[collision.name].primitive[0]
KeyError: 'ModelCommander.p_cylinder_r_thigh'

[/code]
Hidden/Spoiler:
Image
I hope everything you need is on the picture.

Re: XSI ZETools

Posted: Wed Feb 17, 2016 10:49 am
by AceMastermind
Well it seems if you have the hierarchy under a model, Add from Selection will list the primitive names in Collision starting with ModelCommander.p_cylinder_r_thigh instead of just p_cylinder_r_thigh, in your situation. I would shorten those names back to just the object name and try again.

Re: XSI ZETools

Posted: Wed Feb 17, 2016 10:59 am
by Anakin
i thought so, too and i already did that. After that i got this error:
Hidden/Spoiler:
[code]Last 15 log lines:


INFO (239, get_vertices): Processed 960 vertices.
INFO (339, get_faces): Processed 320 faces.
INFO (586, convert): Is geodynamic.
INFO (852, do_export): Finished processing.
INFO (849, do_export): Processing model "clonecommander".
INFO (575, convert): Is geometry.
INFO (239, get_vertices): Processed 10113 vertices.
INFO (339, get_faces): Processed 3371 faces.
INFO (586, convert): Is geodynamic.
INFO (852, do_export): Finished processing.
INFO (849, do_export): Processing model "kama".
INFO (580, convert): Is cloth.
INFO (508, get_cloth_geo): Retrieved cloth deformers: [u'bone_pelvis']
INFO (516, get_cloth_geo): Processed 100 faces.
INFO (526, get_cloth_geo): Processed 67 vertices.


Traceback:


Traceback (most recent call last):
File "<Script Block >", line 35, in exportbutton_OnClicked
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 811, in export
self.do_export()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 851, in do_export
self.msh.models.add(conv.convert())
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 582, in convert
self.msh2_model.segments = self.get_cloth()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 556, in get_cloth
clothgeo.collisions = self.get_cloth_collisions(clothgeo)
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 544, in get_cloth_collisions
collision.parent = self.export.xsi.Dictionary.GetObject(collision_name, False).Parent.Name.encode(STR_CODEC)
AttributeError: 'NoneType' object has no attribute 'Parent'
[/code]

Re: XSI ZETools

Posted: Wed Feb 17, 2016 11:22 am
by AceMastermind
Anakin wrote:
Hidden/Spoiler:
[code] Traceback (most recent call last):
File "<Script Block >", line 35, in exportbutton_OnClicked
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 811, in export
self.do_export()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 851, in do_export
self.msh.models.add(conv.convert())
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 582, in convert
self.msh2_model.segments = self.get_cloth()
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 556, in get_cloth
clothgeo.collisions = self.get_cloth_collisions(clothgeo)
File "C:\Users\Anakin\Autodesk\Softimage_7.5\Addons\xsizetools-1.3.0019\Application\Core\andezetexport.py", line 544, in get_cloth_collisions
collision.parent = self.export.xsi.Dictionary.GetObject(collision_name, False).Parent.Name.encode(STR_CODEC)
AttributeError: 'NoneType' object has no attribute 'Parent'
[/code]
Yeah i'm getting the exact same message even with a simple 4 object hierarchy:
dummyroot
  • bone_root
    • cape
      • p_sphere

Re: XSI ZETools

Posted: Wed Feb 17, 2016 11:26 am
by Anakin
:? so the solution is....

Re: XSI ZETools

Posted: Wed Feb 17, 2016 11:55 am
by AceMastermind
It looks like a problem with the way cloth related data is being collected, it exports fine when you delete the ZECloth custom parameter set.

The next best thing is to move your characters into one of these to export cloth:
viewtopic.php?f=36&t=22345


EDIT
arrrg cloth collision has to be named starting with a c_ instead of a p_ , completely forgot about that and didn't catch it! :cpu:
You can tell its been a while since I exported cloth. :lol:

Re: XSI ZETools

Posted: Wed Feb 17, 2016 4:18 pm
by ANDEWEGET
While not evident from any of the ZETools docs, cloth collisions need to start with "c_" to be gathered correctly. Cloth collision primitives also don't require special naming conventions for ZETools to recognize the type.

Update 1.3.7

Changelog:
Hidden/Spoiler:
Fixed cloth always requiring weights.
Fixed cloth not being deleted if the object has no geometry.
Added test to check for cloth collision primitive names to start with "c_".
Normal collision primitives don't need to follow special naming conventions anymore.