# Type of material

**URL:** https://forum.highend3d.com/t/type-of-material/7176
**Category:** Maya
**Tags:** mel
**Created:** [June 4, 2001, 8:00pm UTC](https://forum.highend3d.com/t/type-of-material/7176 "2001-06-04T20:00:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![novydhillon](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/76d3ee/32.png) [@novydhillon](https://forum.highend3d.com/u/novydhillon)
#### Post date: [June 4, 2001, 8:00pm UTC](https://forum.highend3d.com/t/type-of-material/7176/1 "2001-06-04T20:00:23Z")

</div>

Is there any way to find out what type a given material is through mel.  
Is it Lambert, Blinn, Anisotropic, etc.....

Novy Dhillon  
Radical Entertainment Inc.  
Vancouver BC.  
ndhillon@radical.ca

---

<div class="post-metadata">

### Author: ![gmask](https://forum.highend3d.com/user_avatar/forum.highend3d.com/gmask/32/192_2.png) [@gmask](https://forum.highend3d.com/u/gmask)
#### Post date: [June 4, 2001, 8:51pm UTC](https://forum.highend3d.com/t/type-of-material/7176/2 "2001-06-04T20:51:48Z")

</div>

> [@](#):
>
> In reply to:   
> Is there any way to find out what type a given material is through mel.  
> Is it Lambert, Blinn, Anisotropic, etc.....

ls -st blinn3;  
// Result: blinn3 blinn //

BTW.. I looked into if it was possible to change the type but I did not find a way

---a note from our sponsor---  
[Have you tried searching highend3d?  
](http://www.highend3d.com/boards/search.php?Cat=1,2)

[www.gmask.com](http://www.gmask.com)

---

<div class="post-metadata">

### Author: ![rokl](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@rokl](https://forum.highend3d.com/u/rokl)
#### Post date: [June 7, 2001, 8:24am UTC](https://forum.highend3d.com/t/type-of-material/7176/3 "2001-06-07T08:24:43Z")

</div>

How about:  
nodeType blinn1;  
// Result: blinn //

rokl

> [@](#):
>
> In reply to:   
> Is there any way to find out what type a given material is through mel.  
> Is it Lambert, Blinn, Anisotropic, etc.....

---

<div class="post-metadata">

### Author: ![gordie](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@gordie](https://forum.highend3d.com/u/gordie)
#### Post date: [June 7, 2001, 3:58pm UTC](https://forum.highend3d.com/t/type-of-material/7176/4 "2001-06-07T15:58:53Z")

</div>

> [@](#):
>
> In reply to:   
> ...  
> BTW.. I looked into if it was possible to change the type but I did not find a way  
> ...

If you want to change the type of a material you can do the following:

> [@](#):
>
> replaceNode ("yourNode", `createNode blinn`);  
> delete yourNode;

If you don't call delete yourNode then yourNode will still exist. This way you can make a bunch of materials based on yourNode by repeatedly calling replaceMaterial.

Gordie Neill  
Software Engineer  
Alias|wavefront
