Forum: Poser Technical


Subject: The Poser Subdivision Morph Sorcery Project

odf opened this issue on Dec 16, 2021 ยท 223 posts


odf posted Fri, 14 January 2022 at 2:54 PM

adp001 posted at 1:46 PM Fri, 14 January 2022 - #4433255

ValueError: operands could not be broadcast together with shapes (387296,3) (1539199,3)



Smells like a numpy error :)

I found this hint:

This error occurs when you attempt to perform matrix multiplication using a multiplication sign (*) in Python instead of the numpy.dot() function.

It's certainly numpy that's complaining, but the problem is with the inputs, namely here that the morphedVertices array does not have enough rows (i.e. vertices). So the actual error would have happened earlier, possibly in a different numpy operation, but it could also be something else.

My hope is that I made a last minute change that I forgot to check for Python 2.7 safety, because that would be easy to reproduce and debug. If it's a P11 versus P12 thing, things will be trickier.


PS: By "weird error" I didn't mean that I was unfamiliar with this kind of error message. I'm very familiar, it's basically numpy's way of saying hello. I meant it's weird specifically that this kind of error happened on that line.

-- I'm not mad at you, just Westphalian.