# Name of the loaded shape

**URL:** <https://discourse.processing.org/t/name-of-the-loaded-shape/43397>\
**Category:** Coding Questions\
**Created:** [December 5, 2023, 3:27pm UTC](https://discourse.processing.org/t/name-of-the-loaded-shape/43397 "2023-12-05T15:27:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrbbp](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mrbbp/32/15313_2.png) [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Post date:** [December 5, 2023, 3:27pm UTC](https://discourse.processing.org/t/name-of-the-loaded-shape/43397/1 "2023-12-05T15:27:05Z")

</div>

Hello,

i load few shape in an array.  
i change the used shape in the drawing area.  
the only thing i know is the index of the shape in the array.

```auto
int nbrI = 24;
PShape[] pinceaux = new PShape[nbrI];

for (int i=0; i<nbrI; i++) {
    pinceaux[i] = loadShape("medias/image_"+i+".svg");
  }

```

is there a way to have more information about the shape loaded in the array.  
if i ask `println("numeroDuPinceau:",pinceaux[numeroDuPinceau]);`  
i received an @number  
`numeroDuPinceau: processing.awt.PShapeJava2D@3873f7c8`  
is there property of this object like url or path to identify the shape in the cells’s array?

thanks

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 5, 2023, 9:17pm UTC](https://discourse.processing.org/t/name-of-the-loaded-shape/43397/2 "2023-12-05T21:17:35Z")

</div>

Hello @mrbbp,

You can save the path in another array to save additional info:

```auto
int nbrI = 24;
String [] shapeInfo = new String [nbrI]; 

for (int i=0; i<nbrI; i++) 
  {
    String strPath = "medias/image_"+i+".svg";
    shapeInfo [i] = strPath;
    }

```

`:)`

---

<div class="post-metadata">

**Author:** ![mrbbp](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mrbbp/32/15313_2.png) [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Post date:** [December 6, 2023, 8:11am UTC](https://discourse.processing.org/t/name-of-the-loaded-shape/43397/3 "2023-12-06T08:11:38Z")

</div>

oh yes!  
really good (where is my mind?)  
i keep it!  
thanks a lot.
