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

    Draw Points in View

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 384 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 18/08/2012 at 14:45, xxxxxxxx wrote:

      Hi,

      I would like to know if someone already used the function BaseDraw.DrawPoints :

      BaseDraw.DrawPoints( vp[, vc][, colcnt=0][, vn] )

      Draws an array of shaded points with individual colors. The shading is determined by SetLightList().
      Note
       
      The coordinates must be in the space defined by SetMatrix_Screen(), SetMatrix_Camera() or SetMatrix_Matrix().
      Parameters:|

      • vp  ( any ) – An iteratable object with Vector as elements for the point coordinates.
      • vc  ( any ) – An iteratable object with floats as elements for the point color.
      • colcnt  ( int ) – The number of color elements, for example 3 for RGB.
      • vn  ( any ) – An iteratable object with Vector as elements for the normals of the shaded points.

      ---|---
      _<_t_>_

      I did :

      > vp = []
      >
      > vp.append(c4d.Vector(0, 0, 0))
      >
      > vp.append(c4d.Vector(10, 10, 10))
      >
      > vp.append(c4d.Vector(20, 20, 20))
      >
      > vp.append(c4d.Vector(30, 30, 30))
      >
      >
      >
      >
      > bd.DrawPoints(vp)

      And always get :

      > value error: invalid object length

      If someone can help,
      Regards

      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 23/08/2012 at 01:57, xxxxxxxx wrote:

        Hi,

        Just would like to know if it's API related or I misused the function ?
        Nobody has a clue ?

        Regards,
        Francis

        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 23/08/2012 at 02:40, xxxxxxxx wrote:

          I also get the same error, I can't tell you what the issue is. It seems like a bug to me.

          I tested the following code in the DrawHelper plugin:

          import  c4d  
          from    c4d     import Vector  
            
          def main() :  
            bd.SetMatrix_Matrix(op, bh.GetMg())  
            bd.SetLightList(c4d.BDRAW_SETLIGHTLIST_SCENELIGHTS)  
            bd.SetTransparency(1)  
            points = (  
                Vector(100, 0, 0),  
                Vector(0, 100, 0),  
                Vector(0, 0, 100),  
            )  
            colors = (0.1, 0.5, 0.2)  
            bd.DrawPoints(points, colors)  
            
          main()
          

          -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 23/08/2012 at 14:07, xxxxxxxx wrote:

            Hi Niklas,

            Thank you for your help, I will submit a bug report.

            Regards,
            Francis

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