BasicOperations/FindPropertiesWithWildcard.py
24 c.Translation =
FBVector3d(random.random()*50, random.random()*50, random.random()*50)
28 def FindWithWildcard(cube, pattern, alsoUseUIName):
29 """ This function finds a propery with a particular pattern in its name."""
32 cube.PropertyList.FindPropertiesByName( pattern, cl, alsoUseUIName )
35 print len(cl),
"properties found with internal/UI name matching the pattern: \"" + pattern +
"\""
37 print len(cl),
"properties found with internal name matching the pattern: \"" + pattern +
"\""
40 print " ", o.GetName()
50 FindWithWildcard( cube,
"*",
True )
52 FindWithWildcard( cube,
"*Negative *",
True )
54 FindWithWildcard( cube,
"*Negative *",
False )
56 FindWithWildcard( cube,
"Trans*",
True )
57 FindWithWildcard( cube,
"*Trans",
False )
58 FindWithWildcard( cube,
"*Trans*",
False )