Change display colour from material color to object color.

Change display colour from material color to object color.

joe_jobson
Participant Participant
398 Views
1 Reply
Message 1 of 2

Change display colour from material color to object color.

joe_jobson
Participant
Participant

The option in the command panel, is this possible to change through maxscript or pymxs?

0 Likes
399 Views
1 Reply
Reply (1)
Message 2 of 2

joe_jobson
Participant
Participant

Nevermind figured it out this can be deleted. Or if people want to know:

import pymxs
rt = pymxs.runtime

# Function to set shaded display color mode to object color
def set_shaded_display_color_to_object():
# Set the shaded display color to 'byObject'
rt.displayColor.shaded = rt.name('object')

# Redraw the views to update the display
rt.completeRedraw()

# Call the function
set_shaded_display_color_to_object()

0 Likes