Very new to scripting and trying to work out a marker file for a script that I need to pass some variables to.
I would like to use a pickbutton function to choose multiple objects, error check to insure the selections are geo and ideally update the pickbutton to show multiple selection or is there a better way?
I like having to click then have the ability to start selecting but not sure how to make this work. Then ofcourse pass them as an array to the script but what I have now is a mess and not sure how to fix this. My current marker file script is below :banghead:
global _pickOBJs = #()
try (destroydialog _GD1) catch()
rollout _RT1 “Rock Tool”
pickbutton _pickOBJ “Pick OBJ” autoDisplay:true tooltip:“Start Picking!..”
on _pickOBJs picked obj do
_PickOBJs = SelectByName() fn geo_filter obj = isKindOf obj Geometry showHidden:false
button _Go “Go”
on _Go pressed do
include @"<path to script file here"
Thanks in advance for the help!