Notifications
Clear all
[Closed] How to manipulate with smoothing group buttons of EditableMesh via UIAccessor
Mar 03, 2011 7:31 pm
[b][b]I have Editable Mesh object with million of faces and the setFaceSmoothGroup() method through those faces costs too much time.
So, i need to check one of 1-32 smoothing group buttons via script – that’s my problem. I found ZeBoxx2’s SDK-based instructions regarding UIAccessor with spinners and checkboxes, but it doesn’t work with theese checkbuttons like the same way. So, below my code at current step and i don’t know how to check any button, for example 29 (val=29):
[/b][/b]
parent_hwnd = for c in windows.getChildrenHWND #max where c[4] == "ModifyTask" do exit with c[1]
Needbut1=0; Needbut2=0; val=29
wpar=windows.getChildrenHWND parent_hwnd
c=0;
while (Needbut1==0 or Needbut2==0) and c<wpar.count do (
c+=1
format "% %
" c (wpar[c] as string)
if wpar[c].count==5 and wpar[c][5]=="Select ID" then Needbut2=wpar[c+val][1]
if wpar[c].count==5 and wpar[c][5]=="Clear All" then Needbut1=wpar[c][1]
)
UIAccessor.PressButton Needbut1
Any help would be very appreciate.