Question: StrAsk command - major delay when executed
I'm using a StrAsk command to get the user to input some info. The problem is that zBrush seems to hang when the StrAsk command is executed. The dialog box won't open until I click outside zBrush and then click back inside zBrush. It seems to refresh zBrush or something. The same thing happens after I enter something in the dialog box. I can't see what I've typed in the box until I click outside zBrush and then click back inside zBrush.
//Remind user to give subtools unique names
[If,[MessageOKCancel,"REMINDER: Do your subtools have unique names?"] == 1,
//Ask user to input desired Character Height
[VarSet,charHeight,[StrAsk,"enter value here", "Character Height (mm)"]]
,
[Exit]
]//end if
[If,[MessageOKCancel,[StrMerge,"Character Height is ",charHeight," mm. Is this correct?"]] == 1,
//still working on this sectiton ... currently does nothing
,
//ask to enter character height again
[VarSet,charHeight,[StrAsk,"", "Character Height (mm)"]]
]//end if
I think the [IFreeze] is causing the problem; not sure why but I think it's best to avoid using it until your code's working and then use only when there's stuff you really don't want the user to see.