1. #1
    Senior Member User Gallery
    Join Date
    May 2007
    Location
    Raleigh NC
    Posts
    476

    Default Setting a Varible in an interface path?

    So I had an idea for a script but quickly came to a roadblock. This is just an example.

    [CODE][VarDef, brush,[StrAsk, "Type text in here","Enter Brush Name"]]

    [IButton,#brush,"Test",
    [IPress,Brush:#brush]
    ][/CODE]

    If I type any brush name into the prompt it only errors. Can you not set a variable in a button path? I feel really dumb.

  2. #2
    Moderator User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    8,582

    Default

    You can't use a variable directly after IPress like that but it should work OK if you use StrMerge:



    [IPress,[StrMerge,"Brush:",#brush]]

  3. #3
    Senior Member User Gallery
    Join Date
    May 2007
    Location
    Raleigh NC
    Posts
    476

    Default

    Ooo neat. Thanks for the confirmation and tip!

Posting Permissions

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