1. #1
    Member User Gallery
    Join Date
    Apr 2006
    Location
    Paris, France.
    Posts
    32

    Default ZB4R4 : macro in default zscript gets executed twice ?

    It's not that big of a problem but it doesn't seem right.
    Anyone else experiencing this ?

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

    Default

    What OS are you on? Also, if you post the macro and the code you added to your defaultzscript we might be able to see what's going wrong.

  3. #3
    Member User Gallery
    Join Date
    Apr 2006
    Location
    Paris, France.
    Posts
    32

    Default

    Hi Marcus,
    seeing I had this problem I created a test macro to recreate it:

    DefaultZScript:

    [CODE]//startup
    [If,1,
    [IPress,Macro:Macros:Misc:startup]
    ]
    [pd][/CODE]
    macro:
    [CODE][IButton,???,"Press to run this macro. Macros can be aborted by pressing the esc key.",
    [IShowActions,0]
    [Note,"Blah Blah Blah",,.5]
    ][/CODE]


    Basically the text flashes twice when Zbrush starts...
    I'm on windows7 x64 by the way
    Last edited by Zobi La Mouche; 09-20-12 at 05:48 AM.

  4. #4
    Moderator User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    8,534

    Default

    Ah, ok. Not sure why that happens.

    If this is causing a problem for you then you could use a simple memory test in the startup macro:
    [CODE]
    [If,[MemGetSize,StartupMem],
    // memory block exists, do nothing
    ,//else
    [Note, "Hello World",,.5]// the stuff you want to do
    [MVarDef,StartupMem,1]//create memblock
    ]
    [/CODE]

  5. #5
    Member User Gallery
    Join Date
    Apr 2006
    Location
    Paris, France.
    Posts
    32

    Default

    Hi Marcus,
    your knowledge of zscript is very impressive so thanks again, It works great.
    I'm not sure why it's doing it either and if it's happening only on my system then that's very strange.
    anyway, moving on....

Posting Permissions

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