File Name Tokens

The following tokens are the same for frame capture (.tif or .png) or animation (.wrl and .avi) files.

TokenDescription

%d

The full path to the world VRML file replaces this token in the file name string and creates files in directories relative to the virtual world file location. For example, the format %d/animdir/%f_anim_%n.avi saves the animation in the animdir subfolder of the folder containing the virtual world VRML file. It creates the animdir subfolder if one does not exist. This token is most helpful if you want to ensure that the virtual world file and animation file are in the same folder.

%D

The current day in the month replaces this token in the file name string. For example, the format %f_anim_%D.wrl saves the animation to vrplanets_anim_29.wrl for the 29th day of the month.

%f

The virtual world file name replaces this token in the file name string. For example, the format %f_anim_%D.wrl saves the animation to vrplanets_anim_29.wrl.

%h

The current hour replaces this token in the file name string. For example, the format %f_anim_%h.wrl saves the animation to vrplanets_anim_14.wrl for any time between 14:00 and 15:00.

%m

The current minute replaces this token in the file name string. For example, the format %f_anim_%h%m.wrl saves the animation to vrplanets_anim_1434.wrl for a start record time of 14:34.

%M

The current month replaces this token in the file name string. For example, the format %f_anim_%M.wrl saves the animation to vrplanets_anim_4.wrl for a start record time in April.

%s

The current second replaces this token in the file name string. For example, the format %f_anim_%h%m%s.wrl saves the animation to vrplanets_anim_150430.wrl for a start record time of 15:04:30.

%n

The current incremental number replaces this token in the file name string. Each subsequent frame capture or run of the simulation increments the number. For example, the format %f_anim_%n.wrl saves the animation to vrplanets_anim_1.wrl on the first run, vrplanets_anim_2.wrl on the second run, and so forth.

%Y

The current four-digit year replaces this token in the file name string. For example, the format %f_anim_%Y.wrl saves the animation to vrplanets_anim_2005.wrl for the year 2005.

Was this topic helpful?