> For the complete documentation index, see [llms.txt](https://know.rendernetwork.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://know.rendernetwork.com/getting-started/cinema-4d-on-render-network-guide/preparing-your-cinema-4d-file-for-the-render-network/how-to-work-with-nested-scenes-xrefs-in-c4d-for-the-render-network-advanced.md).

# How to work with nested scenes (XRefs) in C4D for the Render Network (Advanced)

A Guide to working with XRefs in the C4D

{% embed url="<https://youtu.be/cz4qjmNedlk>" %}

Like simulations, XRefs need preparations to work correctly on the Render Network.

If you want to include Cinema4D files as nested scenes inside your main project, you need to add the **.c4d** using the "**XRef**" object, which you can find in "**Create**" -> "**XRef**" -> "**Add XRef**".

<figure><img src="https://lh3.googleusercontent.com/Aj3976zLTTmDwmmo0yaFGAfT_rvn_OXWtxg53TzqVhEA_6Upm02nvVTkrb5y0ZrKeKONSoZFkWoyw9pbX8jlG4rr6tWDzAlBBNUTxDpAvQqxdU8Hg9JmKwzz8aihAXDzUcIT7HWygqwhGk2X_woT1JM" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**Please note:** <mark style="color:red;">the “</mark><mark style="color:red;">**Simple XRef**</mark><mark style="color:red;">” object is currently not supported by the Cinema 4D Octane Plugin.</mark>
{% endhint %}

After adding the XRef and saving your scene file, make sure you collect all files next to the project file either by choosing "**File**" -> "**Save Project with Assets**", or by going into the **Project Asset Inspector** and choosing "**Asset**" -> "**Consolidate Assets**" for all assets in the scene.

You will most likely need to turn the link for the XRef into a relative path, and will need to do this right before saving the project file.

Click on the loaded scenefile in the **Project Asset Inspector** and choose "**Asset**" -> "**Localize Filename.**" Make sure that your XRef are using a relative path in the Project Asset Inspector as well as the actual XRef object like this:

<figure><img src="https://lh6.googleusercontent.com/l6BNfDw7G_FMo72h3T7Fd_mDlLZspeqJjgZ9G0V1WHMmlPA2a1uGLcCkDrfjEcSUm-93TOMyiOKNTM5u0JMLaknUC0TTqYa-VoqoIsQ9seHtIhT-W_jl1q-KL2puWscZkwMKCkHYjmmHQjWOSSYyjUk" alt=""><figcaption><p>In this case the Male_1.c4d file is located right next to our actual project file.</p></figcaption></figure>

**Before** creating a Zip-file from the project folder, make sure that your main project file is called **exactly** as the zipped folder you are uploading to the network. All nested project files, which are imported as XRefs, will need to be named differently to the main project file and the folder it is located in.

<figure><img src="https://1286142079-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKt2GmpnqwLIsi-Sh1Z%2Fuploads%2FK52GQ5J2c1zfqVA3shPZ%2Fimage.png?alt=media&amp;token=b611c9ef-9084-4f4c-b042-4da8af26edd9" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://know.rendernetwork.com/getting-started/cinema-4d-on-render-network-guide/preparing-your-cinema-4d-file-for-the-render-network/how-to-work-with-nested-scenes-xrefs-in-c4d-for-the-render-network-advanced.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
