- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am trying to execute the "ConvertToSkin" function in the "meshDeformOps" on a skin wrap modifier.
I recieve an "EXCEPTION_ACCESS_VIOLATION" when attempting to call the function, I think properly.
I have a function where I am passing it an node and a list of nodes to skinwrap to.
The function works until I attempt to "convertToSkin", I have 2 approaches where I try to access the modifier from its stored variable, and where I retrieve it from the node directly. The second, less preferred option is commented out. Both return the same error.
The "ValidModifier" is in there to try and "poke" the modifier to initialize it, an old maxscript trick when things are not working properly.
Here is the relevant function:
function skinwrapStealWeights arg_Node arg_List =
(
newSkin_Wrap = Skin_Wrap()
newSkin_Wrap.engine = 0
newSkin_Wrap.weightAllVerts = true
newSkin_Wrap.meshList = arg_list
addModifier arg_Node newSkin_Wrap
validModifier arg_Node newSkin_Wrap
--newSkin_Wrap.meshDeformOps.ConvertToSkin on
arg_Node.modifiers[#skin_wrap].meshDeformOps.ConvertToSkin on
),
I have tested this in 3dsMax 2021 and 2023, I am looking for pointers, or confirmation on my speculation it may be a bug, in which case I can report it.
Cheers,
Aaron
Solved! Go to Solution.