# List Appearance Assets for Material

**URL:** <https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275>\
**Category:** Uncategorized\
**Created:** [November 7, 2017, 6:24am UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275 "2017-11-07T06:24:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Wright](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@Justin\_Wright](https://forum.dynamobim.com/u/Justin_Wright)\
**Post date:** [November 7, 2017, 6:24am UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275/1 "2017-11-07T06:24:30Z")

</div>

Hello

We have recently starting using Oculus with Enscape,  
Material management is proving to be important.  
After years of making materials on the fly, there is a bit to do to tidy up.  
We created a Family with different objects with a material instance, and used dynamo to lay out a long line of each materiel we had in our library.

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/f/0/f09f506d0c3286ae8f6872f419d1220791a11961.jpg)

While this has been useful, I’m finding the same appearance asset has been used in a lot of materials. Hence, what would be very useful would be to see relate the materials to the appearance asset.

I had a go at getting reading the asset name, but Element.getParameterValueByName does not work.

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/0/a/0a5455ebbd78b27e3a58e49dcd959a5dcd503240.png)

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/0/f/0f27992a11ca3ffcee8b22fd87448801d89122aa.png)

I found this post by @Konrad_K_Sobon that tells me why but my python is not up to understanding what is going on.  
[https://forum.dynamobim.com/t/material-asset-names/4824](https://forum.dynamobim.com/t/material-asset-names/4824)

Question:  
Can some one help me with the python code to get the name of the Asset.

Further more  
Now that I’m using VR, I’m very curious to see what all the Revit appearance Assets look like inside the Oculus  
I suspect that as VR comes more affordable, more people will be interested in Revit Appearance Assets. I don’t have time to learn Python right now… Hence if anyone was so kind to help provide this, what would be an awesome tool would be to create a script that

1. Builds List of Appearance Assets  
 ![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/7/5/75056729903000a5c30649ca9308abc761ca160f.png)
2. Creates new Material taken from Appearance Asset Name
3. Assigns Appearance asset to the Material.

I’d be happy to post up my graph and family for the layout.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [November 7, 2017, 8:16am UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275/2 "2017-11-07T08:16:40Z")

</div>

> [@Justin\_Wright](#):
>
> I don’t have time to learn Python right now

I am afraid that, despite a great presentation and what’s look like an interesting proposal, I have to remind that this is not a place to ask others to do your job for free (see what’s in the [forum guidelines](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677) about that). I would rather advise to learn some Python basics before asking. Here are some links that could help you on this way:

> [@Python Nodes Basics](https://forum.dynamobim.com/t/python-nodes-basics/15872):
>
> I noticed it might be useful to gather some Python related posts in one thread to make it easy to get started with some basic understanding (and also for a consultation ease purpose). This is still a work in progress and there might be some slight inconsistencies. Feel free to add your own links or Python related comments, or to PM me on anything that should be revised. This first post relates naturally to tips for LEARNING PYTHON: [http://dynamoprimer.com/en/09\_Custom-Nodes/9-4\_Python.html](http://dynamoprimer.com/en/09_Custom-Nodes/9-4_Python.html)[htt…](http://dynamoprimer.com/en/09_Custom-Nodes/9-5_Python-Revit.html)

> [@Looking for Freelancer for Dynamo](https://forum.dynamobim.com/t/looking-for-freelancer-for-dynamo/13574):
>
> Does any know if there is a company or a freelancer that create custom dynamo nodes for architectural or engineering firm?

Lastly, you can check what’s in the existing nodes by clicking on them, it will help you to get started.  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Justin\_Wright](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@Justin\_Wright](https://forum.dynamobim.com/u/Justin_Wright)\
**Post date:** [November 7, 2017, 9:38am UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275/3 "2017-11-07T09:38:08Z")

</div>

Thanks for the reference back to guidelines. I think I followed them

I asked one specific question, how to edit the python code on the page I referenced. This will allow me to get the name of the material assets. I have a basic understanding of python. The python on the page referenced seems advanced to me. I think some where the information is being accessed, I suspect only one or two lines need adjusting. If some one shows me the updated code then It will help me learn python.

I suspect anyone who starts using VR will find the process I’m doing useful… hence I added the furthermore with an outline of what would be very useful. I’m not expecting anyone to do it for me.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [November 7, 2017, 10:42am UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275/4 "2017-11-07T10:42:32Z")

</div>

> [@Justin\_Wright](#):
>
> Can some one help me with the python code to get the name of the Asset.

For this first part of your question, it could simply be done like so instead:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd4d6f2265dd95ca3148f8ce25021f6222406dc8.png)  
For the Python part of your request, I would strongly advise to start putting your hands on it.  
Since the thread you mention is one year old already, it would be also be interesting to first sum-up what has been done since that time.  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Justin\_Wright](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@Justin\_Wright](https://forum.dynamobim.com/u/Justin_Wright)\
**Post date:** [November 7, 2017, 8:37pm UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275/5 "2017-11-07T20:37:55Z")

</div>

Thank you for your help @

It was simpler than I thought.  
I can use Element.Name to do what I want.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e228fa17b0a76d7adea272f1f57364865730712.png)

The Error message is: _Warning: Asked to convert non-convertible types"_  
However I can use the list anyhow.

Thanks for your help @Yna_Db

---

<div class="post-metadata">

**Author:** ![angadtiwari](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@angadtiwari](https://forum.dynamobim.com/u/angadtiwari)\
**Post date:** [July 13, 2022, 5:51am UTC](https://forum.dynamobim.com/t/list-appearance-assets-for-material/16275/6 "2022-07-13T05:51:24Z")

</div>

Genius Loci has a very good Node known as Collector of ApperenceAsset now. Haha this conversation is old but good to see what is being still looked at:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/d/2dab6bbf0b4503bba8e6907eafd1e16e411fe016.png)
