# Inspector parameters to code

**URL:** <https://forum.babylonjs.com/t/inspector-parameters-to-code/17216>\
**Category:** Questions\
**Created:** [January 5, 2021, 6:39pm UTC](https://forum.babylonjs.com/t/inspector-parameters-to-code/17216 "2021-01-05T18:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javismiles](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/javismiles/32/12924_2.png) [@javismiles](https://forum.babylonjs.com/u/javismiles)\
**Post date:** [January 5, 2021, 6:39pm UTC](https://forum.babylonjs.com/t/inspector-parameters-to-code/17216/1 "2021-01-05T18:39:56Z")

</div>

The inspector at the sandbox is really awesome, question, if say for example I find a change in a parameter of a PBR material at the inspector that I really like, there should always be an equivalent babylon.js code command that will allow me to implement that exact change on the code right?

---

<div class="post-metadata">

**Author:** ![javismiles](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/javismiles/32/12924_2.png) [@javismiles](https://forum.babylonjs.com/u/javismiles)\
**Post date:** [January 5, 2021, 6:48pm UTC](https://forum.babylonjs.com/t/inspector-parameters-to-code/17216/2 "2021-01-05T18:48:34Z")

</div>

yes just made a test with  
mesh.material.roughness = 0.9;  
mesh.material.roughness = 0;  
and it works 😉
