How can I write a recursive function to find a specific property such as 'bend' and once I find the first instance of the property I return the value and stop searching.
Forum topic · General Scripting
Recursive functions to find property
By JokerMartini · 2014-03-08
Description
Comments (1)
barigazy · 2014-03-08
fn findProperty node prop:#bend =
(
local found = off, result
for p in getPropNames node while found where (found = (p == prop)) do result = (getProperty node prop)
result
)