1. #1

    Default DefaultZcript recall when H key pressed

    hi there,

    Everything is in the Title.
    The DefaultZcript got called again (first time for startup as expected) when I toggle the Zscript:Hide Zcript button (e.g "H").

    Any solution to avoid this issue?

    here is the code

    [CODE][RoutineDef, setup,

    [IShowActions,0]
    [IConfig,4.5]
    [IPress,Material:BasicMaterial]
    [ISet,Draw:Z Intensity,66]
    [note, "setup intialized successfully",,.5]
    ]


    [If,[MemGetSize,StartupMem],
    [RoutineCall, setup] ,
    [MVarDef,StartupMem,1]
    ]


    [pd][/CODE]


    [EDIT] Actually the method is called everytime the UI changes.
    cheers

    Bruce

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

    Default

    As it stands your code will run everytime. Change it so that it only runs when the memblock doesn't exist:
    [CODE]
    [If,[MemGetSize,StartupMem],
    //do nothing
    ,//else no memblock
    [RoutineCall, setup]
    [MVarDef,StartupMem,1]
    ][/CODE]

  3. #3

    Default

    Thank you, Marcus!

Posting Permissions

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