# Maxscript help changing name of objects

**URL:** <https://forums.chaos.com/t/maxscript-help-changing-name-of-objects/50863>\
**Category:** Off-topic\
**Created:** [August 27, 2014, 3:44pm UTC](https://forums.chaos.com/t/maxscript-help-changing-name-of-objects/50863 "2014-08-27T15:44:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DanielBrew](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/danielbrew/32/22952_2.png) [@DanielBrew](https://forums.chaos.com/u/DanielBrew)\
**Post date:** [August 27, 2014, 4:01pm UTC](https://forums.chaos.com/t/maxscript-help-changing-name-of-objects/50863/2 "2014-08-27T16:01:06Z")

</div>

Using ‘as string’ should work.

This works for me:```  
(  
local objsAR = getCurrentSelection()  
for i = 1 to objsAR.count do objsAR[i].name = “NewName” + i as string  
)

```auto

```

---

_[View the full topic](https://forums.chaos.com/t/maxscript-help-changing-name-of-objects/50863)._
