-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background Preview Waiting for 1.4 #12
Comments
It may be worth looking into writing our own capture as we initially discussed because of the delay and we are still going to run into quality issue (discussed here) with the out-of-the-box capture tools on large definitions. |
@alfarok i am very interested in the functionality of being able to capture the image of the background preview geometry image. Was very excited to see this functionality in 1.3 but alas wasn't to be. |
@schaggar16 There are 2 options if you want to capture the background preview before the 1.4.0 release. If you have to use a stable build such as 1.3.0 you would have to write your own capture function. Ian has already written this so you could just reference the existing logic and write a version that works in something like a zero touch/custom UI node. The other option would be to use a a daily build of dynamo and un-comment the OnRequestSave3DImage method here (but be aware the node isn't tested against new daily build implementations which may lead to unexpected crashes). I have looked into the first option and while it is definitely possible I am not sure if it is worth putting something together that is inevitably going to be replaced in less than 6 months. That being said I think we are going to run into image quality issues on really large graphs so writing a new screen capture that uses some type of bitmap processing to stitch images together would be beneficial. I have't had the chance to sit down and dig into that yet but am hoping to soon. Let me know if you have any other questions on the subject, but I hope this helps. |
@alfarok thank you for the reply. While i do agree that the custom node would be abortive work, this is still a very useful function that i know i can put to use straight away. I do like the idea of having a node which can then be used to drive the further development - i guess just need a starting point. Would you be able post a link to Ian's work on this please? |
@schaggar16 no problem, the link in the first post points to the pull request where you can look through the modified files. Most of them are UI related but you just need the method that actually captures the geometry. I think the most challenging part is going to be making sure the canvas for the bitmap capture is set exclusively as the background preview to ensure you are only copying that single window. I am guessing the background preview is passed as a parameter somewhere in the method to accomplish this. It may be a bit challenging for a first custom node project but I would check out this wiki (Zero Touch Plugin Development) as a starting point |
Background preview available in Dynamo Core v2.0. This feature has been implemented into the node in #16 |
Everything is in place to capture the background preview geometry image, but it was not added to Dynamo version 1.3.0 as expected so we have to wait for 1.4.0. In the meantime this functionality will work on dailybuilds (other issues could occur down the line though which doesn't make this a good option).
See this thread
The text was updated successfully, but these errors were encountered: