Skip to content

Instrument Tools Addon

RishiMenon2004 edited this page Mar 21, 2023 · 4 revisions

Blender2MTS - Instrument Tools

Installation

NOTE: Please note that this addon will not work on any version below 2.8!

  1. Edit -> Preferences -> Add-ons

  2. On the top of the window, click on "Install..."

  3. Select the "Blender2MTS - Instrument Tools.zip" file and click install

Using The Addon

Making Instruments

Numbers Panel (Open with N key) -> MTS/IV Tab -> MTS/IV Instrument Tools -> (MTS/IV) Add Instrument

Instrument Tools Panel

This should add a vertical plane to the scene at the world origin.

Make any transformations in Object Mode. Any action done in Edit Mode will not be applied to the object and only edits the geometry.

Don't apply any transformations done in Object Mode, this will reset the position, rototation and scale of the object.

Adjust the hudPos and hudScale using the panel in Properties Panel -> Object Properties -> MTS/IV Instrument Properties

Instrument Properties Panel

Hud Pos Tool

Operator Location

Numbers Panel (Open with N key) -> MTS/IV Tab -> MTS/IV Instrument Tools -> (MTS/IV) Instrument HudPos

Instrument Tools Panel

Usage

HUDPos Tool

  1. Select the instrument object you want to edit.

  2. Click on (MTS/IV) Instrument HudPos. This should show an overlay with the hud panel and the instrument.

    Note: This also shows a ghost image of the other instruments.

  3. To move the instrument click and drag it or use the arrow keys. The arrow keys moves the instrument by 10px and 1px while holding the shift key.

  4. Right clicking the instrument brings up a context menu, with input boxes to change the HUD positions and scale.

    HUDPos Tool Context Menu

  5. To save the changes, click on the button with the checkmark. To revert or cancel the changes click on the button with the cross.

Importing and Exporting JSONs

There are three locations where the import and export buttons can be found:

  • File -> Import/Export -> MTS/IV Instruments (.json)

    File Import/Export

  • Numbers Panel (Open with N key) -> MTS/IV Tab -> MTS/IV Instrument Tools -> Import/Export Instruments

    Instrument Tools

  • Properties Panel -> Object Properties -> MTS/IV Instrument Properties -> Import/Export Instruments

    InstrumentProperties

Import

  1. This opens up the file browser. Navigate to the the json you want to import. This json must include the instruments section.

  2. Click on "Import Instruments" or hit enter.

  3. This will create instruments with the provided transforms and HUD positions.

Export

  1. Clicking on the export button will open the file browser. Navigate to the save location and enter the filename.

  2. Click on "Export Instruments" or hit enter.