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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Python to Serial

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 474 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 13/08/2012 at 06:51, xxxxxxxx wrote:

      Hello everybody.

      Scripting is still pretty out of my comfort zone and I would appreciate it if some of you clever folk could assist me with a challenge I'm currently struggling with:

      I'm trying to get the RGB values of a mograph clone out of Cinema and on to an Arduino by serial. The xpresso setup does all of the calculation work on the cinema side which is fine, as is getting the data into a python node. My problem begins when I start using code from the pyserial library. As far as I can tell I'm not defining my outputs properly and I'm struggling to find info on the web for this area specifically.

      http://payload49.cargocollective.com/1/7/232284/3297585/pyserial issues.jpg

      I guess my question is:

      Does anyone have any example code they can share regarding getting data coming into a python node and sending it somewhere by serial?

      or

      Can anyone point out where my mistakes in defining my outputs may lie?

      Many thanks in advance.

      Adam

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 13/08/2012 at 09:50, xxxxxxxx wrote:

        Hello Adam,

        your picture is too small.

        -Nik

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 13/08/2012 at 10:06, xxxxxxxx wrote:

          Sorry, try these:

          http://payload49.cargocollective.com/1/7/232284/3297585/pyserial issues_01.jpg

          http://payload49.cargocollective.com/1/7/232284/3297585/pyserial issues_02.jpg

          Thanks

          Adam

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 13/08/2012 at 10:51, xxxxxxxx wrote:

            Try indenting your code so it fits with the indentation of the main() block. The code that is not indented will be executed only once, when the script is loaded into memory to extract the main() function for future calls.

            -Nik

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 13/08/2012 at 11:00, xxxxxxxx wrote:

              So simple! Thank you!!

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