How to disable grid?

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