[Py] BaseDraw.DrawPoints



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

    On 23/08/2012 at 14:10, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   13 
    Platform:   Windows  ;   Mac OSX  ; 
    Language(s) :

    ---------
    Hello,

    I didn't manage to use 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().
    _<_t_>__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.
      _tr>

    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

    Any clues ?
    Regards


Log in to reply