Hello. I am just getting started with Python scripting in PCBnew, very cool.
I have successfully written a Python script that will find all my resistors and add a custom 3-d STEP model to the resistors via the method:
footprint.Add3DModel(model)
This works incredibly well, however if I run the script twice, (for debugging or whatever) I end up with multiple 3-d models added to one component. Not desirable. My question is that: Is three an equivalent method in PCBnew that will remove a 3d model from a footprint. For example, what I would like is something like:
footprint.RemoveAll3DModels()
I have not been able to find anything to remove a model in the API.
Thank you,
---Lou