doc.arcgis.com/en/cityengine/2025.0/cga/cga-read-material-function.htm

Preview meta tags from the doc.arcgis.com website.

Linked Hostnames

1
  • General Meta Tags

    17
    • title
      readMaterial function—ArcGIS CityEngine Resources | Documentation
    • charset
      utf-8
    • X-UA-Compatible
      IE=edge,chrome=1
    • viewport
      width=device-width, user-scalable=no
    • description
      readMaterial function Syntaxstring[] readMaterial(filePath)ParametersfilePath—stringName of the material file to read. See Asset Search for information about search locations. Supported extensions are .cgamat and .mtl. CityEngine CGA Material Encoder allows for writing cgamat files via model export.ReturnsThe decoded material in filePath as 2D string array of cga material attributes.DescriptionThe readMaterial functions reads the material file filePath into a 2D array of material attributes, similar to the one returned from getMaterial(). Referenced textures are resolved. The returned array can be used to set the current shape's material with the setMaterial() operation.RelatedgetMaterial operationsetMaterial operation
  • Link Tags

    8
    • shortcut icon
      /assets/img/favicon.ico
    • stylesheet
      /assets/css/screen.css
    • stylesheet
      /cdn/calcite/css/documentation.css
    • stylesheet
      /assets/css/print.css
    • stylesheet
      /cdn/css/colorbox.css

Links

4