Thread
:
Splitting a string into 3 ints, or getting x,y,z position
View Single Post
#
2
08-29-2013, 03:20 PM
farshizzo
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
Here's a code sample that shows how to parse the string "10,10,10" into a list of floating point numbers:
Code:
s = "10,10,10" pos = [ float(x) for x in s.split(',') ] print pos
farshizzo
View Public Profile
Find all posts by farshizzo