Notes and Scene View for workspace

User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Notes and Scene View for workspace

Post by clintonman »

trueBlue wrote: 10 Aug 2022, 14:18
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.
Thanks!
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
Fixed. The problem was converting from 1 undo version to open testable version. Added a comment as reminder for conversion back to 1 undo
Attachments
Delete.RsObj
(8.45 KiB) Downloaded 67 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5213
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

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
Commands Before.png (8.57 KiB) Viewed 919 times
After
Commands After adding one undo.png
Commands After adding one undo.png (7.04 KiB) Viewed 919 times
.
.
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?
User avatar
trueBlue
Captain
Posts: 5213
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

This eliminates the two undoes
Delete script
Delete script.png
Delete script.png (6.68 KiB) Viewed 914 times
.
After
,
After adding two RsApp.Undo().png
After adding two RsApp.Undo().png (5.49 KiB) Viewed 914 times
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Notes and Scene View for workspace

Post by clintonman »

clintonman wrote: 10 Aug 2022, 03:26 ...
Also attached is my Delete changes. It's not optimized for single undo yet.
...
You missed that line.
When converted back to single undo form all the extra RsApp undos aren't needed.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Notes and Scene View for workspace

Post by clintonman »

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?
Asks if outside the scene.
RsApp.Undo not need. Not in 1 undo form yet.
Attachments
Delete.RsObj
(9.37 KiB) Downloaded 61 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5213
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

clintonman wrote: 10 Aug 2022, 15:48
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?
Asks if outside the scene.
RsApp.Undo not need. Not in 1 undo form yet.
AWESOME !!! :bananathumb:

On another issue, I have noticed that the Clear history button has a bug
Desktop Clear History BUG.png
.
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")
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Notes and Scene View for workspace

Post by clintonman »

Nope, all I see is a single question mark icon and blank command.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5213
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

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
Edit: I fixed this issue by adding another script to Scripts/Commands
And changed the Clear button script to:
Activity.Run("Scripts/Commands/ClearHistory")
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Notes and Scene View for workspace

Post by clintonman »

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 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")
You should try adding it to the UUFunctionSet.
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")
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5213
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Notes and Scene View for workspace

Post by trueBlue »

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);"
Post Reply