Notifications
Clear all
[Closed] select filter
Sep 18, 2009 11: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
)
)
1 Reply
Sep 18, 2009 11:26 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).