# STUDIO: Access a script / call a function on an object defined in schema

**URL:** <https://forum.8thwall.com/t/studio-access-a-script-call-a-function-on-an-object-defined-in-schema/3192>\
**Category:** Technical Support\
**Tags:** studio\
**Created:** [October 16, 2024, 4:49pm UTC](https://forum.8thwall.com/t/studio-access-a-script-call-a-function-on-an-object-defined-in-schema/3192 "2024-10-16T16:49:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Guilmard](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@Sam\_Guilmard](https://forum.8thwall.com/u/Sam_Guilmard)\
**Post date:** [October 16, 2024, 4:49pm UTC](https://forum.8thwall.com/t/studio-access-a-script-call-a-function-on-an-object-defined-in-schema/3192/1 "2024-10-16T16:49:46Z")

</div>

I have a ‘Game Controller’ script with an number of objects defined in the schema (ball1, ball2, ball3…)

These objects have a script attached to it ‘Ball Controller’ and within the ball controller there is a function ‘changeTexture’. How can I call the changeTexture function on each ball within the Game Controller script?

Thanks!

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [October 16, 2024, 4:58pm UTC](https://forum.8thwall.com/t/studio-access-a-script-call-a-function-on-an-object-defined-in-schema/3192/2 "2024-10-16T16:58:32Z")

</div>

I’d suggest going through each entity you reference in the schema and updating the component’s properties using mutate.

---

<div class="post-metadata">

**Author:** ![Sam\_Guilmard](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@Sam\_Guilmard](https://forum.8thwall.com/u/Sam_Guilmard)\
**Post date:** [October 16, 2024, 5:48pm UTC](https://forum.8thwall.com/t/studio-access-a-script-call-a-function-on-an-object-defined-in-schema/3192/3 "2024-10-16T17:48:09Z")

</div>

Thanks George but I’m not exactly sure what you mean? Is there something I could do like ball.BallController.changeTexture() ? Something like that?
