Houdini Generator Expression fail

   1306   1   0
User Avatar
Member
101 posts
Joined: Dec. 2012
Offline
Hi,

using a pre-render script and generators yields scope errors.


blacklist =
element = “lol”
if not any(name in element for name in blacklist):
print “not in list”


I am putting this script as a “pre-render script” but it doesn't like the “any” generator function. Is this known?
User Avatar
Member
2540 posts
Joined: June 2008
Offline
Where are you defining the function any?
it does not exist, right?

Just write the code in it's long format till you get it working then try to condense it down into a single line.

Even though you only have a single line, you can paste multiple lines of code into that field. I have put over 100 lines of code into a Post-Write field for a ROP Driver.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links