Reset material so featurescript can modify it?

david_brophy
david_brophy Member Posts: 53 ✭✭
I have a lot of bodies which have had their material properties edited interactively. I've now created a featurescript to change the material properties with setProperty. However this doesn't work for bodies where the property has been changed interactively, even if the material is reset to "None". Is there any way to force featurescript to take precedence? Or reset the body so it can be affected by featurescript again?

Best Answer

  • Matt_Shields
    Matt_Shields Member, Onshape Employees Posts: 1,005 PRO
    Answer ✓
    Have you tried the "Reset all" button in part properties?

Answers

  • Matt_Shields
    Matt_Shields Member, Onshape Employees Posts: 1,005 PRO
    Answer ✓
    Have you tried the "Reset all" button in part properties?
  • david_brophy
    david_brophy Member Posts: 53 ✭✭
    That worked a treat, thanks! 🙏