Hey Guys,
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
viewport.setCamera setCam
count = selCam.count
setNewCam = (substring selCam 1 (count - 4))
dir = ("D:\Projects\buildingImages\\" + setNewCam + ".jpeg")
backgroundimagefilename = dir
viewport.DispBkgImage = true
completeRedraw()
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.
miauu · 2017-01-04