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.