XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : select filter

09-18-2009, 10:26 PM
Trying to find way in which pickbutton can be filtered to select points or spheres. Have tried this and doesnt seem to work.

fn select_filter o =
ClassOf o == Point or Sphere

Have also tried breaking two select filter functions. One for Piont and another for sphere and then having a radio button to toggle between selecting either one or other. Doesn't seem to work either. Any ideas on this one?

on pickPoint_radio changed state do

if state == 1 then
PointTracking.pickPoint_1.filter = point_filter
PointTracking.pickPoint_2.filter = point_filter
PointTracking.pickPoint_3.filter = point_filter


if state == 2 then
PointTracking.pickPoint_1.filter = sphere_filter
PointTracking.pickPoint_2.filter = sphere_filter
PointTracking.pickPoint_3.filter = sphere_filter



09-18-2009, 11:38 PM
pickbutton is used for picking a scene node. it doesn't support multiple picking...

for picking points use pickPoint function (see MXS help for details).

CGTalk Moderation
09-18-2009, 11:38 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.