ScriptSpot home

Forum topic · General Scripting

Return the selection name

By DaveG · 2009-12-01

Description

Hi,

I need my script to loop through the selected objects in the scene and return their name.

I can get the count from selection.count, but I'm stuck there. Please help! :D

Comments (3)
DaveG

It works great! Thanks so much. :)

DaveG

Thanks, I'll give it a go. :)

le1setreter

for i=1 to selection.count

for i=1 to selection.count do (
-- for every object do (print object name)
print selection[i].name
)