MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

Cinema 4D import multiple ascii files in splines and more

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Gregoire Dupond
Cinema 4D import multiple ascii files in splines and more
on Dec 8, 2015 at 10:50:47 am

Hello,

I have a text file will all the buildings of one small town. The points that make the polygon, altitude, and height of buildings. 2300 in total.
I scripted outside C4D to output 2300 asc files named 1.asc---2300.asc of this format:

Point    X    Y    Z    H
1    -84.830000000074    241.57    -200.230000000447    2.5
2    -85.120000000112    241.57    -196.790000000037    2.5
3    -77.879999999888    241.57    -196.169999999925    2.5
4    -77.649999999907    241.57    -198.879999999888    2.5
5    -80.649999999907    241.57    -199.139999999665    2.5
6    -80.590000000084    241.57    -199.860000000335    2.5
7    -84.830000000074    241.57    -200.230000000447    2.5

H is the building height

This file format is just good to import points for a spline manually in C4D.

What I would like to do is automate the process for the 2300 buildings:

For each of the 2300 files:
-create a closed linear spline no intermediate points with name name of asc file
-import the asc file points in the spline
-create a n Extrude Nurbs to put the spline in and setup Y movement to H

I use C4D 12.048 (yes, old version)

Thanks everyone who can help.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]