> For the complete documentation index, see [llms.txt](https://docs.pxl.archbe.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pxl.archbe.org/ar/workflows/hololens-2-+-sketchfab.md).

# HoloLens 2 + Sketchfab

{% hint style="info" %}
Pre-requisites:

Download the following:

* Revit®️ 2020 or later software
* [Lumion® LiveSync® for Autodesk® Revit®](https://apps.autodesk.com/RVT/en/Detail/Index?id=1257010617153832891\&appLang=en\&os=Win64)
* [Blender 3D](https://www.blender.org/)

Create an account in [Sketchfab (free)](https://sketchfab.com/).&#x20;
{% endhint %}

### Setting Up 3D Model

1. Have your model ready in Revit then head to the Lumion plugin tab
2. Use Lumion Plugin's "Export" button to export in COLLADA (.dae):[ Click here to install](https://apps.autodesk.com/RVT/en/Detail/Index?id=1257010617153832891\&appLang=en\&os=Win64).&#x20;

<figure><img src="https://3151333760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnvz4ZtvPokukTQOPF1B5%2Fuploads%2FdJzmPRDWxrxQSTzVqAKy%2Fimage.png?alt=media&amp;token=5e595bfb-7b09-4f03-a301-8fc26fa94f2e" alt=""><figcaption></figcaption></figure>

3. Click on "Export" and save it to your desired location.&#x20;

<figure><img src="https://3151333760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnvz4ZtvPokukTQOPF1B5%2Fuploads%2FqeqkGZWg63vv2NhiSuu5%2Fimage.png?alt=media&amp;token=cd033b49-bbdf-47c4-bc4e-a108f30be08a" alt=""><figcaption></figcaption></figure>

### Blender Scripting

4. Open Blender 3D and open the exported model. You will see that the model's textures are all black or transparent. We will change that using a code script.&#x20;
5. Switch to the Scripting Workspace.&#x20;

<figure><img src="https://3151333760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnvz4ZtvPokukTQOPF1B5%2Fuploads%2FO8Npc8q8S5R8iqNA9rk5%2Fimage.png?alt=media&amp;token=abe4a9d3-4ad3-41b8-91a7-6d7791337e93" alt=""><figcaption></figcaption></figure>

6. Click the \[+ New] button in the text editor to create a new text data-block.

<figure><img src="https://3151333760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnvz4ZtvPokukTQOPF1B5%2Fuploads%2FDYFbhyNO8cAKwtmtQyNj%2Fimage.png?alt=media&amp;token=55252169-4d78-473d-bc8b-034dc3177f6f" alt=""><figcaption></figcaption></figure>

7. Copy the code from below and paste it into the text editor.

<pre class="language-python"><code class="lang-python"><strong>import bpy
</strong>for mat in bpy.data.materials:
    if hasattr(mat.node_tree, "nodes"):
        for node in mat.node_tree.nodes:
            if node.type == 'BSDF_PRINCIPLED':
                for input in node.inputs:
                    if input.name == 'Alpha':
                        input.default_value = 1
</code></pre>

8. Run the Python script by clicking on the green play button.

<figure><img src="https://3151333760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnvz4ZtvPokukTQOPF1B5%2Fuploads%2FidAIcGnlaL6daHXbPmtm%2Fimage.png?alt=media&amp;token=7e519c99-c2f1-40d5-bf2f-4703c3c5f31d" alt=""><figcaption></figcaption></figure>

9. Once Blender is done running the script, the model should show its original colors as seen in Revit. Export to .fbx, .obj, or .dae. Recommend .dae for maintaining textures.

<figure><img src="https://3151333760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnvz4ZtvPokukTQOPF1B5%2Fuploads%2FlrrjqQbQnMOmyr3NqrqR%2Fimage.png?alt=media&amp;token=1fb9def5-cdac-4f6a-831d-4fe0082005ba" alt=""><figcaption></figcaption></figure>

### Uploading to Sketchfab

10. Upload to Sketchfab. You can use a free account to do this.
11. Open your HoloLens 2 with the Sketchfab app logged into your account.&#x20;
12. Done! All you have to do now is to open your model uploaded and you can see it in augmented reality.&#x20;
