You are incorrectly creating matrix attributes: eg.: The input matrix is created as
> TransformHistory.matrixInputAttribute = matrixAttributeFn.create( > 'inMatrix', 'inMatrix', om.MFnMatrixData.kMatrix) but it should be > TransformHistory.matrixInputAttribute = matrixAttributeFn.create( > 'inMatrix', 'inMatrix', om.MFnMatrixAttribute.kDouble) # or > om.MFnMatrixAttribute.kFloat > depends what you want (Also your output matrix suffers from the same problem) The last parameter is just an enum value(in this case om.MFnMatrixData.kMatrix which holds the value 5 and om.MFnMatrixAttribute.kDouble what equals to 1) but since we don't know the underlying implementation is, putting in undocumented values is questionable. But how do we know that what values are supported? It's in the Python API documentation <https://i.imgur.com/UwKfZyK.png> or also in the C API <http://download.autodesk.com/us/maya/2009help/api/class_m_fn_matrix_attribute.html#d1a874dace8ec93dc5a4634aea93f6b4> . On Monday, November 6, 2017 at 6:59:27 AM UTC+1, Alec Fredericks wrote: > > Hi. After trying a little bit to sort this out, I still can't figure out > why it's crashing. It's choking on foundation.dll and I've discovered that > it's sometimes a permissions error that causes it. > Anyway, I've attached the crash log and dump files. I've also updated the > plug-in template a little so it represents the latest. > https://pastebin.com/yZn9vUz5 > > Thanks, > Alec > > > > On Monday, October 30, 2017 at 11:40:46 AM UTC-7, Ravi Jagannadhan wrote: >> >> What's your crash's stack trace? >> >> On Mon, Oct 30, 2017 at 11:28 AM, Alec Fredericks <alec.fr...@gmail.com> >> wrote: >> >>> Hi there. >>> I wanted to finally start writing plug-ins for Maya using Python. To >>> start, I created a template for myself that just takes a matrix as an input >>> and outputs the same matrix -- basically, a compute devoid of any computing. >>> When I plug the matrix of one object into it and connect the output of >>> the matrix (via a decompose matrix node for the time being -- I'll output >>> constituent transform data later) to the translation of another object, I >>> get the expected output. Object 2 follows object 1. >>> >>> The problem is that after wiggling object 1 around for a little bit, >>> Maya crashes eventually, giving me an error similar to this: undo of >>> command caused reentrant call to undo manager >>> >>> I guess it could be that I need to add some undo code in there. >>> >>> I threw my code up on pastebin if anyone has a moment to look at it to >>> see what I did wrong. I'll keep poking at it, too, and maybe adding a >>> debugger to the mix. >>> >>> https://pastebin.com/vMeaJME5 >>> >>> >>> Thanks, >>> Alec >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Python Programming for Autodesk Maya" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to python_inside_maya+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/python_inside_maya/7ea5ece7-a6c2-4c23-92a4-b300cbf926d6%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/python_inside_maya/7ea5ece7-a6c2-4c23-92a4-b300cbf926d6%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Where we have strong emotions, we're liable to fool ourselves - Carl Sagan >> > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7cb49fa7-c616-4047-9750-3b8d4a8df81e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.