Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. nophoto
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 2
    • Controversial 0
    • Groups 0

    nophoto

    @nophoto

    3
    Reputation
    48
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    nophoto Unfollow Follow

    Best posts made by nophoto

    • RE: How to refresh a deleted object link in Python?

      @orestiskon

      In XPresso you should pay attention to the order of the nodes in the X-Manager. The nodes should be arranged in the order in which they where calcultated.

      In your scene it looks looks like this:
      Bildschirmfoto 2020-08-25 um 22.14.25.jpg

      If the python nodes is moved to the end of the list...
      Bildschirmfoto 2020-08-25 um 22.14.40.jpg
      ...everything works as expected.

      Cheers
      Peter

      posted in Cinema 4D SDK
      N
      nophoto
    • RE: Get all neighboring points (including not connected by edge). Fast.

      Hi,

      I would use a BaseSelect to 'collect' all points of the neighboring polys. Deselect the first point and get all points without duplicates using BaseSelect.GetAll().

      By
      Peter

      posted in Cinema 4D SDK
      N
      nophoto

    Latest posts made by nophoto

    • RE: How to refresh a deleted object link in Python?

      @orestiskon

      In XPresso you should pay attention to the order of the nodes in the X-Manager. The nodes should be arranged in the order in which they where calcultated.

      In your scene it looks looks like this:
      Bildschirmfoto 2020-08-25 um 22.14.25.jpg

      If the python nodes is moved to the end of the list...
      Bildschirmfoto 2020-08-25 um 22.14.40.jpg
      ...everything works as expected.

      Cheers
      Peter

      posted in Cinema 4D SDK
      N
      nophoto
    • RE: Get all neighboring points (including not connected by edge). Fast.

      Hi,

      I would use a BaseSelect to 'collect' all points of the neighboring polys. Deselect the first point and get all points without duplicates using BaseSelect.GetAll().

      By
      Peter

      posted in Cinema 4D SDK
      N
      nophoto
    • RE: Rotating Spline Points

      You don't have to compensate the position of the tangent, if you use

      c4d.Matrix.MulV(self, v)
      

      to transform the direction vector.

      import c4d
      from c4d import gui
      
      def main():
          pointCount = op.GetPointCount()
          mat = c4d.utils.MatrixRotX(c4d.utils.DegToRad(45.0))
          for i in range(0,pointCount):
              
              point = op.GetPoint(i) #Point Vector
              point = point * mat
                     
              tangent = op.GetTangent(i)
              vl = tangent['vl'] #Left Tangent Vector
              vr = tangent['vr'] #Right Tangent Vector
              
              vl = mat.MulV(vl)
              vr = mat.MulV(vr)
           
              op.SetPoint(i,point)
              op.SetTangent(i, vl, vr)        
              
          op.Message (c4d.MSG_UPDATE)
          c4d.EventAdd()
      
      if __name__=='__main__':
          main()
      
      posted in Cinema 4D SDK
      N
      nophoto