Navigation

    • Register
    • Login
    • Search
    1. Home
    2. allenrob
    A

    allenrob

    @allenrob

    0
    Reputation
    2
    Posts
    13
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    allenrob Follow

    Best posts made by allenrob

    This user does not have any upvoted posts yet.

    Latest 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 •
    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 •