Notifications
Clear all

[Closed] Trying to get something to work on only selected geometry

So I would like to print names of selected objects, but only Geometry objects. If I select a light and run this, it prints the lights name. Any ideas of a better way to do this?


 for geometry in (selection as array) do
 (
  	   print geometry.name
 )
 
1 Reply
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

for node in geometry where node.isselected do print node.name