Hello,
I am trying to monitor and save summer radiation mesh, winter radiation mesh, parameters and the shading geometry seperately. Capture view component is really handy when i save the images manually. However, when I coupled those with the fly component, in order to automitize the process and further make a brute force search, view 2 doesn’t capture any geometry. This may be due to the custom preview components that I used.
I am attaching screenshots from the related parts of the definition.
Best,
Mustafa



Hi Mustafa,
I created capturing view with the same as your screenshots, it works for me for all views.
Please find attached.
regards,
Omid.
View_capturing_OMD.rar (463 KB)
Also, you can set the different path for each view.
Hi Omid,
Thank you for your reply. I opened the files you sent. It is working for me as well. So, there must be something wrong with my definition.
Only thing that went wrong was the error message that I got for false toggle component. I don’t know why. Ghpython component is up to date, the file is not blocked and I am using 0.63 version of ladybug. The error I got is “the user object could not be created as the base type is missing”
Best,
Mustafa
Mustafa,
Probably you don’t have false start toggle component.
You can find that from this link.
Regards,
Omid.
This is ridicilous. There is no problem with any component. Screen-oriented text was blocking the view-2 that was all, that made me spend a lot of hours.
Best,
Mustafa
Hi there, I am having the same problem. The screenshots in this thread are not loading any more so i cant see if my set up is the same or not, what was the solution in the end?
Make sure the Capture View is at the front [Ctrl+F].
-A.
Thanks! ill give that a try.
That is not working for me. I did have it set up to capture once a simulation output was >0 but the custom previews appear a few seconds after that and are the last thing to appear just before fly animates the slider to another model.
I cant find anything that changes in grasshopper once they appear to use as a trigger
Is there another way to make sure it triggers after the custom previews are visible?
If you can, create a simplified version of the file and post it.
The “bring to front” worked for me. I also “Send to back” all the rest.
-A.
Thanks, I will simplify now and send it through shortly. The output will be part of a dashboard for a master project and i am on a very tight timeframe so your help is really appreciated!
Simplified model.gh (901.2 KB)
Parametric Model.3dm (1.1 MB)
I simplified it as much as possible and labelled how i have the trigger set up. I dindt want to take too much out incase the problem was no longer happening.
I am running all of the analysis except for glare when this is happening
Im wondering if ther is anything in grassphopper that recognises custom previews have been rendered on screen in rhino in order to use that as a trigger. or something that can delay the screen shot for 3-5 seconds after the simulation has finished
Sorry but i need something much simpler. The FLY is supposed to run 11K+ cases.
I suggest to delete all simulations but one [the fastest]. Even for this case make a limited number of cases [10-20].
BTW, triggering the view capture, i don’t see the trigger connected to the “_capture” input. Moreover, a toggle is and is set to False.
I understand your pressure of time, but I also can’t invest a lot of time on it right now.
-A.
Okay, Thanks for taking a look.
I tried both the false start button and my trigger. My trigger also creates unique file names which should set off the view capture after the simulation run even if the _capture is set to true
To clarify my trigger is working and taking screenshots and giving them unique names. it is just the timing that is off. the screenshots are being taken after the simulations are complete but just before the custom previews load. Are you able to run the test fly to see what you think about it? you can see in the screenshots after the first run if it is capturing the previews or not
In the meantime will work on simplifying it and see if I get anywhere.
Thanks again for your time
Just to clarify further, what seems to be happening is that we can set triggers to capture view after a simulation is completed, but this still triggers the capture before the display graph has rendered to the screen. We cannot seem to set things up to wait for the graphs to be produced and displayed before capturing the view?
I have simplified the model much further and found that even when only varying form the screen capture does not pick up the custom preview.
I have attempted the use of a data dam to delay the view capture trigger but it does not work at any of the available time delays.
I have also tested my triggers on the cube example file and they work to capture the custom preview geometry.
Also, when the full model is altered manually (including with analyses running) the screen capture works correctly. It is only when run with fly that it misses the custom preview.
Geometry only model.gh (381.3 KB)
Parametric Model.3dm (1.1 MB)
Hi @Nicholaskerr ,
Tried this last version, over-simplified a bit more , rei-inserted the Fly related components and the save image didn’t worked.
The last trial I did was to set the save image to True all time and guess what? It works fine. I didn’t play with the code to see how and why your solution for triggering the save image is not working.
Attached the last saved version of the file on my side. You need to just set the Toggle to True [I marked it].
Hope this solves your issue.
-A.
Geometry only model.gh (361.8 KB)