Token导航 LogoToken导航TokenDH.com
效率可写文件clawhub未标认证来源可访问clear审计通过

vam-scriptervam 脚本编写者

Agent Skill

vam-scripter 用于辅助视频、动画、脚本化剪辑和多媒体生成流程,适合在 OpenClaw 中需要整理视频素材、生成脚本或维护合成项目时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,994

周安装

204

GitHub Stars

公开资料未说明

下载量

1,616
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vam-scripter(vam 脚本编写者)
来源仓库:https://github.com/nffdasilva/vam-scripter
安装命令:
openclaw skills install vam-scripter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install vam-scripter

简介

vam-scripter 为 Virt-A-Mate 提供类似 JavaScript 的脚本环境。

  • 适用于 OpenClaw 中自动化姿势、动画、音频、交互和场景控制。
  • 通过 clawhub 安装,支持生命周期驱动的脚本化多媒体流程管理。
  • 使用前应确认权限边界,避免未经授权的文件读写或外部调用。
  • 建议查阅原始仓库文档以了解脚本语法与安全实践。

SKILL.md

VAM Scripter Skill

Virt-A-Mate Scripter v1.5.1 Language Support

Scripter is a JavaScript-inspired scripting language that runs inside Virt-A-Mate. It provides high-performance scripting without reflection, enabling automation of poses, animations, audio, and interactions.

gotolm

Scripter v1.5.1 - JavaScript-inspired VAM scripting language.

Syntax Overview

Scripter syntax closely resembles JavaScript with these characteristics:

Module System

import { module } from "vam-scripter";
export const name = value;

Variables

const name = value;  // immutable binding
let name = value;    // mutable binding
var name = value;    // mutable binding

Functions

function name(args) { body }
() => { body }       // arrow function syntax

Control Flow

if (condition) { ... } else { ... }
for (init; condition; update) { ... }
while (condition) { ... }
break; continue;

Exception Handling

try { ... } catch (e) { ... }
throw error;

Data Structures

[1, 2, 3]                        // array
{ key: value }                   // object

Core Modules

vam-scripter Module

The main module imported as "vam-scripter" exports:

ExportTypeDescription
scripterObjectMain plugin interface, lifecycle hooks
sceneObjectScene access (atoms, audio clips)
TimeObjectUnity Time properties
RandomObjectRandom number generation
DateTimeObjectDate/Time operations
playerObjectPlayer (VR/monitor status, hand/head transforms)
keybindingsObjectKeybinding management
InputObjectInput handling
fsObjectFile system operations

scripter Module

Provides lifecycle hooks and plugin management.

Property/MethodArgumentsReturnsDescription
scripter.onUpdate(fn)fn: () => voidFunctionLinkRun every frame
scripter.onLateUpdate(fn)fn: () => voidFunctionLinkRun after Update
scripter.onFixedUpdate(fn)fn: () => voidFunctionLinkRun on physics updates
scripter.onEnable(fn)fn: () => voidFunctionLinkRun when enabled
scripter.onDisable(fn)fn: () => voidFunctionLinkRun when disabled
scripter.onDestroy(fn)fn: () => voidFunctionLinkRun when destroyed
scripter.declareFloatParam(config)config: {name, default, min, max, constrain, onChange}FloatParamDeclarationCreate float parameter
scripter.declareStringParam(config)config: {name, default, onChange}StringParamDeclarationCreate string parameter
scripter.declareBoolParam(config)config: {name, default, onChange}BoolParamDeclarationCreate boolean parameter
scripter.declareAction(name, fn)name: string, fn: () => voidActionDeclarationCreate action
scripter.containingAtom-AtomReferenceReference to the atom housing the script

scene Module

Provides access to atoms and audio clips in the scene.

Property/MethodArgumentsReturnsDescription
scene.getAtom(name)name: stringAtomReferenceGet atom by name/UID
scene.getAtoms()-Array<AtomReference>Get all atoms
scene.getAtomIds()-Array<string>Get all atom UIDs
scene.getAudioClip(type, category, clip)`type: "Embedded\URL", category: string, clip: string`NamedAudioClipReferenceGet audio clip

player Module

Provides access to player state and transforms.

PropertyTypeDescription
player.isVRbooleanTrue if in VR mode
player.lHandTransformReferenceLeft hand position/rotation
player.rHandTransformReferenceRight hand position/rotation
player.headTransformReferenceHead position/rotation

keybindings Module

Manages keybindings and commands.

Property/MethodArgumentsReturnsDescription
keybindings.invokeCommand(name)name: stringvoidInvoke a keybinding action
keybindings.declareCommand(name, fn)name: string, fn: () => voidKeybindingDeclarationDeclare a new keybinding

fs Module

File system operations for script persistence.

Property/MethodArgumentsReturnsDescription
fs.writeSceneFileSync(path, content)path: string, content: stringvoidWrite to scene-specific file
fs.readSceneFileSync(path)path: string`string\undefined`Read scene-specific file
fs.unlinkSceneFileSync(path)path: stringvoidDelete scene-specific file

Time Module

Unity Time properties.

PropertyTypeDescription
Time.timefloatTime since level load
Time.deltaTimefloatTime since last frame
Time.fixedDeltaTimefloatFixed timestep for physics

Random Module

Random number generation.

Property/MethodArgumentsReturnsDescription
Random.value-floatRandom float 0.0-1.0
Random.range(min, max)`min, max: int\float``int\float`Random number in range

Math Module

Math utilities (_available as Math_).

MethodArgumentsReturnsDescription
Math.abs, Math.ceil, Math.floornumbernumberBasic math
Math.sin, Math.cos, Math.tannumbernumberTrigonometry
Math.sqrt, Math.pow(base, exp)numbernumberPowers/square root
Math.log, Math.log10numbernumberLogarithms
Math.max, Math.min(...args)numbersnumberMin/max
Math.random()-floatRandom 0-1
Math.lerp(start, end, t)numbersnumberLinear interpolation
Math.clamp(value, min, max)numbersnumberClamp value
Math.round, Math.signnumbernumberRounding/sign

Reference Types

AtomReference

Property/MethodArgumentsReturnsDescription
atom.name-stringAtom name
atom.type-stringAtom type
atom.on-booleanIs atom on
atom.getStorableIds()-Array<string>Get storable IDs
atom.getStorable(name)name: stringStorableReferenceGet storable
atom.getController(name)name: stringControllerReferenceGet controller
atom.distance(other)other: AtomReferencefloatDistance to another atom

TransformReference

Property/MethodArgumentsReturnsDescription
transform.position-Vector3Position
transform.rotation-QuaternionRotation
transform.forward-Vector3Forward direction
transform.up-Vector3Up direction
transform.right-Vector3Right direction
transform.lookAt(target)target: TransformReferencevoidRotate to face target
transform.lookAt(x, y, z)coords: Vector3voidRotate to face position

StorableReference

Property/MethodArgumentsReturnsDescription
storable.getId()-stringGet storable ID
storable.getType()-stringGet storable type
storable.getAudioAction(name)name: stringAudioActionReferenceGet audio action

ControllerReference

Property/MethodArgumentsReturnsDescription
controller.name-stringController name
controller.transform-TransformReferenceController transform

AudioActionReference

Property/MethodArgumentsReturnsDescription
audioAction.play(clip)clip: NamedAudioClipReferencevoidPlay audio clip
audioAction.stop()-voidStop audio

NamedAudioClipReference

Property/MethodArgumentsReturnsDescription
clip.name-stringClip name
clip.clip-AudioClipUnity audio clip

Common Patterns

Simple Update Loop

import { scripter, scene } from "vam-scripter";

const ball = scene.getAtom("Ball");
const person = scene.getAtom("Person");

scripter.onUpdate(() => {
    // Run every frame
});

Interaction Detection

import { scripter, scene } from "vam-scripter";

const ball = scene.getAtom("Ball");
const person = scene.getAtom("Person");
const personVoice = person.getStorable("HeadAudioSource").getAudioAction("PlayNow");
const surprisedSound = scene.getAudioClip("URL", "web", "surprised.wav");

scripter.onUpdate(() => {
    if (ball.distance(person) < 0.5) {
        personVoice.play(surprisedSound);
    }
});

Keybinding Handler

import { keybindings, scripter } from "vam-scripter";

const action = scripter.declareAction("MyAction", () => {
    // Handle action
});

keybindings.declareCommand("MyActionKey", () => {
    keybindings.invokeCommand("MyAction");
});

Parameter-Driven Animation

import { scripter, scene } from "vam-scripter";

const person = scene.getAtom("Person");
const head = person.getController("head");

const speedParam = scripter.declareFloatParam({
    name: "Animation Speed",
    default: 1.0,
    min: 0.1,
    max: 5.0,
    onChange: (value) => {
        // Parameter changed
    }
});

File Operations

import { fs, scripter } from "vam-scripter";

const state = JSON.parse(fs.readSceneFileSync("state.json") || "{}");

scripter.onUpdate(() => {
    // Use state
});

scripter.onDisable(() => {
    fs.writeSceneFileSync("state.json", JSON.stringify(state));
});

Date/Time Operations

const now = DateTime.now;
const year = now.year;
const month = now.month;
const day = now.day;

// DateTime properties: year, month, day, hour, minute, second, dayOfWeek

Development Notes

  • scripts must be loaded as index.js
  • Use import { ... } from "vam-scripter" to access modules
  • The language is case-sensitive (JavaScript-style)
  • Use // for single-line comments and /* */ for multi-line
  • All modules are singletons - each import gets the same reference

Files

  • SKILL.md - This documentation
  • scripts/ - Sample scripts and patterns
  • references/ - API reference details

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.6%
按下载量换算1,270

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills