<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need to create an window for camera view]]></title><description><![CDATA[<p dir="auto"><em>On 16/08/2018 at 04:20, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">HI team, I need to create a small window to see the preview of the camera. I know that cinema4d has the option to see the view of the camera, but I need to create a small window that displays the view of the camera at 720x1280.</p>
]]></description><link>http://developers.maxon.net/forum//topic/10917/14372_need-to-create-an-window-for-camera-view</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 10:45:29 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/10917.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Sep 2018 10:56:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need to create an window for camera view on Sat, 01 Sep 2018 10:56:51 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 24/08/2018 at 05:33, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">my code snippet in the last post actually does it already. And the Python API is (with very few exceptions) exactly the same as the C++ API. So you should be able to use my example from above.</p>
]]></description><link>http://developers.maxon.net/forum//post/55449</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55449</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to Need to create an window for camera view on Sat, 01 Sep 2018 10:56:48 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 20/08/2018 at 02:23, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Thanks for your valuable comment I am using C++ as the development language. So can you specify me any sample code or example project that clarifies the way to create camera preview window?</p>
]]></description><link>http://developers.maxon.net/forum//post/55448</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55448</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:56:48 GMT</pubDate></item><item><title><![CDATA[Reply to Need to create an window for camera view on Sat, 01 Sep 2018 10:56:45 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 17/08/2018 at 08:51, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">Via code you could do something like this (you didn't specify a language, I'll be using Python in Script Manager here) :</p>
<pre><code>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/py/2023_2/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()
</code></pre>
<p dir="auto">The <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseView/BaseDraw/index.html?highlight=basedraw" target="_blank" rel="noopener noreferrer nofollow ugc">BaseDraw</a> offers quite a few options via <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/index.html?highlight=setparameter#C4DAtom.SetParameter" target="_blank" rel="noopener noreferrer nofollow ugc">SetParameter()</a>. The IDs are unfortunately only listed in the C++ docs: <a href="https://developers.maxon.net/docs/cpp/2023_2/dbasedraw_8h.html" target="_blank" rel="noopener noreferrer nofollow ugc">dbasedraw.h</a></p>
<p dir="auto">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.</p>
]]></description><link>http://developers.maxon.net/forum//post/55447</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55447</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:56:45 GMT</pubDate></item></channel></rss>