1. #1
    New Member Follow User Gallery
    Join Date
    Dec 2018
    Posts
    12

    Default On() method in ZBrush

    Is there something like On() method in ZBrush?
    For example:
    OnButtonPressed
    OnProjectStateChange
    OnTransform
    OnDeform

    That is, if the method OnButtonPressed() is defined, then each time you press any button, a certain action would be performed etc.

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

    Default

    The zscript [Sleep] command can monitor user actions to a certain extent (though only button presses and so on). But it is unreliable because it only works while that zscript is running. The moment the user uses another plugin or macro the functionality is lost.

    Apart from that there is nothing, I'm afraid.

  3. #3
    New Member Follow User Gallery
    Join Date
    Dec 2018
    Posts
    12

    Default

    Thanks)
    Is it possible for example to use Sleep inside a loop?
    I tried, but it seems the macro stops working after the first iteration in this case.
    Or maybe something like that.

    I need to make some defer macros, for example "auto select subtool under mouse".

    One more question: in what situations can "sleep again" be used? when can it be useful?

    PS: I think it makes no sense to create a new thread (if I'm wrong, correct me please).

Posting Permissions

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