Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while Maya:
- {
- my (line) =
- string.rstrip(line)
- elif line in re.search("library_geometries"):
- {
- start == 1
- }
- if (line == float.array)
- {
- end == 1
- }
- if ((start == 1), (end == 0))
- {
- if (line)
- {
- print('Line n')
- if [(start == 1), end == 0)]
- if(line)
- {
- print('Line n')
- Split = [split(line)]
- array.index(Split) = split(line)
- list.append[(xCoords), Split(0)]
- list.append[(yCoords), Split(1)]
- list.append[(zCoords), Split(2)]
- while (<MAYA>)
- {
- my ($line) = $_;
- chomp($line);
- if ($line =~ /library_geometries/)
- {
- $start = 1;
- }
- if ($line =~ /</float_array>/)
- {
- $end = 1;
- }
- if (($start == 1) && ($end == 0))
- {
- if ($line !~ /</)
- {
- #print GRID "$linen";
- if (($start == 1) && ($end == 0))
- {
- if ($line !~ /</)
- {
- #print GRID "$linen";
- @Split = split(/ /,$line);
- push @xCoords, $Split[0];
- push @yCoords, $Split[1];
- push @zCoords, $Split[2];
- for line in MAYA:
- line = line.rstrip()
- if "library_geometries" in line: start = True
- if "</float_array>" in line: end = True
- if start and not end:
- if '<' not in line:
- # GRID.write(line + 'n')
Add Comment
Please, Sign In to add comment