# Flutter plugin: changeParamter for texture change in background segmentation

**URL:** https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168
**Category:** Help & Questions
**Created:** [January 9, 2023, 12:39pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168 "2023-01-09T12:39:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![tobsnti](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@tobsnti](https://forum.deepar.ai/u/tobsnti)
#### Post date: [January 9, 2023, 12:39pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/1 "2023-01-09T12:39:49Z")

</div>

Hi, I would like to use our filter for background segmentation with the Flutter plugin and change the background texture.  
Currently I tried following function call:

```auto
deepArController.changeParameter(gameObject: 'Background', component: 'MeshRenderer', parameter: 's_texColor', newParameter: base64String);

```

Is the gameObject parameter reffering to the node in the filter?  
is ‘s\_texColor’ the correct value for the parameter?  
What type should the newParameter be? A file path, a base64 string, file object or something else?

Best,  
Tobi

---

<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: [January 12, 2023, 12:25pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/2 "2023-01-12T12:25:16Z")

</div>

Hi Tobi

For this use case the newParameter should be a path string to the new image,  
gameObject is indeed the node name and the parameter should match the internal texture name, this will depend on the sharer used.

Could you share the effect in question so I can help you check if s\_texColor is correct?

---

<div class="post-metadata">

### Author: ![Shaimaa\_Abdelwahab](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/shaimaa_abdelwahab/32/272_2.png) [@Shaimaa\_Abdelwahab](https://forum.deepar.ai/u/Shaimaa_Abdelwahab)
#### Post date: [January 12, 2023, 12:29pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/3 "2023-01-12T12:29:40Z")

</div>

hi @jelena I tried this solution, but the background was not changed in my part. I tried galaxy\_background.deepar  
As an effect, that’s why I put the pram like this

```
 _deepArController.changeParameter(
          gameObject: 'Background',
          component: 'MeshRenderer',
          parameter: 's_texColor',
          newParameter: "assets/prames/Galaxy.jpg");

```

and it not working  
can you help me in that please

---

<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: [January 12, 2023, 12:34pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/4 "2023-01-12T12:34:53Z")

</div>

This would be correct for an experted background template available in the new studio.

Can you share the exact galaxy\_background.deepar file you have, there have been multiple versions.

Or you could export the background template from the new studio as an effect?

---

<div class="post-metadata">

### Author: ![Shaimaa\_Abdelwahab](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/shaimaa_abdelwahab/32/272_2.png) [@Shaimaa\_Abdelwahab](https://forum.deepar.ai/u/Shaimaa_Abdelwahab)
#### Post date: [January 12, 2023, 12:40pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/5 "2023-01-12T12:40:14Z")

</div>

![Screenshot 2023-01-12 at 2.38.16 PM](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/fd6fc3511105fd676440d17d99821f56985c4867.png)

---

<div class="post-metadata">

### Author: ![Shaimaa\_Abdelwahab](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/shaimaa_abdelwahab/32/272_2.png) [@Shaimaa\_Abdelwahab](https://forum.deepar.ai/u/Shaimaa_Abdelwahab)
#### Post date: [January 12, 2023, 12:44pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/6 "2023-01-12T12:44:25Z")

</div>

i have open it in deep ar studio and check properties and I also change image to anther image ther result is image put as effect in foreground i donot know why , and also export new one from studio but its same result

---

<div class="post-metadata">

### Author: ![Shaimaa\_Abdelwahab](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/shaimaa_abdelwahab/32/272_2.png) [@Shaimaa\_Abdelwahab](https://forum.deepar.ai/u/Shaimaa_Abdelwahab)
#### Post date: [January 12, 2023, 1:56pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/7 "2023-01-12T13:56:27Z")

</div>

@jelena please check this

---

<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: [January 12, 2023, 2:42pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/8 "2023-01-12T14:42:14Z")

</div>

It looks okay on the screenshot can you send the actual effect it looks to be an older version

---

<div class="post-metadata">

### Author: ![tobsnti](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@tobsnti](https://forum.deepar.ai/u/tobsnti)
#### Post date: [January 16, 2023, 12:15pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/9 "2023-01-16T12:15:24Z")

</div>

Hi Jelena,

I’ve checked and `s_texColor` is the correct parameter for us. You can find our filter attached.  
Unfortunately the path string to the new image is not working, the background stays the same texture. I did a little editing in the Flutter plugin and could achieve the texture change with an UIImage for iOS.  
It would be very nice to achieve the same with only the path string and no changes in the Flutter plugin, but I don’t know how that is possible.  
If it’s not possible, I will provide a PR to enable it.

[background\_segmentation.deepar.zip](https://forum.deepar.ai/uploads/short-url/S1gbLmOR6uV87p9cNVK28tFUv0.zip) (2.6 KB)

---

<div class="post-metadata">

### Author: ![Shaimaa\_Abdelwahab](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/shaimaa_abdelwahab/32/272_2.png) [@Shaimaa\_Abdelwahab](https://forum.deepar.ai/u/Shaimaa_Abdelwahab)
#### Post date: [January 24, 2023, 10:46am UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/10 "2023-01-24T10:46:14Z")

</div>

@tobsnti can you share with me what did you do in flutter

---

<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: [January 24, 2023, 8:25pm UTC](https://forum.deepar.ai/t/flutter-plugin-changeparamter-for-texture-change-in-background-segmentation/168/11 "2023-01-24T20:25:42Z")

</div>

s\_texColor is correct for that effect. I will check with the flutter team. Is it possible you don’t have permission to access assets/prames/Galaxy.jpg or the file location is incorrect?
