какашки мне в кармашки
This commit is contained in:
1 parent
7fba61f7a0
commit
cbda26dfc0
335 files changed
+51926
-7266
No files matched your search
@@ -0,0 +1,101 @@
|
||||
---
|
||||
name: timeline-clip-move
|
||||
description: Move a clip along its track — either to an absolute `start` time or by a relative `deltaSeconds`. Duration is preserved.
|
||||
metadata:
|
||||
generated-by: mcp-plugin-dotnet
|
||||
---
|
||||
|
||||
# Timeline / Move Clip
|
||||
|
||||
Reposition a clip on its track without changing its duration. Provide either an absolute `start` or a relative `deltaSeconds` (delta is ignored when `start` is supplied).
|
||||
|
||||
## Inputs
|
||||
|
||||
- `assetPath` — required path to the `.playable` TimelineAsset.
|
||||
- `trackName` / `trackIndex` — which track holds the clip (name wins; index default 0).
|
||||
- `clipIndex` — required zero-based clip index.
|
||||
- `start` — optional absolute new start time (seconds).
|
||||
- `deltaSeconds` — optional relative shift (seconds); used only when `start` is null.
|
||||
|
||||
## Behavior
|
||||
|
||||
Computes the new start (clamped to >= 0), sets `clip.start`, saves the asset, and returns the old and new start. Runs on the Unity main thread.
|
||||
|
||||
## How to Call
|
||||
|
||||
```bash
|
||||
unity-mcp-cli run-tool timeline-clip-move --input '{
|
||||
"assetPath": "string_value",
|
||||
"clipIndex": 0,
|
||||
"trackName": "string_value",
|
||||
"trackIndex": 0,
|
||||
"start": 0,
|
||||
"deltaSeconds": 0
|
||||
}'
|
||||
```
|
||||
|
||||
> For complex input (multi-line strings, code), save the JSON to a file and use:
|
||||
> ```bash
|
||||
> unity-mcp-cli run-tool timeline-clip-move --input-file args.json
|
||||
> ```
|
||||
>
|
||||
> Or pipe via stdin (recommended):
|
||||
> ```bash
|
||||
> unity-mcp-cli run-tool timeline-clip-move --input-file - <<'EOF'
|
||||
> {"param": "value"}
|
||||
> EOF
|
||||
> ```
|
||||
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If `unity-mcp-cli` is not found, either install it globally (`npm install -g unity-mcp-cli`) or use `npx unity-mcp-cli` instead.
|
||||
Read the /unity-initial-setup skill for detailed installation instructions.
|
||||
|
||||
## Input
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|------|------|----------|-------------|
|
||||
| `assetPath` | `string` | Yes | Assets-rooted path to the TimelineAsset (.playable). |
|
||||
| `clipIndex` | `integer` | Yes | Zero-based index of the clip on its track. |
|
||||
| `trackName` | `string` | No | Name of the track holding the clip. Takes precedence over trackIndex. |
|
||||
| `trackIndex` | `integer` | No | Zero-based root-track index, used when trackName is null/empty. |
|
||||
| `start` | `number` | No | Optional absolute new start time in seconds. |
|
||||
| `deltaSeconds` | `number` | No | Optional relative shift in seconds; used only when start is null. |
|
||||
|
||||
### Input JSON Schema
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"assetPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"clipIndex": {
|
||||
"type": "integer"
|
||||
},
|
||||
"trackName": {
|
||||
"type": "string"
|
||||
},
|
||||
"trackIndex": {
|
||||
"type": "integer"
|
||||
},
|
||||
"start": {
|
||||
"type": "number"
|
||||
},
|
||||
"deltaSeconds": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"assetPath",
|
||||
"clipIndex"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
This tool does not return structured output.
|
||||
|
||||
Reference in new issue
Block a user