next up previous contents index
Next: 5. The 'get' messages Up: 4. The 'set' message Previous: 4.1 Inline components   Contents   Index


4.2 File based components


\begin{rail}
setFile :
('txtf' textFilePath) \vert
('htmlf' htmlFilePath) \ve...
...
('img' imgPath) \vert
('video' videoPath) \vert
('file' filePath)
\end{rail}

See also: the application rootPath message (section 7 p.[*]) for file based objects.

EXAMPLE
Creating an image.

/ITL/scene/myObject set img "myImage.png"
Using the file type.
/ITL/scene/myObject set file "myImage.png"
will be translated into
/ITL/scene/myObject set img "myImage.png"


Table 4.1: File extensions supported by the file translation scheme.
file extension translated type
.txt .text txtf
.htm .html htmlf
.gmn .xml gmnf
.svg svgf
.jpg .jpeg .png .gif .bmp .tiff img
.avi .wmv .mpg .mpeg .mp4 video


next up previous contents index
Next: 5. The 'get' messages Up: 4. The 'set' message Previous: 4.1 Inline components   Contents   Index

Grame - INScore project