Skip to content
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

Add function to export script and current state ready for conversion to screen grab #306

Closed
bentoogood opened this issue May 17, 2013 · 3 comments
Assignees
Labels
docs New user documentation should be created or existing documentation needs to be updated
Milestone

Comments

@bentoogood
Copy link
Contributor

To simplify the process of generating screen grabs it would be handy to be able to reproduce a UI state including the panel layout, viewer zoom and pan, node selection, scene item selection.
Documentation authors should be able to setup a session showing exactly the contents desired and then export that to some file for later loading by the screen grab image generator function.

@andrewkaufman
Copy link
Contributor

Not sure if it's possible, but It would be nice is such a feature could also keep popup menus open (which typically disappear when you click on anything else.

@bentoogood
Copy link
Contributor Author

Reference - snippet to get the current layout and stash it as a string. Then eval that string to restore the layout.

scriptWindow = GafferUI.ScriptWindow.acquire( script )
layoutStr = repr( scriptWindow.getLayout() )
#script is called scriptNode in layout string
scriptNode = script
layout = eval( layoutStr  )

scriptWindow.setLayout( layout )

@bentoogood
Copy link
Contributor Author

Addressed as a user script to export all relevant data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs New user documentation should be created or existing documentation needs to be updated
Projects
None yet
Development

No branches or pull requests

3 participants