Hi everyone!
I'm trying to develop a tool which has 2 arrays (Prueba1 is the main array and prueba2 contains the words that musn´t appear).
First erase the " * " character and later through the "FindString" function check if it was a string correct or not. But i have an exception which i don't see right now, this exception is with Prueba 1 ("prueba_emissive_11").
Can you help me with this stupid bug ? :S jajajaja thanks!
prueba1 = #(
"prueba111",
"LA_emissive_prueba1",
"prueba_emissive_11",
"prueba_caliper_garage",
"prueba22",
"car_interior_garage",
"Car_shadow"
)
prueba2 = #(
"*emissive*",
"*_caliper_garage",
"interior_garage",
"*shadow*"
)
fn getNamesOfMeshesThatRequireUV2 = (
local meshesThatRequireUV2 = prueba1
for n in prueba2 do (
local exceptionName = substituteString n "*" ""
for m in prueba1 do (
local TheName = m
if findstring theName exceptionName != undefined then (
deleteItem meshesThatRequireUV2 (findItem meshesThatRequireUV2 theName)
)
)
)
messagebox (meshesThatRequireUV2 as string)
)
getNamesOfMeshesThatRequireUV2()
Replies
thanks for all!1 finally I've develop the function this and works!