This selects camera - actionMan.executeAction 0 "40247" -- Views: Select Viewport NodeandThis selects camera target - actionMan.executeAction 0 "40248" -- Views: Select Viewport Node Target How to select both at the same time?
shouldn't it be something like theCam = getActiveCamera() if theCam != undefined then ( select if theCam.type == #target then #(theCam, theCam.target) else #(theCam); ) otherwise it throws an error with a free camera.