if getActiveCamera() != undefined then ( theCam = getActiveCamera() select #(theCam, theCam.target))
theCam = getActiveCamera()if theCam != undefined then( select if theCam.type == #target then #(theCam, theCam.target) else #(theCam);)
Replies
- if getActiveCamera() != undefined then (
- theCam = getActiveCamera()
- select #(theCam, theCam.target)
- )
Here's how- 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.