How to Use - Script Your SQ-1

Overview

Script Your SQ-1 is an interactive 3D Square-1 puzzle visualizer and script player. Create, visualize, and animate SQ-1 algorithms and tutorials in real-time.

Camera Controls

Move Sequences

Enter standard SQ-1 move notations made of two elements:

Example: (1,0) / (3,-3) / (0,2) / means a series of moves: turn the top layer 30° clockwise, flip the right half (slice), simultaneously turn the top 90° clockwise and bottom 90° counter-clockwise, slice, and so on.

Script Player

Write scripts to create animated tutorials with descriptions, camera movements, piece highlighting, etc.

If writing YAML seems too technical, try the AI Script Generator below!

Or, check out this introduction if you want to learn about YAML in the quickest way.

Script Format

Scripts use YAML format with the following structure:

version: 1
ops:
  - type: operation_type
    args: ...
  - type: another_operation
    args: ...

Root Keys

Operation Types

1. Wait (wait)

Pause for a specified duration.

- type: wait
  args: 0.5  # seconds

2. Move Camera (camera)

Move the camera to a new position and orientation.

- type: camera
  args:
    position: [0, 2, 6]     # [x, y, z] coordinates
    look_at: [0, 0, 0]      # point to look at
    duration: 2             # seconds (0 = instant)

3. Set Animation Speed (animation_speed)

Adjust puzzle animation speed.

- type: animation_speed
  args:
    layer_turning: 0.1  # radians per frame (optional)
    slicing: 0.15       # radians per frame (optional)

A reasonable number to start with is 0.05

4. Execute Move Sequence (seq)

Execute SQ-1 moves using standard notation.

- type: seq
  args:
    seq_str: "/ (3,-3) / (-3,3) /"

5. Highlight Pieces (hl_piece)

Highlight specific pieces with animations.

- type: hl_piece
  args:
    - piece_name: UBR
      animation: highlight  # or flash_hl, flash, restore
    - piece_name: EL
      animation: flash

Animation types:

Piece names:

The symbols represent positions in the initial state: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back)

For example, UBR is the top layer (U) corner piece in the Back-Right position.

EL is the middle layer piece that won't be flipped during slicing, and ER is the one that will.

6. Highlight Stickers (hl_sticker)

Highlight specific stickers on pieces.

- type: hl_sticker
  args:
    - sticker_name: UBR-R
      animation: flash  # or restore, remove
    - sticker_name: EL-F
      animation: remove

Animation types:

Sticker name format: piece_name-face

Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back). These refer to the initial orientation, not where the sticker currently faces.

Example: UBR-R is the Right face sticker of the UBR corner piece

Complete Example

version: 1
ops:
  - type: animation_speed
    args:
      slicing: 0.3
  - type: seq
    args:
      seq_str: "/(3,0)/(-5,6)/(0,-2)/"
  - type: camera
    args:
      position: [0, 2, 6]
      look_at: [0, 0, 0]
      duration: 2
  - type: hl_piece
    args:
      - piece_name: EL
        animation: highlight
      - piece_name: UBR
        animation: highlight
  - type: wait
    args: 0.5
  - type: seq
    args:
      seq_str: "(0,1)"
  - type: hl_piece
    args:
      - piece_name: EL
        animation: restore
  - type: hl_sticker
    args:
      - sticker_name: EL-F
        animation: remove
      - sticker_name: ER-F
        animation: remove
  

AI Script Generator

Don't want to write YAML manually? Use this prompt with any AI chatbot (ChatGPT, Claude, Gemini, etc.) to generate scripts using natural language!

How to Use

  1. Copy the prompt below - Click the Copy button
  2. Paste into any AI chat - ChatGPT, Claude, Gemini, or any LLM service
  3. Describe what you want - Use natural language like: "Make the puzzle do a slice move, highlight the top-right corner, wait 1 second, then rotate the camera"
  4. Copy the generated YAML - The AI will create a valid script you can paste into the Script Player

AI Prompt

Auxiliary Information

Coordinate System

Coordinate System

使用說明 - Script Your SQ-1

概述

Script Your SQ-1 是一個互動式的 3D Square-1 扇形方塊模擬器與腳本播放器。 即時建立、視覺化並展示 SQ-1 解法與教學動畫。

相機控制

轉動步驟

輸入標準 SQ-1 轉動代號,由兩種元素組成:

範例:(1,0) / (3,-3) / (0,2) / 代表一系列轉動:頂層順時針轉 30°, 翻轉右半部(切),同時轉上層順時針轉 90° 跟下層逆時針轉 90°,切,以此類推。

劇本開演

撰寫腳本以建立包含說明、相機移動、強調/隱藏等等的動畫教學。

如果寫 YAML 太宅了,試試下方的 AI 腳本產生器!

或者,如果您想以最快的方式了解 YAML,請看此介紹

腳本格式

腳本使用 YAML 格式,結構如下:

version: 1
ops:
  - type: operation_type
    args: ...
  - type: another_operation
    args: ...

最上層設定

操作類型

1. 等待 (wait)

暫停指定時間。

- type: wait
  args: 0.5  # 秒數

2. 移動相機 (camera)

將相機移動到新的位置與方向。

- type: camera
  args:
    position: [0, 2, 6]     # 從哪裡看
    look_at: [0, 0, 0]      # 看向哪個方向
    duration: 2             # 移動時間(0 = 立即)

3. 設定動畫速度 (animation_speed)

調整方塊動畫速度。

- type: animation_speed
  args:
    layer_turning: 0.1  # 每幀弧度(選填)
    slicing: 0.15       # 每幀弧度(選填)

可從 0.05 左右開始調整。

4. 執行轉動序列 (seq)

使用標準記號執行 SQ-1 轉動。

- type: seq
  args:
    seq_str: "/ (3,-3) / (-3,3) /"

5. 高亮方塊 (hl_piece)

以動畫高亮特定方塊。

- type: hl_piece
  args:
    - piece_name: UBR
      animation: highlight  # 或 flash_hl, flash, restore
    - piece_name: EL
      animation: flash

動畫類型:

方塊名稱:

符號代表初始狀態的位置: U(上)、D(下)、L(左)、R(右)、F(前)、B(後)

例如,UBR 是頂層 (U) 在後右位置的角塊。

EL 是切片時不會翻轉的中層方塊,ER 是會翻轉的那一個。

6. 高亮貼紙 (hl_sticker)

高亮方塊上的特定貼紙。

- type: hl_sticker
  args:
    - sticker_name: UBR-R
      animation: flash  # 或 restore, remove
    - sticker_name: EL-F
      animation: remove

動畫類型:

貼紙名稱格式:piece_name-face

面:U(上)、D(下)、L(左)、R(右)、F(前)、B(後)。這些是指初始方向,而非貼紙當前面向。

範例:UBR-R 是 UBR 角塊的右面貼紙

完整範例

version: 1
ops:
  - type: animation_speed
    args:
      slicing: 0.3
  - type: seq
    args:
      seq_str: "/(3,0)/(-5,6)/(0,-2)/"
  - type: camera
    args:
      position: [0, 2, 6]
      look_at: [0, 0, 0]
      duration: 2
  - type: hl_piece
    args:
      - piece_name: EL
        animation: highlight
      - piece_name: UBR
        animation: highlight
  - type: wait
    args: 0.5
  - type: seq
    args:
      seq_str: "(0,1)"
  - type: hl_piece
    args:
      - piece_name: EL
        animation: restore
  - type: hl_sticker
    args:
      - sticker_name: EL-F
        animation: remove
      - sticker_name: ER-F
        animation: remove
  

AI 腳本產生器

不想手刻 YAML?用這個提示詞搭配任何 AI 聊天機器人(ChatGPT、Claude、Gemini 等),白話產生腳本!

使用方法

  1. 複製下方提示詞 - 點擊複製按鈕
  2. 貼到任何 AI 聊天 - ChatGPT、Claude、Gemini 或任何 LLM 服務
  3. 描述您想要的內容 - 使用自然語言,例如:「讓方塊做一個切片動作,高亮右上角,等待 1 秒,然後旋轉相機」
  4. 複製產生的 YAML - 試試看 AI 給你的腳本,您可以貼到腳本播放器中

AI 提示詞

補充資訊

座標系統

座標系統

影片說明


About & Legal Information 關於與法律資訊 | Created by 作者: 方塊轉不快 SlowerCuber