list comp is awesome but sometimes they just get unreadable and hard to maintain, simply put abuse of an awesome feature
On Tue, Aug 21, 2012 at 1:51 PM, Alok <[email protected]> wrote: > oLightNulls = [mdl for mdl in oModel.FindChildren2("" > ,c.siNullPrimType,"",True) if "lamp" in mdl.Name or "light" in mdl.Name] > > Alok > On 21/08/2012 4:47 PM, Sam Cuttriss wrote: > > oLightNulls = oModel.FindChildren2("*lamp*" or "*light*" > ,c.siNullPrimType,"",True) > > the above does not work, > im just curious if there is a notation that can load up the search term so > i dont need to run it several times and combine the result > > _sam > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.2197 / Virus Database: 2437/5212 - Release Date: 08/20/12 > > >

