Deselect all materials
pciccone
Posts: 661
Hello again.
Thanks again for the previous help, it all worked out very well.
Is there a way to programmatically deselect all the selected materials? This would be equivalent to clicking on an empty area of the viewport.
Thanks in advance.
Comments
Yes... and its pretty straight forward. Using the static functions on DzMaterial, iterate over the material list and check if DzMaterial::isSelected() is true. If it is, call DzMaterial::select( false ) on that material.
-Rob
Thanks. I used that but I was wondering if there was a single direct call. I was just afraid about the performance cost.
Thank you for the confirmation.
Cheers.