darkmoon3d
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
)
)
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
)
)
