---
title: "Sync Spatial Preview Objects"
url: "https://help.maxon.net/c4d/en-us/Content/html/SPATIAL_PREVIEW_SYNC_OBJECTS.html"
section_path: "Extensions menu > Spatial Preview > Sync Spatial Preview Objects"
description: "The Sync Spatial Preview Objects command compares the Cinema 4D object hierarchy with the prims on the live USD stage of a Spatial Preview session …"
---

## Sync Spatial Preview Objects

> **Note:** **What is it about?**
>
> The **Sync Spatial Preview Objects** command compares the Cinema 4D object hierarchy with the prims on the live USD stage of a [Spatial Preview](https://help.maxon.net/c4d/en-us/Content/html/SPATIAL_PREVIEW_OVERVIEW.html.md) session, removes what is gone, and authors what is new — without re-exporting the whole scene.

## Availability

The command is available on macOS only. It is enabled only while a Spatial Preview session is active and the USD Bridge is open for the current document, i.e. in the live-sync document created by [Open in Spatial Preview](https://help.maxon.net/c4d/en-us/Content/html/SPATIAL_PREVIEW_OPEN_COMMAND.html.md) with **Open Live-sync** enabled.

Before it runs, the command asks *"This operation might make changes to the document. Continue?"*, because new objects can be renamed, regrouped or baked.

## What it does, in order

1. **Prepares the export.** The Spatial Preview [export defaults](https://help.maxon.net/c4d/en-us/Content/html/SPATIAL_PREVIEW_OPEN_COMMAND.html.md) (USDC, no light unit conversion) are used, with Y up. If the document's frame range is a single frame, the command jumps to that frame.
2. **Ensures one root.** All objects must sit under one *Null* object named after the default prim. If they do not, the root is created and the scene is moved under it.
3. **Compares scene and stage.** Every prim path on the stage is listed, then the Cinema 4D hierarchy is walked. Each object is classified by its stored prim path, by the path its current place in the hierarchy gives, and by the prim type on the stage (see the table below).
4. **Marks stale prims for removal.** Every prim that no object claimed is marked to be removed. The shader prims inside a material that is still in use are kept.
5. **Prepares new objects** the same way the USD exporter does: objects hidden from rendering are skipped; generators, deformed hierarchies and unsupported types are baked to polygons; unsupported primitives and cubes are baked; instance sources get an xform; nested gprims are separated; projections get generated UVs.
6. **Names them uniquely.** The top object of each new subtree is renamed to a name that is unique under its parent prim, and its hierarchy is renamed for export.
7. **Authors the changes.** The marked prims are removed, the new ones are added, and their properties, transforms, materials and textures are exported. Textures go to the texture folder next to the stage file.
8. **Locks the scene.** Every object is protected against drag and drop, as after a regular Spatial Preview export.

Objects added by this command receive a [USD Bridge Tag](https://help.maxon.net/c4d/en-us/Content/html/SPATIAL_PREVIEW_USD_BRIDGE_TAG.html.md) during export, so from then on their transforms and materials sync live.

## How objects are classified

| Stored prim path | Matches current hierarchy path | Prim type on stage | Result |
| --- | --- | --- | --- |
| none | – | – | **New**: exported with its children |
| set | no | – | **Moved**: old prim removed, re-exported at the new place |
| set | yes | same as object | **Found**: kept; its selection tags and materials are kept too, and its children are checked |
| set | yes | different | **Re-typed**: old prim replaced by a new export |
| set | yes | missing from stage | **Gone**: skipped, nothing is authored |

Polygon selection prims and material prims are kept only when their stored path equals the path built from the parent prim and the selection name, or from */\<default prim>/Materials* and the material name.

## Things to know

- **The command edits the document.** New generators and unsupported objects are replaced by baked polygon objects, new objects can be renamed, and the scene is moved under the root null.
- **Materials are matched by name.** The command keeps a material prim only when its path is */\<default prim>/Materials/\<material name>*. A material whose prim got a de-duplicated name, or that was renamed in Cinema 4D, is not recognized and its prim is removed.
- **Geometry is not synced.** Points, topology or generator output of an object that is already on the stage are not updated. Getting such changes onto the AVP takes a new export or a restart of the preview.

An overview of which changes are handled by this command and which by the *USD Bridge Tag* can be found on the [Spatial Preview overview page](https://help.maxon.net/c4d/en-us/Content/html/SPATIAL_PREVIEW_OVERVIEW.html.md).
