How can i disable dragging, resizing window/viewport in omniverse layout?

Hey,

I want to disable resizing components in layout in production.

Below is my json file.

default.json


[
  {
    "children": [
      {
        "children": [
          {
            "dock_id": 1,
            "dock_tab_bar_enabled": false,
            "dock_tab_bar_visible": false,
            "height": 41.0,
            "position_x": 0.0,
            "position_y": 22.0,
            "selected_in_dock": true,
            "title": "Toolbar 1",
            "visible": true,
            "width": 1500.0
          }
        ],
        "dock_id": 1,
        "position": "TOP"
      },
      {
        "children": [
          {
            "children": [
              {
                "dock_id": 3,
                "dock_tab_bar_enabled": false,
                "dock_tab_bar_visible": false,
                "height": 889.0,
                "position_x": 0.0,
                "position_y": 84.0,
                "selected_in_dock": true,
                "title": "Menu 1",
                "visible": true,
                "width": 181.0
              }
            ],
            "dock_id": 3,
            "position": "LEFT"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "dock_id": 5,
                    "dock_tab_bar_enabled": false,
                    "dock_tab_bar_visible": false,
                    "height": 891.0,
                    "position_x": 194.0,
                    "position_y": 83.0,
                    "selected_in_dock": true,
                    "title": "Viewport Scene",
                    "visible": true,
                    "width": 1232.0
                  }
                ],
                "dock_id": 5,
                "position": "LEFT"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "dock_id": 7,
                        "dock_tab_bar_enabled": false,
                        "dock_tab_bar_visible": false,
                        "height": 845.0,
                        "position_x": 1416.0,
                        "position_y": 95.0,
                        "selected_in_dock": true,
                        "title": "Color Properties",
                        "visible": true,
                        "width": 255.0
                      }
                    ],
                    "dock_id": 7,
                    "position": "TOP"
                  },
                  {
                    "children": [
                      {
                        "dock_id": 8,
                        "dock_tab_bar_enabled": false,
                        "dock_tab_bar_visible": false,
                        "height": 59.0,
                        "position_x": 1346.0,
                        "position_y": 937.0,
                        "selected_in_dock": true,
                        "title": "Color Producer",
                        "visible": false,
                        "width": 260.0
                      }
                    ],
                    "dock_id": 8,
                    "position": "BOTTOM"
                  }
                ],
                "dock_id": 6,
                "position": "RIGHT"
              }
            ],
            "dock_id": 4,
            "position": "RIGHT"
          }
        ],
        "dock_id": 2,
        "position": "BOTTOM"
      }
    ],
    "dock_id": 3351234147
  },
  {
    "dock_id": 0,
    "height": 0.0,
    "position_x": 3.2211111663852886e+38,
    "position_y": 3.6666666663852886e+38,
    "selected_in_dock": false,
    "title": "Options",
    "visible": false,
    "width": 230.0
  }
]

I tried using resizeable = false, draggable = false, flags = ["no_move"] in children, these are not working.

Is there a way to disable resizing/dragging the components in layout??

Thanks,
XXX

You want to disable JUST resizing, or moving and rotating as well? The easiest thing is not with code, but just to disable the W, E, R keys for Move, Rotate and Scale on the keyboard. You can easily do this with the HOTKEYS Extension. Go in there and delete the key.

1 Like

Hi there,

Thank you for reply.

Unfortunately the solution provided is not working, to repeat question, we can drag/resize viewport by clicking on right side or bottom of viewport box.

I have attached a image that shows the blue line when we click, we can drag it, i need to disable that. I have 3 windows that are on top, left and right of viewport, so those need to be stable and fixed.

Please help me…

Thanks,

Oh I am sorry. I mis-understood what you were trying to do. I have no idea if that is even possible. Why are you trying to disable that? That is a very important CORE feature of kit. Customizable, flexible, resizable UI. I think it is very important that, it stays flexible. I am not sure why you want to disable that.

Are you wanting to disable that for YOU, the user or for your CLIENT, in some custom app you are building? Also you are using quite an old version now. We are up to 106.5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.