1. #1
    Member Follow User Gallery
    Join Date
    Mar 2012
    Location
    Dallas, TX
    Posts
    30

    Default 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.

    Anyone know why this is happening?

    [CODE]
    //Create button[IButton,"test","test",
    [IFreeze,
    [IShowActions,0]


    //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

    ]//end freeze
    [IShowActions,-1]
    ]//end button
    [/CODE]
    Last edited by ijacobs; 02-12-13 at 10:38 AM.

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •