hi
on sweep modifier on extract shape i want to close and enter name for extracted spline.
i am able close the dialogue, how can i give new name in name field before closing
p=convertToSplineShape(Rectangle length:100 width:100)
cs=convertToSplineShape(Circle radius:15)
swp = sweep()
addModifier p swp
swp.CustomShape = 1
swp.shapes[1] = cs
delete cs
select p
DialogMonitorOPS.unRegisterNotification id:#sweepExtract
fn exShape = (
local windowHandle = DialogMonitorOPS.GetWindowHandle()
if (windowHandle != 0) then (
local title = UIAccessor.GetWindowText WindowHandle
if (title == "Extract Shape") then (
controls = windows.getChildrenHWND windowHandle
print controls[3][5] -- this is edit text
UIAccessor.PressDefaultButton()
)
)
return true
)
DialogMonitorOPS.RegisterNotification exShape id:#sweepExtract
DialogMonitorOPS.Enabled = true
$.modifiers[1].extractCustomSection()
DialogMonitorOPS.unRegisterNotification id:#sweepExtract
DialogMonitorOPS.Enabled = false
thanks
