a CLI push can lock a file into AnimaScript, where no script can be placed, and AnimaScript has n...

Versions: Rive Editor 0.9.479 (macOS desktop, Apple silicon), the editor's MCP server, Rive CLI 1.8.0.

Summary

  1. A file switched to the AnimaScript engine can't place any script on an artboard, and the editor can't switch it back.

    • rive push from a project with scripting: wasm sets the file's script engine (scriptingVm) to wasm.

    • After that, every Node script made in the editor, including one from the Assets panel's + → Script → Node template, comes out as a utility script and can't be dropped on an artboard.

    • The editor shows no setting for the engine. The MCP refuses to change it: "wasm scripting is disabled (ENABLE_WASM_SCRIPTING)".

    • The only way back is another rive push from a project without scripting: wasm.

  2. AnimaScript can't be authored in the editor.

    • There is no AnimaScript template, and the MCP can't create an AnimaScript script.

    • The only way in is to change a code file's type through its raw property, which takes effect only after a file reload.

    • Because of problem 1, a file can't hold placeable Luau and AnimaScript Node scripts side by side.

  3. A Markdown asset pushed by the CLI gets a Luau code file, which froze the editor (see the related section at the end).

Problem 1: a file locked into AnimaScript

Steps to reproduce

  1. Make a CLI project for an existing editor file that has an artboard: rive pull it into a folder.

  2. Add scripting: wasm to rive.yaml, plus one AnimaScript Node script:

    export class MyNode extends Node {}
  3. Run rive push --yes, then reload the file in the editor.

  4. In the editor, click + → Script → Node in the Assets panel, and try to drag the new script onto the artboard.

  5. Over the MCP, run these calls:

    • assets_tool listAssets with typeFilter: "script";

    • query_property_values for key 472 (scriptingvmvalue) on the file's Backboard;

    • set_property_values with key 472 = 0 (luau).

  6. Remove scripting: wasm from rive.yaml (and the .as file), then push again and reload.

Expected

  • The template still makes a Node script that can be placed. Alternatively, the editor says the file is AnimaScript-only and offers an AnimaScript template.

  • The engine is visible in the editor and can be switched back there or through the MCP.

Actual

  • After step 3, the template's Node script is listed with scriptProtocol: "utility", and it can't be dropped on the artboard.

  • The same happens to a Luau Node created through manage_scripts, even with clean diagnostics and after recompile_all_scripts.

  • Key 472 reads 1 (wasm), and the write in step 5 is refused:

    error: feature_disabled

    reason: wasm scripting is disabled (ENABLE_WASM_SCRIPTING)

  • The editor has no visible setting for the engine.

  • After step 6, key 472 reads 0, and both the template's Node script and an MCP-created Luau Node script compile as scriptProtocol: "node" and can be placed.

In a file that was never switched, everything works: Node scripts from the template or from manage_scripts become Nodes.

Requests

  • Show the file's script engine in the editor and let it be changed there and through the MCP, or keep ENABLE_WASM_SCRIPTING from blocking the switch back to Luau.

  • When a file runs wasm, say so where scripts are created, rather than producing Node scripts that silently stay utilities.

  • An MCP command that places a Node script on an artboard or under a parent, with its inputs. Today a client can only duplicate an existing ScriptedDrawable and point its scriptAssetId (key 848) at the new script, so a file with no placement still needs a drag by hand.

Problem 2: AnimaScript can't be authored in the editor

What happens

  1. The + → Script menu has no AnimaScript entry. The Node template creates a Luau script.

  2. manage_scripts create accepts only code_file_type luau or wgsl.

  3. The only route found:

    • Create a Luau script.

    • Set its code file's type with set_property_values: CodeFile key 959 (codeFileTypeValue), integer 3 for AnimaScript. A string value is rejected as invalid_uint.

    After this, get_scripts reports language: "animascript", but the open editor keeps compiling the source in the old language. It lists every line as a problem until the file is reloaded (Cmd+R). The same holds when switching back to Luau.

  4. A script whose language doesn't match the file's engine is never a Node, so it can't be placed. Problem 1 locks the engine, so a file can't hold placeable scripts in both languages.

  5. In a file running wasm, a newly created Luau script didn't load in that session:

    • listAssets showed it;

    • get_scripts didn't list it;

    • text_editor couldn't open it.

    A script created with large initial content (about 200 KB) also never loaded. Writing the code file's sourceString (key 909) directly worked for those unloaded scripts.

  6. With Rive CLI 1.8.0, a project can't mix .as and .luau files, and .as files need scripting: wasm.

Expected

AnimaScript is a first-class choice:

  • an AnimaScript entry in + → Script, for Node and the other protocols;

  • code_file_type: "animascript" in manage_scripts;

  • a language switch that takes effect without a reload;

  • a clear rule, shown in the editor, for which languages a file can run.

Related: a Markdown asset pushed by the CLI froze the editor

rive push of a project that adds a Markdown text asset (.md) creates the asset with a Luau code file (type 0). The editor then:

  • compiled the asset's text (about 195 KB of JSON) as Luau;

  • listed 31,091 problems;

  • froze for several minutes.

Setting the code file's type (key 959) to 2 (document) and reloading fixed it.

Expected: a .md asset arrives with the document type.