CompaToon
Trace: • Work with Kitsu / ShotGrid • What's new • % Variables • HyperCrop

HyperCrop

HyperCrop removes characters at the start and/or end of a name, or words inside it, so that it matches the name of a file on disk.
You will find it in the Crop column of the Matching Table, in Output Name fields, and in variables.

Syntax

Form Effect
N Removes N characters at the start
N:M Removes N characters at the start and M at the end
text: Removes everything up to this text, included (start)
:text Removes everything from the last occurrence of this text (end)
::WORD Removes the word WORD wherever it is
::WORD1:WORD2 Removes several words. E.g. ::_turn_:BG_ removes _turn_ and BG_
N:M:WORD Combines: start, end, then words
The first parameter applies to the prefix, the second to the suffix. The following ones are words to remove.
The former documentation also mentioned the comma , as prefix / suffix separator (this is the form used in the ToonBrowser TagCrop / TagFileCrop parameters).

Examples

Starting string: TOTO_BOBO_123-2222

Crop Result What is removed
3 O_BOBO_123-2222 The first 3 characters
3:3 O_BOBO_123-2 The first 3 and the last 3
0:3 TOTO_BOBO_123-2 The last 3
_:3 BOBO_123-2 Up to the first _, plus the last 3
1:- OTO_BOBO_123 The first one, and everything from the last -
:- TOTO_BOBO_123 Everything from the last -
TO_:_1 BOBO Up to TO_ and from _1
::BOBO_ TOTO_123-2222 The word BOBO_
::BOBO:TOTO __123-2222 The words BOBO and TOTO
3:3:BOBO_ O_123-2 3 at the start, 3 at the end, and the word BOBO_

With a variable

Add the rule between < > right after the variable: %x<rule>. The crop is applied to the variable's value.

Episode name You write You get
My Episode CH_%n<3:3> CH_Epis

See also

  • % Variables
  • Matching Table
Previous Next

Site Tools

  • Media Manager
  • Sitemap

Page Tools

  • Export to PDF
  • Fold/unfold all
  • Back to top

User Tools

  • Log In
en/compatoon/manuals/toonbox/v2/reference/hypercrop.txt · Last modified: 2026/12/02 12:50 by twinstef
CompaToon

Table of Contents

Table of Contents

  • HyperCrop
    • Syntax
    • Examples
    • With a variable
    • See also

Translations of this page:
  • fr
  • en

ToonBox

  • Documentation home

Getting started

  • Installation
  • Jobs and Tasks
  • The interface
  • First Job
  • Configure the software
  • Videos

I want to…

  • Create the scenes
  • Prepare the backgrounds
  • Export for compositing
  • Generate movies
  • Make a rough cut
  • Modify scenes
  • Tracker (Kitsu / ShotGrid)
  • Manage files

Reference

  • All tasks
  • % Variables
  • HyperCrop
  • Regular expressions
  • BDL format
  • Matching Table
  • Libraries
  • Action table
  • FFmpeg
  • Glossary

Help

  • Known issues
  • FAQ
  • What's new
  • Production cases

Other tools

  • ToonBox AE Plugin
  • ToonBrowser
  • ToonExpo