Ah, I see, something must have gone wrong in the copy and past to my post.
I still have the original script in my script editor where it is correct but in my post, it's missing some brackets.
Just checked and the forum post text editor actively removed them when I toggle between source and normal editor view.
Looks to be a bug in the forum software.
I am very sorry about that.
Here is your script with all the correct brackets:
string $indices = "1383:1384 1394:1396 1399:1405 1415:1421 1431:1437 2508:2511 2549:2552 3291:3293 18398:18399 18406 18424:18425 18428:18430 18432 18436 18438:18452 18454:18455 18473 18475:18489 18491:18492 18510 18512:18526 18528:18529 21052:21055 21595:21597 21599 21626 21628 21630 22382:22384 24167 24179:24181 24185:24191 24202:24209 24219:24226 25360:25363 25701:25703 25716:25719 26197:26200 1386 18404 18405 24170 24171 18407 3290 18408 22381 1387 26196 18411 18410 24192 21603 25704 18431 24182 18426 21624";
string $node = "tailcoat_clothOutput2";
string $command = "select";
string $indicesSplit[];
int $numTokens = tokenize($indices, " ", $indicesSplit);
for($token in $indicesSplit)
{
$command += " " + $node + ".vtx[" + $token + "]";
}
$command += ";";
eval($command);
This should work now.
(and just in case, here is the unformatted version)
string $indices = "1383:1384 1394:1396 1399:1405 1415:1421 1431:1437 2508:2511 2549:2552 3291:3293 18398:18399 18406 18424:18425 18428:18430 18432 18436 18438:18452 18454:18455 18473 18475:18489 18491:18492 18510 18512:18526 18528:18529 21052:21055 21595:21597 21599 21626 21628 21630 22382:22384 24167 24179:24181 24185:24191 24202:24209 24219:24226 25360:25363 25701:25703 25716:25719 26197:26200 1386 18404 18405 24170 24171 18407 3290 18408 22381 1387 26196 18411 18410 24192 21603 25704 18431 24182 18426 21624";
string $node = "tailcoat_clothOutput2";
string $command = "select";
string $indicesSplit[];
int $numTokens = tokenize($indices, " ", $indicesSplit);
for($token in $indicesSplit)
{
$command += " " + $node + ".vtx[" + $token + "]";
}
$command += ";";
eval($command);
Again, so sorry about the error. It removed the in the line saying
I hope everything is working now.
Cheers,
Sebastian