Notifications
Clear all

[Closed] ImportSkinDataNoDialog

 MZ1

I got “unknown system exception” when I want to use this function:


skinUtils.ImportSkinDataNoDialog true false false false false 10 0

Any idea how we can fix this? when I remove a bone from skin, it’s work. but I don’t have any clue why this happen.
In Max 2017 I got little more description about the error, but ofcurse is not enough:



-- MAXScript Listener Eval Exception:
-- Unknown system exception
-- MAXScript callstack:
--   thread data: threadID:3728
--   ------------------------------------------------------
--   [stack level: 0]
--   In top-level


2 Replies

Are you making sure to select the mesh and its skindata?
also

skinUtils.ImportSkinDataNoDialog true false false false false 0.01 0

this has worked for me in max 2013 and 2015, 2016, 2017, have not tried in other max versions.

1 Reply
 MZ1
(@mz1)
Joined: 10 months ago

Posts: 0

I think this is a bug, because other users have been reported the same problem:
http://forums.cgsociety.org/showthread.php?t=1049561

Let me describe my case, maybe help you to find the solution:
Let say we have mesh1 and mesh2 with different topology,skin and bones. one bone from mesh1 (bone1) and one bone from mesh2 (bone2) are in the same place. I want to transfer skin data for the bone1 to the bone2. note that two skin doesn’t have the same bone count.
When this error is not exist? When I remove a bone from mesh2 that is far from bone2 and has zero weights on vertexes around the bone2.