Set images as Background
I'm have 15 cameras of a building for different view with background images for each camera. So i was trying to create a script which basically give a list of all the cameras in the scene and when i selected any camera it will set the camera on the active viewport with background image.
selCam = CameraList.selected
setCam = getNodeByName CameraList.selected
count = selCam.count
setNewCam = (substring selCam 1 (count - 4))
dir = ("D:\Projects\buildingImages\\" + setNewCam + ".jpeg")
backgroundimagefilename = dir
viewport.DispBkgImage = true
The problem is that when i click on the camera it do set the background image for that active viewport but it reset all the other viewport with a new background images.