update_component

compas_ghpython.utilities.update_component(ghenv, delay)[source]

Schedule an update of the Grasshopper component.

After the specified delay, the GH component will be automatically updated.

Parameters
  • ghenv (GhPython.Component.PythonEnvironment) – The current GHPython environment.

  • delay (int) – Time in milliseconds until the update is performed.

Raises

ValueError – If the delay is less than zero.