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.
Enter standard SQ-1 move notations made of two elements:
(top, bottom) - Numbers represent 30° increments. Positive = clockwise, Negative =
counter-clockwise when facing that layer/ - Slice move that flips the right halfExample: (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.
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.
Scripts use YAML format with the following structure:
version: 1
ops:
- type: operation_type
args: ...
- type: another_operation
args: ...
version (optional): Integer specifying script syntax version (default: 1)ops (optional): Array of operations to execute sequentiallyPause for a specified duration.
- type: wait
args: 0.5 # seconds
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)
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
Execute SQ-1 moves using standard notation.
- type: seq
args:
seq_str: "/ (3,-3) / (-3,3) /"
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:
highlight - Highlight and keep highlightedflash_hl - Flash then stay highlightedflash - Flash then return to original colorrestore - Restore original piece colorPiece names:
UB, UR, UF, UL, DB, DR, DF, DLUBR, UFR, UFL, UBL, DBR, DFR, DFL, DBLEL, ERThe 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.
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:
remove - Change sticker to piece color (hide it)restore - Restore original sticker colorflash - Flash between piece and sticker colorSticker 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
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
Don't want to write YAML manually? Use this prompt with any AI chatbot (ChatGPT, Claude, Gemini, etc.) to generate scripts using natural language!
Script Your SQ-1 是一個互動式的 3D Square-1 扇形方塊模擬器與腳本播放器。 即時建立、視覺化並展示 SQ-1 解法與教學動畫。
輸入標準 SQ-1 轉動代號,由兩種元素組成:
(top, bottom) - 數字代表轉 30° 的倍數。正 = 順時針,負 = 逆時針(看向該層作為方向基準)/ - 切,翻轉右半部範例:(1,0) / (3,-3) / (0,2) / 代表一系列轉動:頂層順時針轉 30°,
翻轉右半部(切),同時轉上層順時針轉 90° 跟下層逆時針轉 90°,切,以此類推。
撰寫腳本以建立包含說明、相機移動、強調/隱藏等等的動畫教學。
如果寫 YAML 太宅了,試試下方的 AI 腳本產生器!
或者,如果您想以最快的方式了解 YAML,請看此介紹。
腳本使用 YAML 格式,結構如下:
version: 1
ops:
- type: operation_type
args: ...
- type: another_operation
args: ...
version(選填):指定腳本語法版本(預設:1)ops(選填):依序執行的操作陣列暫停指定時間。
- type: wait
args: 0.5 # 秒數
將相機移動到新的位置與方向。
- type: camera
args:
position: [0, 2, 6] # 從哪裡看
look_at: [0, 0, 0] # 看向哪個方向
duration: 2 # 移動時間(0 = 立即)
調整方塊動畫速度。
- type: animation_speed
args:
layer_turning: 0.1 # 每幀弧度(選填)
slicing: 0.15 # 每幀弧度(選填)
可從 0.05 左右開始調整。
使用標準記號執行 SQ-1 轉動。
- type: seq
args:
seq_str: "/ (3,-3) / (-3,3) /"
以動畫高亮特定方塊。
- type: hl_piece
args:
- piece_name: UBR
animation: highlight # 或 flash_hl, flash, restore
- piece_name: EL
animation: flash
動畫類型:
highlight - 高亮並保持高亮flash_hl - 閃爍後保持高亮flash - 閃爍後恢復原色restore - 恢復方塊原色方塊名稱:
UB, UR, UF, UL, DB, DR, DF, DLUBR, UFR, UFL, UBL, DBR, DFR, DFL, DBLEL, ER符號代表初始狀態的位置:
U(上)、D(下)、L(左)、R(右)、F(前)、B(後)
例如,UBR 是頂層 (U) 在後右位置的角塊。
EL 是切片時不會翻轉的中層方塊,ER 是會翻轉的那一個。
高亮方塊上的特定貼紙。
- type: hl_sticker
args:
- sticker_name: UBR-R
animation: flash # 或 restore, remove
- sticker_name: EL-F
animation: remove
動畫類型:
remove - 將貼紙改為方塊顏色(隱藏)restore - 恢復貼紙原色flash - 在方塊與貼紙顏色間閃爍貼紙名稱格式: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
不想手刻 YAML?用這個提示詞搭配任何 AI 聊天機器人(ChatGPT、Claude、Gemini 等),白話產生腳本!
About & Legal Information 關於與法律資訊 | Created by 作者: 方塊轉不快 SlowerCuber