Notes and Scene View for workspace

User avatar
clintonman
Captain
Posts: 5429
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, 17:32 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);"
Is there more than 1 Delete object icons? Maybe I don't understand what you're asking for.
Clinton Reese

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

Re: Notes and Scene View for workspace

Post by trueBlue »

Yes, there is several toolbars with the Delete object icons
I was hoping you could make a script like you did for the visibility icons for the Delete object icons
Change two attributes:
"HelpText") = "Delete selected objects / Preferences"
"RClickCommand") = "UserInterface.OpenToolPanelViewEx2('', '','/Preferences/Custom preferences/Delete preferences',3,1,1);"
Toolbar button.png
Toolbar button.png (19.78 KiB) Viewed 975 times
Delete icons.png
User avatar
clintonman
Captain
Posts: 5429
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, 18:13 Yes, there is several toolbars with the Delete object icons
I was hoping you could make a script like you did for the visibility icons for the Delete object icons
Change two attributes:
"HelpText") = "Delete selected objects / Preferences"
"RClickCommand") = "UserInterface.OpenToolPanelViewEx2('', '','/Preferences/Custom preferences/Delete preferences',3,1,1);"
Toolbar button.png
Delete icons.png
That looks like 1 button to me, I'm guessing you mean for different layouts and stuff. Stand by...
Clinton Reese

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

Re: Notes and Scene View for workspace

Post by trueBlue »

Nope, just all of the toolbars in Toolbar Prototypes Encapsulator
User avatar
clintonman
Captain
Posts: 5429
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 »

here it is.
Attachments
Modify Delete Button.RsObj
(21.5 KiB) Downloaded 65 times
Clinton Reese

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

Re: Notes and Scene View for workspace

Post by trueBlue »

Thanks!
I would like to add these two other nodes to your Delete.xml:
YafaRay4tS
PhotoRender

Code: Select all

		if(ProtectSpecialNodes == true) {
			if(selectionArray[i] == Space.CurrentScene() + "/Vray") {
				if(!System.Question("The Vray node is selected. Are you sure you want to delete it?")) {
					continue;
				}
			}
Also, System.Question can hide behind trueSpace
Is it possible to add a modal Question?
User avatar
clintonman
Captain
Posts: 5429
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, 19:12 Thanks!
I would like to add these two other nodes to your Delete.xml:
YafaRay4tS
PhotoRender

Code: Select all

		if(ProtectSpecialNodes == true) {
			if(selectionArray[i] == Space.CurrentScene() + "/Vray") {
				if(!System.Question("The Vray node is selected. Are you sure you want to delete it?")) {
					continue;
				}
			}
Also, System.Question can hide behind trueSpace
Is it possible to add a modal Question?
Added YafaRay4tS and PhotoRender questions
Question dialog from Global Function Set instead of System
Attachments
Delete.RsObj
(10.54 KiB) Downloaded 64 times
Clinton Reese

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

Re: Notes and Scene View for workspace

Post by trueBlue »

Thanks!
I added WarningQuestion Function to your Global Function Set
Warning Question.png
Warning Question.png (16.78 KiB) Viewed 972 times
.
System object.png
System object.png (14.22 KiB) Viewed 970 times
User avatar
clintonman
Captain
Posts: 5429
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, 20:18 Thanks!
I added WarningQuestion Function to your Global Function Set
Warning Question.png
.
System object.png
It's not needed. Add a second argument to change the title

Code: Select all

if(!GlobalFS.Question("The Vray node is selected. Are you sure you want to delete it?","Warning")) {
Edit: ok I see you changed the icon
I'll add that as a parameter, called "urgent", to the question function
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
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 »

Here's the new format

Question(strText, strTitle, nSecondsToWait, urgent)

GlobalFS.Question("The Vray node is selected. Are you sure you want to delete it?", "Warning!", -1, true)

The nSecondsToWait will automatically answer NO after the time has passed, -1 means no timeout.
Attachments
Global Function Set.RsObj
(66.16 KiB) Downloaded 65 times
Clinton Reese

http://clintons3d.com
Post Reply