fileBasename function

CityEngine 2024.1    |    |  

Syntax

  • string fileBasename(filePath)

Parameters

  1. filePathstring

Returns

Returns file base name of given filePath, without directory prefix and file extension.

Description

The fileBasename function returns the file base name (without the directories or extension) of the given filePath.

Related

Examples

fileBasename("assets/obj/mygeometry.01.obj")
# result = "mygeometry.01"