Is it possible to get the track numbers for the particle tracks shown in the window and do some operations on each track?


The following script will allow you get track numbers for the particle tracks shown in the window. You can get this information from the info Tab of `Details of Particle Track` as well. You can play this script in CFX-Post. To do that, go to Session > play Session.

----------------------------------------
$trackList = getValue( "My Track", "Tracks Displayed" );

# My Track is the particle track object`s name shown in Post. User needs to change it accordingly
# Tracks Displayed is a comma separated list
# Break it up into an array

!@tracks = split(/, /, $tracks );

# Loop over tracks
! foreach $t ( @tracks) {
! print "$t, ";
# do something...
!}
! print "n";





Show Form
No comments yet. Be the first to add a comment!