Thank you @seghierkhaled. That’s exactly what I needed.
The only thing that isn’t spectacular there is now you need to keep a timer on all the time.
i use enable/disable object for the timer
timer2.gh (6.1 KB)
The script was added to this thread see:
You could simplify things by also scripting the GHPython component to update itself (i.e. instead of using a timer and plugins). This function should do it:
import Grasshopper as gh def updateComponent(interval): """ Updates this component, similar to using a grasshopper timer """ # Define callback action def callBack(e): ghenv.Component.ExpireSolution(False) # Get grasshopper document ghDoc = ghenv.Component.OnPingDocument() # Schedule this component to expire at interval ghDoc.ScheduleSolution(interval,gh.Kernel.GH_Document.GH_ScheduleDelegate(callBack))
I see that in other thread but i have 0 knowledge in scripting with grasshopper
I wanted him to search the forum a little bit
That isn’t necessary, the code I posted above should work in the “normal” GHPython scripting component.