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

    Vectors not equal

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 261 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 16/12/2013 at 04:03, xxxxxxxx wrote:

      I have a color which I convert via "colorsys.rgb_to_hsv" to hsv.
      Then there is an allgorythm changing hsv-value, afterwards converting it back to a rgb vector.

      Now I compare the original rgb vector with the new rgb one, if they are the same.
      And although a print of those two vectors shows they have the same values, an if statement doesn´t agree with that and says they are not 😉

      What is going on here?

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

        On 16/12/2013 at 04:22, xxxxxxxx wrote:

        Ok, posting was needed to find out why 😉
        A vector print shows only the first three decimals...
        Now I must find a fixing solution...

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