Click or drag to resize
SoTexture2filename Property

Name of the file from which to read texture image.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public SoSFFilePathString filename { get; }

Property Value

Type: SoSFFilePathString
Remarks

The standard image file formats are supported. See OIV.Inventor.Image.SoRasterImageRW for the list. If the filename is not an absolute path name, the list of directories maintained by OIV.Inventor.SoInput is searched. If the texture is not found in any of those directories, then the file is searched for relative to the directory from which the OIV.Inventor.Nodes.SoTexture2 node was read. For example, if an OIV.Inventor.Nodes.SoTexture2 node with a filename of "../tofu.rgb" is read from /usr/people/bob/models/food.iv, then /usr/people/bob/tofu.rgb will be read (assuming tofu.rgb isn't found in the directories maintained by OIV.Inventor.SoInput).

See Also