Is there a way to set individual locator's drawing colour?

I want to build a small utility in Maya, that will aid me with modelling. I am stuck on finding a way to set the viewport colours of individual locators.

For example, you can se the colour of individual curves in the attribute editor, but there is not a similar attribute for locators. After some investigating, I have not found a way, at least through the UI

Is there a way to achieve this? I am open to hacky ways, I just really need a way to do this.
Searching around, I came across this post, [Maya] How can l control locator handle size, but the solution only pertains to determining the locators scale.

Thank for any help.

You can edit the display colour of nearly any viewport shape object using the Menu: Display > Wireframe Color…
And the actual command behind this is:

cmds.color("locator1", rgb=(1,1,0))

which would make locator1 yellow.

1 Like

worked perfectly, thanks!