On 17/08/2018 at 08:51, xxxxxxxx wrote:
Hi,
is this a question how to achieve such in general or via code? If the question is for code than I'd recommend to rather post into SDK Help subforum for C++ or Python subforum for Python.
As a user you can just create a "New View Panel..." from the Window menu. You can resize it to your needs, dock it where ever you like (or have it on a second screen) and select what ever camera you want within its "Cameras" menu.
Via code you could do something like this (you didn't specify a language, I'll be using Python in Script Manager here) :
import c4d
def main() :
cam = doc.GetFirstObject() # in test scene the wanted camera is the first object
if cam is None or not cam.CheckType(c4d.Ocamera) :
print "No camera"
return
c4d.CallCommand(12544) # New View Panel...
bdNew = doc.GetActiveBaseDraw()
bdNew.[SetSceneCamera](https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseView/BaseDraw/index.html?highlight=basedraw#BaseDraw.SetSceneCamera)(cam)
bdNew.SetParameter(c4d.BASEDRAW_DISPLAYFILTER_GRID, False, c4d.DESCFLAGS_SET_0)
c4d.EventAdd()
if __name__=='__main__':
main()
The BaseDraw offers quite a few options via SetParameter(). The IDs are unfortunately only listed in the C++ docs: dbasedraw.h
So far so good. But it is impossible to dock the new view panel into the layout nor to change the window size of the new view panel via code.