# PCB2Blender (PCB3D) format for plug-in v2.1
# URL: https://github.com/30350n/pcb2blender
kibot:
  version: 1

groups:
  - name: _PCB2Blender_elements_2_1
    outputs:
      - _PCB2Blender_tools_2_1
      - _PCB2Blender_layers_2_1
      - _PCB2Blender_vrml_2_1

outputs:
  - name: _PCB2Blender_tools_2_1
    comment: Pads information and board bounds for PCB3D 2.1
    type: pcb2blender_tools
    dir: '%f%v_pcb3d'
    run_by_default: false

  - name: _PCB2Blender_layers_2_1
    comment: SVG files for the layers for PCB3D 2.1
    type: svg
    dir: '%f%v_pcb3d/layers'
    run_by_default: false
    options:
      output: "%i.%x"
      margin: 1
      limit_viewbox: true
      svg_precision: 6
      drill_marks: none
    layers:
      - F.Cu
      - B.Cu
      - F.Paste
      - B.Paste
      - layer: F.SilkS
        suffix: F_SilkS
      - layer: B.SilkS
        suffix: B_SilkS
      - F.Mask
      - B.Mask

  - name: _PCB2Blender_vrml_2_1
    comment: VRML model for PCB3D 2.1
    type: vrml
    dir: '%f%v_pcb3d'
    run_by_default: false
    options:
      output: pcb.wrl
      dir_models: components
      use_pcb_center_as_ref: false
      model_units: meters

  - name: _PCB2Blender_2_1
    comment: PCB3D model for pcb2blender plug-in
    type: compress
    options:
      output: '%f%v.pcb3d'
      format: ZIP
      files:
        - from_output: _PCB2Blender_tools_2_1
          from_output_dir: true
        - from_output: _PCB2Blender_layers_2_1
          dest: layers
        - from_output: _PCB2Blender_vrml_2_1
          from_output_dir: true
