How to disable the default grid using python code?
in the viewport click the eye icon and turn off the grid or change any other opions
you can use the get_as_int call from the script editor to see what the current displayOptions are set to
import carb
opts = carb.settings.get_settings().get_as_int("persistent/app/viewport/displayOptions")
print(opts)
# this is one setting that will turn off the grid, but yours may vary depending on your other options
opts = carb.settings.get_settings().set("persistent/app/viewport/displayOptions", 3207)
you can also just set it to zero to hide everything
opts = carb.settings.get_settings().set("persistent/app/viewport/displayOptions", 0)
3 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.