Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    PySide

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 386 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 01/06/2013 at 07:25, xxxxxxxx wrote:

      Hi
      My googling attempts did not return any usable result. Is it possible to use PySide for UI development inside C4D? Would be nice to save some time on redoing interfaces.
      Cheers,
      Erik

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 01/06/2013 at 07:53, xxxxxxxx wrote:

        sure you can, but you will have to live with the same limitations all qt-based plugins
        have to live - they are hosted in a different window. for some packages this might 
        make sense, where the SDK does provide no or only a super clunky interface classes.

        but i do not see the a reason to do so in c4d. but technically you can use any module
        you want to use in c4ds python interpreter.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 01/06/2013 at 07:59, xxxxxxxx wrote:

          Popup window works fine.  
          Do I need to compile PySide against some special version of Qt or can I use the regular binaries?
          The reason for using PySide is that I already have a fair amount of interfaces made that communicates against a middle layer. This way using PySide I only need to write a C4D version of the layer and all will work the same way as the other applications.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 01/06/2013 at 09:07, xxxxxxxx wrote:

            Originally posted by xxxxxxxx

            Do I need to compile PySide against some special version of Qt or can I use the regular binaries?

            PySide is using QT 4.8. PySide is both OS and python version dependent. C4d is using python 
            version 2.6.x. The c4d python interpreter can be found at '\c4dfolder\resource\modules\python\res'
            in the 32 bit and 64 bit framework folder. C4d on its own has no connection to Qt or PySide at all.

            There are some examples on the PySide homepage which are click ready to go, i have only fooled
            around with PySide until now, so I can you tell not much more.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post