Can anyone tell me where i'm going wrong?
I have a selection of camera's in my scene. Some start with "cam_" other don't. I want to use matchpattern to select the camera's that do start with this prefix. Below is what I have been trying to use. Please could someone tell me where i'm going wrong, don't think i'm too far off, i just cant find the right syntax. Also it would be great to know how to search two matchpaterns in the same for loop if possible.
for i in cameras where matchpattern i.name pattern:"cam_*" collect i
Any help would be much appreciated!