Import a fixture type from the library
gma3_patch_importImports one fixture type from a console library into the show so it can be patched, with library and duplicate-type pre-checks before committing.
Instructions
Import one fixture type from the console's library into the show, so gma3_patch_add can patch it. file is a file name exactly as gma3_patch_library lists it. Pre-checks (nothing sent on failure): the file is in exactly one library, and the show has no type with the same manufacturer and name (the console would silently add a second one) unless allow_duplicate. Runs one patch session at the copy's fixture-type pool: Import /File "" /Path "" (no dialog; it reads the file from its folder, where Import Library looked the name up in a cached listing that could lack the user library), then waits for exactly one new type and claims it only when its name or manufacturer matches the file. The isolation check compares everything the live patch already has; the new type and the attributes it brings are appended and left out. Then commit and read back: the result has the new type's number, name, GUID and DMX modes with footprints, and attributesAdded. Imports of user-library .xml and WorldServer files are not verified on the console yet (the result warns); user-library .gdtf is (bridge 0.38.0). Requires exclusive: true (see gma3_patch_add for what the patch session means). A committed import has NO UNDO; gma3_patch_remove_type removes an unused type again, but the attributes it brought stay. Needs bridge 0.26.0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Library file name, e.g. "oppsk@36pcs 4in1 led wall washer.pxml". | |
| source | No | Library the file is in (optional; the file must be in only one library either way). | |
| verify | No | Read the patch back after the commit and compare (default true). | |
| exclusive | No | Required, must be true: confirms nobody else uses the console while this runs (see the description). Without it the call is refused and nothing is sent. | |
| allow_duplicate | No | Import even though the show has a type with the same manufacturer and name. |