---
title: path
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlobject/path
---

# path

A path that identifies the object in an asset’s object hierarchy using object names.

## Declaration

```swift
var path: String { get }
```

## Discussion

Discussion Model I/O forms a path for each object in an asset’s object hierarchy by concatenating the name properties of objects in the hierarchy, separated by slashes and preceded by an initial slash. note: When using an object’s name in a path, Model I/O converts all characters not in the set [A-Z][a-z][0-9][:-_.] to underscores. For example, a mesh in an asset modeling a dining room scene might have the path /meshes/table_anchor/chair1, where “meshes” is one of the top-level children of the asset, “table anchor” is a MDLObject instance providing a transform inherited by several meshes, and “chair1” is the name of a MDLMesh object.

## See Also

### Working with Object Hierarchies

- [parent](modelio/mdlobject/parent.md)
- [children](modelio/mdlobject/children.md)
- [addChild(_:)](modelio/mdlobject/addchild(_:).md)
- [enumerateChildObjects(of:root:using:stopPointer:)](modelio/mdlobject/enumeratechildobjects(of:root:using:stoppointer:).md)
- [atPath(_:)](modelio/mdlobject/atpath(_:).md)
