THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2012 at 00:52, xxxxxxxx wrote:
Hi all, noob question here.
I've posted this already on cgtalk, so sorry if you saw this already.
I'd need to import via a python xpresso node, data from a file. This (ascii comma separated) file would be formated as follows, [index, x, y, z, intensity], so the node would take as input the file path and outs the x,y,z as a vector and the intensity as a real.
this is where I am at the moment (the code was with the help of a colleague)
The snippet on the left reads how many lines there's on the file, feeds this in the iterator, which then one by one feeds it to the second python script which then goes one by one line of the file and grabs a index, vector (x,y,z) and intensity.
The thing is that i'm not sure this is the most efficient way of doing it. The file I need to work on is over 500000 points.
I'm afraid this might not be the most efficient way. Can anyone point me how if it is, of if there is a smarter/simpler/more efficient way of doing this, being such a simple task?
Thanks so much in advance.