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. allenrob
    3. Posts
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by allenrob

    • RE: Data to Spline

      Hi Cairyn,

      I think I'm lost. I feel stuck. Is there way to get this done by paying somebody? I'm sorry, I know that's not the right place to list a job but python coders for C4D is extremely rare. 😕

      posted in Cinema 4D SDK
      A
      allenrob
    • Data to Spline

      Hi everybody,

      My first post here so I really hope you tolerate my mistakes if I make any.

      I'm working on a path generation tool (for Windows and macOS) that creates paths with x and y coordinates of each points. I can easily covert them to SVG (using 'polyline' as it's more convenient than 'path' for my case). As far as I know, C4D doesn't support direct SVG import; it either needs to be *.dwg or *.dxf. Instead of expecting users to import the generated file into their scenes, I'd like to write a script that would do that with one click. Here are my questions:

      • Should I do that in Python or in C++? I'm not new to programming but I'm mostly a JAVA coder. I think I can give that a try on either of those languages.
      • What should be the data structure in the generated file? For what I have now, I'm getting values as [x,y] in floating point numbers like:
      540.3475, 417.24466
      541.6318, 417.6269
      544.0376, 417.85046
      548.4767, 417.7466
      

      How can I get those values from a *.txt file to create a spline in C4D? I can change the format of the values if needed. I just need to know the workaround (or a piece of script) to do that. Any help would be much appreciated.

      posted in Cinema 4D SDK python c++
      A
      allenrob