Fixed. The problem was converting from 1 undo version to open testable version. Added a comment as reminder for conversion back to 1 undotrueBlue wrote: ↑10 Aug 2022, 14:18Thanks!clintonman wrote: ↑10 Aug 2022, 03:26 Sure, it's just one line added to the StartWebServer.
DeletePrefsPanel.jpg
Also attached is my Delete changes. It's not optimized for single undo yet.
It will ask before deleting a Vray node in the scene.
Other nodes can be added for the are you sure questioning
If the Delete preferences is added to Custom preferences then the rmb can be changed to open the panel.
Protect Special Nodes will ask "are you sure?" question, otherwise just deletes.
Delete Whole NURBS will delete the whole nurbs object, otherwise only delete what is selected.
The new Delete (Enhanced) script does not delete multiple selected objects
I did a test with the previous Delete.xml with multiple selected NURBS and it deleted all of the NURBS
Notes and Scene View for workspace
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
- Attachments
-
- Delete.RsObj
- (8.45 KiB) Downloaded 68 times
Re: Notes and Scene View for workspace
Great, thanks!
I did a test wondering if the Vray Question would work with multiple selections
It worked!
On another note, I notice you have to select Undo twice before undoing one of the Deletes
Adding one RsApp.Undo() to the bottom of the Delete script eliminates one Undo
Before After .
.
Is it possible to detect if a selection is not in the scene, like selecting anything in System?
And if so, add a Question - Yes or No like you have done with Vray?
I did a test wondering if the Vray Question would work with multiple selections
It worked!
On another note, I notice you have to select Undo twice before undoing one of the Deletes
Adding one RsApp.Undo() to the bottom of the Delete script eliminates one Undo
Before After .
.
Is it possible to detect if a selection is not in the scene, like selecting anything in System?
And if so, add a Question - Yes or No like you have done with Vray?
Re: Notes and Scene View for workspace
This eliminates the two undoes
Delete script .
After
,
Delete script .
After
,
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
You missed that line.clintonman wrote: ↑10 Aug 2022, 03:26 ...
Also attached is my Delete changes. It's not optimized for single undo yet.
...
When converted back to single undo form all the extra RsApp undos aren't needed.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
Asks if outside the scene.trueBlue wrote: ↑10 Aug 2022, 15:21 Great, thanks!
I did a test wondering if the Vray Question would work with multiple selections
It worked!
On another note, I notice you have to select Undo twice before undoing one of the Deletes
Adding one RsApp.Undo() to the bottom of the Delete script eliminates one Undo
Before
Commands Before.png
After
Commands After adding one undo.png
.
.
Is it possible to detect if a selection is not in the scene, like selecting anything in System?
And if so, add a Question - Yes or No like you have done with Vray?
RsApp.Undo not need. Not in 1 undo form yet.
- Attachments
-
- Delete.RsObj
- (9.37 KiB) Downloaded 62 times
Re: Notes and Scene View for workspace
AWESOME !!!clintonman wrote: ↑10 Aug 2022, 15:48Asks if outside the scene.trueBlue wrote: ↑10 Aug 2022, 15:21 Great, thanks!
I did a test wondering if the Vray Question would work with multiple selections
It worked!
On another note, I notice you have to select Undo twice before undoing one of the Deletes
Adding one RsApp.Undo() to the bottom of the Delete script eliminates one Undo
Before
Commands Before.png
After
Commands After adding one undo.png
.
.
Is it possible to detect if a selection is not in the scene, like selecting anything in System?
And if so, add a Question - Yes or No like you have done with Vray?
RsApp.Undo not need. Not in 1 undo form yet.
On another issue, I have noticed that the Clear history button has a bug .
Every time I select the Clear button an entry is added to Commands
Can you confirm?
Edit: I fixed this issue by adding another script to Scripts/Commands
And changed the Clear button script to:
Activity.Run("Scripts/Commands/ClearHistory")
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
Nope, all I see is a single question mark icon and blank command.
Re: Notes and Scene View for workspace
Why me and not YOU?
Nevertheless it does add an Undo entry for you
I think it is a button script bug
If I run RsApp.ClearHistory() from a jScript it works as expected so I fixed the Desktop's Clear button script
Nevertheless it does add an Undo entry for you
I think it is a button script bug
If I run RsApp.ClearHistory() from a jScript it works as expected so I fixed the Desktop's Clear button script
Edit: I fixed this issue by adding another script to Scripts/Commands
And changed the Clear button script to:
Activity.Run("Scripts/Commands/ClearHistory")
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Notes and Scene View for workspace
You should try adding it to the UUFunctionSet.trueBlue wrote: ↑10 Aug 2022, 16:48 Why me and not YOU?
Nevertheless it does add an Undo entry for you
I think it is a button script bug
If I run RsApp.ClearHistory() from a jScript it works as expected so I fixed the Desktop's Clear button scriptEdit: I fixed this issue by adding another script to Scripts/Commands
And changed the Clear button script to:
Activity.Run("Scripts/Commands/ClearHistory")
I switched computers and the tS install that I know has the latest UU plus the recent changes looks like your screenshot, with the single line of ScriptObject.RunCmd("script object package/cyclecameras")
Re: Notes and Scene View for workspace
Better idea, will do
Can you make a toolbar script for the Delete object icons?
"HelpText") = "Delete selected objects / Preferences"
"RClickCommand") = "UserInterface.OpenToolPanelViewEx2('', '','/Preferences/Custom preferences/Delete preferences',3,1,1);"
Can you make a toolbar script for the Delete object icons?
"HelpText") = "Delete selected objects / Preferences"
"RClickCommand") = "UserInterface.OpenToolPanelViewEx2('', '','/Preferences/Custom preferences/Delete preferences',3,1,1);"