ラジアルメニュー

Radial Menu(ラジアルメニュー)

ラジアルメニューは、コマンドを実行するための円形のインターフェースです。Plasticityで利用可能なすべてのコマンドを実行できます。デフォルトでは、「Selection mode」と「Viewport settings」という2つのラジアルメニューがあります。さらに、ユーザーは独自のラジアルメニューを作成することもできます。

Radial Menu

ラジアルメニューのセットアップ

デフォルトの「Selection mode」と「Viewport settings」ラジアルメニューを使用するには、いくつかの設定が必要です。

  1. 以下の2つのファイルをダウンロードしてください。クリックするとテキストの内容が表示されます。右上の"ダウンロード"をクリックしてください。
  2. ダウンロードしたファイルをPlasticityの3Dビューポートにドロップします。
  3. 画面上に変化はありませんが、ラジアルメニューの定義が読み込まれて使用する準備ができています。

ラジアルメニューにアクセスするためのショートカットを割り当てる必要があります。

  1. Fキーを押して、コマンドパレットを開きます。
  2. コマンドパレットに「menu」と入力します。そうすると、「Radial Menu: Selection Mode」と「Radial Menu: Viewport Settings」のエントリが表示されます。
  3. 「Radial Menu: Selection Mode」を右クリックして、ショートカットを割り当てます。ショートカットの割り当て方法については、このセクションを参照してください。
  4. 「Radial Menu: Viewport Settings」を右クリックして、ショートカットを割り当てます。
  5. 割り当てたショートカットを押すことで、作成したラジアルメニューを表示できます。

ラジアルメニューの使用方法

他のコマンドと同様に、ショートカットを押してラジアルメニューを表示します。

  1. 事前に設定したショートカットを押します。
  2. カーソルを中心にラジアルメニューが表示されます。
  3. メニューの項目をクリックすると、コマンドが実行されます。
  4. または、ショートカットキーを押したまま、項目にカーソルを合わせて、キーを離すと、コマンドが実行されます。

新しいラジアルメニューの作成

任意のコマンドでラジアルメニューを作成できます。メニューの名前とそのコマンドはテキストファイルで設定されます。
例として、"Spline Curve"、"Bridge"、および"Lock Selected"を含む"My Menu"ラジアルメニューをデザインし、ショートカットCtrl + Shift + Fでアクセスできるようにします。

  1. テキストエディタを開き、新しいドキュメントを作成します。
  2. ドキュメントを「mymenu.radial.json」というファイル名で保存します。
  3. 次の内容を入力します:
mymenu.radial.json
{
    "name": "My Menu",
    "command": "your-name:mymenu",
    "items": [
        {
            "command": "command:curve",
            "icon": "curve",
            "label": "Curve"
        },
        {
            "command": "command:bridge",
            "icon": "bridge",
            "label": "Bridge"
        },
        {
            "command": "command:lock-selected",
            "icon": "lock-selected",
            "label": "Lock Selected"
        }
    ]
}

説明:(//で始まる説明は参考のためだけにあり、実際のファイルには含めないでください)

  • name: ラジアルメニューのタイトルを表します。任意の名前を選択できます。コマンドパレットに表示され、「Radial Menu: (name)」の形式になります。
  • command: ラジアルメニューの一意の識別子です。既存のコマンドとの競合を避けるために、作者の名前などのユニークな要素を取り入れることを検討してください。
  • items: ラジアルメニューに統合されるコマンドのリストです。複数のコマンドを含めることができます。
    • command: 組み込むコマンドの内部名称です。これらの指定のリストはこちらで見ることができます。
    • icon: ラジアルメニューに表示されるアイコンを示します。プリセットのアイコンがないコマンドもあることに注意してください。
    • label: ラジアルメニューの中心に表示されるラベルです。対応するアイコンがない場合、ラベルの最初の2文字が表示されます。
{
    "name": "My Menu",      // Represents the radial menu's title
    "command": "your-name:mymenu",   // A unique identifier for the radial menu
    "items": [
        {
            "command": "command:curve",  // The internal designation for the command to be incorporated
            "icon": "curve",             // Denotes the icon that appears in the radial menu
            "label": "Curve"             // The central label in the radial menu
        },
        ...
    ]
}
  1. ファイルを保存します。
  2. 作成したファイルをPlasticityの3Dビューポートにドロップします。
  3. 画面上に変化はありませんが、ラジアルメニューの定義が読み込まれて使用する準備ができています。
  4. Fキーを押して、コマンドパレットを開きます。
  5. コマンドパレットに「menu」と入力すると、読み込まれたラジアルメニューの一覧が表示されます。
  6. 「Radial Menu: My Menu」を右クリックして、ショートカットCtrl + Shift + Fを割り当てます。ショートカットの割り当て方法については、このセクションを参照してください。
  7. これで、ショートカットCtrl + Shift + Fを押すことで、作成したラジアルメニューを表示できます。

ラジアルメニューの編集

設定のために作成したファイルは、Plasticityの設定フォルダーに保存されています。このファイルを編集することで、ラジアルメニューを編集できます。

  1. 設定フォルダーを開きます

C:\Users\<user name>\.plasticity\radials を開きます。

  1. フォルダ内に設定ファイルがあります。このファイルをテキストエディタで開きます。
  2. 新規作成時と同じ要領で、ファイルを編集します。
  3. ファイルを保存します。
  4. 保存したファイルを、Plasticityの3Dビューポートにドロップします。
  5. これで設定し直したラジアルメニューが使用できるようになります。

ラジアルメニューの削除

Plasticityの設定フォルダーにあるファイルを削除することで、ラジアルメニューを削除できます。

  1. 設定フォルダーを開きます

C:\Users\<user name>\.plasticity\radials を開きます。

  1. フォルダ内に設定用ファイルがあります。削除したいファイルをフォルダから取り出すと、ラジアルメニューが削除されます。

ラジアルメニューからラジアルメニューを呼び出す方法

  1. 呼び出されるラジアルメニューを作成します。ここではこのようなラジアルメニューを定義しました。
2nd-my-menu.radial.json
{
    "name": "2nd My Menu",
    "command": "2nd-my-menu",
    "items": [
        {
            "command": "command:center-box",
            "icon": "center-box",
            "label": "Center Box"
        },
        {
            "command": "command:cylinder",
            "icon": "cylinder",
            "label": "Cylinder"
        },
        {
            "command": "command:sphere",
            "icon": "sphere",
            "label": "Sphere"
        }
    ]
}
  1. このラジアルメニューを「Selection mode」ラジアルメニューから呼び出すには、itemsの最後に次の項目を追加します。この項目のcommandには、呼び出されるラジアルメニューのcommandの前に"view:radial:"を付け足した言葉を指定します。
{
    "command": "view:radial:2nd-my-menu",
    "icon": "2nd",
    "label": "2nd"
}

その結果、selection-mode.radial.jsonはこのようになります

selection-mode.radial.json
{
    "name": "Selection mode",
    "command": "selection:mode",
    "items": [
        {
            "command": "selection:mode:set:control-point",
            "icon": "control-point",
            "label": "Control Point"
        },
        {
            "command": "selection:mode:set:solid",
            "icon": "solid",
            "label": "Solid"
        },
        {
            "command": "selection:mode:set:edge",
            "icon": "edge",
            "label": "Edge"
        },
        {
            "command": "selection:mode:set:face",
            "icon": "face",
            "label": "Face"
        },
        {
            "command": "view:radial:2nd-my-menu",
            "icon": "2nd",
            "label": "2nd"
        }
    ]
}

これで「Selection mode」ラジアルメニューから、「2nd My Menu」ラジアルメニューを呼び出すことができるようになります。

組み込むコマンドの内部名称

command:alternative-duplicate
command:boolean
command:bridge
command:bridge-curve
command:bridge-edge
command:bridge-surface
command:bridge-vertex
command:center-box
command:center-circle
command:center-point-arc
command:center-rectangle
command:check
command:constrained-surface
command:control-point-curve
command:convert-vertex
command:corner-box
command:corner-rectangle
command:create-solid-from-faces
command:create-viewspace-construction-plane
command:create-viewspace-construction-plane-at-origin
command:curve
command:curve-array
command:cut
command:cut-curve
command:cylinder
command:delete
command:delete-control-point
command:delete-edge
command:delete-face
command:delete-group
command:delete-redundant-topology
command:deselect-all
command:dissolve
command:dissolve-face
command:draft-face
command:duplicate
command:duplicate-curve-and-project
command:unjoin
command:unjoin-curves
command:unjoin-faces
command:unjoin-shells
command:export-cad
command:export-obj
command:export-stl
command:extend
command:extend-curve
command:extend-edge
command:extend-sheet
command:extrude
command:fillet
command:fillet-curve
command:fillet-shell
command:fillet-vertex
command:find-boundary-edges
command:focus
command:freestyle-mirror
command:freestyle-move
command:freestyle-move-item
command:freestyle-offset-planar-curve
command:freestyle-rotate
command:freestyle-rotate-item
command:freestyle-scale
command:freestyle-scale-item
command:group-selected
command:hide-selected
command:hide-unselected
command:hollow
command:hollow-solid
command:imprint
command:imprint-body-body
command:imprint-curve-body
command:invert-hidden
command:invert-selection
command:isoparam
command:join
command:join-curves
command:join-sheets
command:line
command:lock-selected
command:loft
command:loft-guide
command:match-face
command:mirror
command:move
command:move-control-point
command:move-empty
command:move-face
command:move-item
command:offset-curve
command:offset-edge
command:offset-face
command:offset-face-loop
command:offset-planar-curve
command:offset-region
command:patch
command:pipe
command:place
command:polygon
command:project
command:project-body-body
command:project-curve-body
command:project-curve-curve
command:push-face
command:radial-array
command:rebuild
command:rebuild-curve
command:rebuild-face
command:rectangular-array
command:refillet-face
command:remove-fillets-from-shell
command:remove-item
command:remove-material
command:revolve
command:rotate
command:rotate-control-point
command:rotate-empty
command:rotate-face
command:rotate-item
command:scale
command:scale-control-point
command:scale-empty
command:scale-face
command:scale-item
command:select-adjacent
command:select-all
command:select-all-curves
command:set-material
command:smart-command
command:sphere
command:spiral
command:split-segment
command:subdivide-curve
command:sweep
command:sweep-tool
command:text
command:thicken
command:thicken-sheet
command:three-point-arc
command:three-point-box
command:three-point-circle
command:three-point-rectangle
command:trim
command:two-point-circle
command:ungroup-selected
command:unhide-all
command:untrim
command:unwrap-face
command:wrap-face
edit:repeat-last-command
file:export
file:import
file:new
file:open
file:save
file:save-as
file:save-as-startup
file:save-version
selection:convert:edge
selection:convert:face
selection:convert:solid
selection:mode:set:all
selection:mode:set:control-point
selection:mode:set:edge
selection:mode:set:face
selection:mode:set:solid
selection:toggle:control-point
selection:toggle:edge
selection:toggle:face
selection:toggle:solid
snaps:toggle-grid
snaps:toggle-snaps
view:radial:selection:mode
view:radial:viewport:settings
view:sidebar:toggle
viewport:cplane:selection
viewport:focus
viewport:grid:decr
viewport:grid:incr
viewport:navigate:back
viewport:navigate:bottom
viewport:navigate:front
viewport:navigate:left
viewport:navigate:right
viewport:navigate:selection
viewport:navigate:top
viewport:toggle-edges
viewport:toggle-faces
viewport:toggle-orthographic
viewport:toggle-overlays
viewport:toggle-x-ray