I took over this script made by GavinCrump (whom I thank very much). I would like to add an option (in the red area of the image below) which will allow to select all the revisions in order to delete them at once (and not by selecting them one by one).
is it possible from this script? If yes, how? I thank you in advance
You can add a simple boolean input. If the input is set to True, delete all revisions, then you can set your graph to get all revisions. If the input is set to False, delete selected revision only, then you can get just the selected revision.
You already have all the Revisions for the dropdown selection. Your UI window lets you select which one you’re after and then returns it in the output of the UI node. So now you have a list of All Revisions and the Selected Revision. You can now just use a simple If statement to return the original list of All Revisions or the currently Selected Revision based on the checkbox value. Then you just continue on with your graph using whichever selection was returned.
Thank you! I combined your script by modifying mine. Another question, how can I put the date at the beginning of the revisions? As well as the author? Thank you
edit:When you pass your mouse, the designer of the package has taken care to inform the incoming and outgoing (you must read these messages, they are very instructive )
you also have a help provided on the node with right mouse button