Easy thing that I'm struggling, Select by "name"
I'm really new into scripting, I'm making a script to select some objects that have "SPR" inside theyr name, but... I can only make it work if the name is exactly "SPR"
really basic stuff sorry, maybe my approach is all wrong.
on btn1 pressed do
local springs = #()
for i in selection where classof i == point do
if ( i.name == "SPR") do
this succesfully prints hello when detects SPR as a name, but I tried to put *SPR* so, if it has SPR inside the name, it prints it too but... wont work...
If you could give me a tip of what I'm doing wrong...