Nice one, thanks Paul.
Here’s an idea if you want to extend this: How about a tool that will take all selected objects and display their names in the viewport if they are not on the current list. If they are on the list, remove their viewport labels.
Right now, your struct does not work for more than one object at a time, so that would need to be added.
Cheers
– MartinB
It does work for more then one at a time. Look at the usage at the top and you can see that you need to make an instance of the struct for each label. So just loop through all the selected objects and pass in the name and how you would like to display the label. I would assume that you would want to have the labels aligned to the objects that are selected so you can pass in #node to both the x and y and then al so the object need to be passed as well.
I guess I could add the ability to loop through an array of labels and display them all. I will see if I can find the time to add that.
uh i can think of a few ways to implement that…
if there just wern’t about this 404 error. yeah the links are not workin, but it’s a great idea.
maybe you can post up the part about the text displaying?