PDA

View Full Version : help with a locator creating script?


JasonA
11-17-2010, 10:48 PM
Hi all,

I don't normally hang out in here because of my lack of programming experience, but Im in a pinch and I'm hoping someone can help me create a locator creation script.

I have a txt file (.csv) that has hundreds of points, and I need to create a locator at each of these coordinates. The formatting of the txt file is "locator#, tx, ty, tz" without the quotes. Doing this by hand will prolly give me tendinitis or something. Can someone help me make a script that will open this file, and create the locators based on these coordinates? Any help would be appreciated!

NaughtyNathan
11-17-2010, 11:43 PM
Hey Jason, it's a piece of cake and essentially the identical question has been asked twice in recent memory:

here's a good one that should help:
http://forums.cgsociety.org/showthread.php?f=7&t=900922&highlight=text+file

:nathaN

mduvekot
11-18-2010, 01:36 AM
or here: http://www.thnkr.com/wiki/index.php?title=Read_csv_data

JasonA
11-18-2010, 08:51 PM
aah right on guys thanks :) I was kinda lazy and didnt search first

:blush:

CGTalk Moderation
11-18-2010, 08:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.