ScriptSpot

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 · 2009-12-01

It works great! Thanks so much. :)

DaveG · 2009-12-01

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

for i=1 to selection.count

le1setreter · 2009-12-01

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