# DeepAR Face size transformation not working with changeParameterFloat

**URL:** <https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119>\
**Category:** Help & Questions\
**Created:** [October 26, 2022, 10:08am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119 "2022-10-26T10:08:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ely](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ely/32/200_2.png) [@ely](https://forum.deepar.ai/u/ely)\
**Post date:** [October 26, 2022, 10:08am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/1 "2022-10-26T10:08:02Z")

</div>

I’m looking at the documentation and trying it, and changeParameterFloat writes and runs as the example code, but it doesn’t work. I’m working with react native

const custom = {  
gameObject: ‘faceMorphFluffy’,  
component: ‘’,  
parameter: ‘chin\_raise’,  
value: -76,  
}

const deeparChangeLips = () =\> {  
deepARRef?.current?.changeParameterFloat(custom)  
console.log(deepARRef?.current?.changeParameterFloat, ‘show me’, custom);

}

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [October 26, 2022, 11:44am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/2 "2022-10-26T11:44:03Z")

</div>

Hi @ely the component should be “MeshRenderer” for changing blend shapes, we will have a look at our docs it seems we might have made an error in that use case.

---

<div class="post-metadata">

**Author:** ![ely](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ely/32/200_2.png) [@ely](https://forum.deepar.ai/u/ely)\
**Post date:** [October 27, 2022, 1:39am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/3 "2022-10-27T01:39:55Z")

</div>

Thanks for the answer. But I put MeshRenderer in the component but it didn’t work. Maybe the filter in that example doesn’t change its size even if I use MeshRenderer?

I’ll leave a link to the example I saw  
[https://help.deepar.ai/en/articles/3732006-changing-filter-parameters-from-code](https://help.deepar.ai/en/articles/3732006-changing-filter-parameters-from-code)  
Blend Shapes this is it

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [October 27, 2022, 4:04pm UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/4 "2022-10-27T16:04:21Z")

</div>

Could you share the effect in question, so I can check if something is different in it. The effect needs to have a faceMorphFluffy object with a chin\_raise blend shape

---

<div class="post-metadata">

**Author:** ![ely](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ely/32/200_2.png) [@ely](https://forum.deepar.ai/u/ely)\
**Post date:** [October 28, 2022, 1:22am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/5 "2022-10-28T01:22:43Z")

</div>

![use this effect](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/7b6904c34aaa6b4b8ead1e9fef5519c47879972b.jpeg)

I used the beauty effect  
I will share my code below 👇🏻

const custom = {  
gameObject: ‘faceMorphFluffy’,  
component: ‘MeshRenderer’,  
parameter: ‘chin\_raise’,  
value: -76,  
}

const deeparChangeFace = () =\> {  
deepARRef?.current?.changeParameterFloat(custom)  
console.log(deepARRef?.current?.changeParameterFloat, custom);  
}

return(  
  
\<Button  
style={styles.upLeftButton}  
text=“custom”  
onPress={() =\> {  
deeparChangeFace()  
}}  
/\>  
  
)

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [October 28, 2022, 12:57pm UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/6 "2022-10-28T12:57:49Z")

</div>

This looks correct, we will try testing it out.

Do you get any logs or errors when calling this code?

---

<div class="post-metadata">

**Author:** ![ely](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ely/32/200_2.png) [@ely](https://forum.deepar.ai/u/ely)\
**Post date:** [October 31, 2022, 5:36am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/7 "2022-10-31T05:36:41Z")

</div>

It just doesn’t work without any errors or error logs, so I’m just frustrated.

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [November 2, 2022, 12:28pm UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/8 "2022-11-02T12:28:25Z")

</div>

Sorry about that we will try to test it out. Are you using the react native example linked on our GitHub?

---

<div class="post-metadata">

**Author:** ![ely](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ely/32/200_2.png) [@ely](https://forum.deepar.ai/u/ely)\
**Post date:** [November 3, 2022, 9:16am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/9 "2022-11-03T09:16:58Z")

</div>

right

I’ll put a link to an example I saw below

> **[GitHub - ridvanaltun/react-native-deepar: Snapchat-like filters, AR lenses,...](https://github.com/ridvanaltun/react-native-deepar)**
>
> Snapchat-like filters, AR lenses, and real-time facial animations. - GitHub - ridvanaltun/react-native-deepar: Snapchat-like filters, AR lenses, and real-time facial animations.

If I create a new effect and use changeParameterFloat will it work ok?

I’m trying to create and use an effect in deepar studio, but if the extension is exported as .deepar, it cannot be used in the app. How can I use the effect in the app?

I’ll attach a screenshot of your example custom effect file. When I open it in deepar, it works fine, but if I put it in the app’s /asset folder/effects folder, it doesn’t come out.

 ![스크린샷 2022-11-03 오후 6.14.49](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/bbcc798be4bfb0726f80e55eacd06b515ace89ac.png)

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [November 3, 2022, 1:13pm UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/10 "2022-11-03T13:13:15Z")

</div>

I’m not sure what might be causing you issue yet, but the files in the effects folder are equivalent to the .deepar files we have. If you add the extension manually you will be able to open them in preview.

You will just need to add the extension to the file path when calling switch effect

---

<div class="post-metadata">

**Author:** ![ely](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/ely/32/200_2.png) [@ely](https://forum.deepar.ai/u/ely)\
**Post date:** [November 23, 2022, 5:21am UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/11 "2022-11-23T05:21:55Z")

</div>

Can I get a makeup demo, a face shape transformation demo, and a hair color demo?

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [November 25, 2022, 5:18pm UTC](https://forum.deepar.ai/t/deepar-face-size-transformation-not-working-with-changeparameterfloat/119/12 "2022-11-25T17:18:58Z")

</div>

You can test out all of those features in our Beauty 3000 app

> **[‎Beauty3000](https://apps.apple.com/us/app/beauty3000/id1485578436)**
>
> ‎Beauty3000
> Makeup tools for a perfect selfie
> 
> Create the best makeup looks and share them with your friends and followers. Beauty3000 provides you with all the tools you need to create a perfect looking selfie or a video. The award-winning studio...
