I’m attempting to automate the registration/scaling process of multiple parts for the creation of SSM using a similar method as in the Statistical shape model creation DemoFiles script (see first photo), but when I run it I encounter an error mentioning “pymatic”. Why does this error occur, and how can I prevent it from happening?
At first glance, it looks like your “i” is not a 3-matic part (STL) and this is causing the error. Can you confirm that all objects in your “dataset” are STL files?
I appreciate you taking the time to help me out. I use a message box and a get_selection() to identify the parts that go into the variable “dataset”. I just double checked and I get this error when all the objects in the “dataset” are of the type “<trimatic.Part(part_title)>”. If this isn’t an STL, how do I convert it to an STL?
Error Solution:
For some reason, the code that I wrote (pictured in the first pic above) only works if I specifically call the object within the variable, even if the variable only refers to one object (see new code pictured below). Does anyone know why it’s forcing me to do this when the DemoFiles scripts don’t?