Is it possible to change the wireframe colour of a reference or template view mode object?

Is it possible to change the wireframe colour of a reference or template view mode object?

malcolm_341
Collaborator Collaborator
2,315 Views
4 Replies
Message 1 of 5

Is it possible to change the wireframe colour of a reference or template view mode object?

malcolm_341
Collaborator
Collaborator

Looking for to change the colour of template or reference on just one object, the grey and black options are hard to see. Any way to force this through Mel? I've tried all the tricks layers, overrides, can't seem to get anything other than black and grey wireframe. Alternatively if there was a way to make objects not selectable in the viewport that would also work.

0 Likes
2,316 Views
4 Replies
Replies (4)
Message 2 of 5

Rourker27
Contributor
Contributor

You can do this without mel. If you go to Window -> Settings/Preferences -> Color Settings

In the Inactive tab you under General you can set Template and Reference Layer to any of the colours in the Index Palette. Then anything in Display layers set to either reference or template will have the corresponding wireframe colours that you set.

Message 3 of 5

malcolm_341
Collaborator
Collaborator

Unfortunately I need to change it on just one object.

Message 4 of 5

Rourker27
Contributor
Contributor

oh, right. hmmm, well I did some digging and I couldn't find a way to do it easily. So your best bet would be to set up a scriptJob to make it not selectable. You can do that like this:

proc nonselectable()
{
    $geoName = "pSphere1";
    select -d $geoName;
}

$jobNum = `scriptJob -e "SelectionChanged" nonselectable`;

this will basically deselect whatever you put in your $geoName variable whenever the selection is changed.

to get it to be selectable again you would need to kill the job like this:

scriptJob -kill $jobNum -force;

 

now you can make it whatever colour you want. and you won't be able to select it.

0 Likes
Message 5 of 5

malcolm_341
Collaborator
Collaborator

Oh interesting, that's not ideal because I would need to be able to select the object in the outliner to delete it.

0 Likes