Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 3dhugo

Pages: [1]
1
Python and Java API / Re: filter markers by name
« on: October 20, 2014, 06:50:13 PM »
Hi Alexey,

Great that really helps. Thanks for the quick response!

2
Python and Java API / filter markers by name
« on: October 20, 2014, 06:37:03 PM »
Hi all,

I would appreciate your help. I am unsure how to access the marker object name in python.

I am using a known number of markers in a certain range on fixed rig. All markers are > 600, partially obstructed markers commonly show up with values in the 1-300 range, so i want to filter any values less than 600 as shown below:

markers = chunk.markers
numMarkers = len(markers)
print(str(numMarkers) + " markers detected") 

#limit markers to 48
if numMarkers > 48:
   #go through all markers
   for i in markers:
         
      #retrieve marker number, check if marker is within valid range (< 600)

      num = ??
      print(num)

      if num < 600:
         #remove accordingly


How can i access the int that is the marker name for use in the conditional? I wrongly began by using calling index, though this only gives me the position of a marker in the list, not any information on the marker name.

Thanks for any help you can give.



Pages: [1]