Is there more than 1 Delete object icons? Maybe I don't understand what you're asking for.
Notes and Scene View for workspace
- 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
Re: Notes and Scene View for workspace
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);"
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);"
- 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
That looks like 1 button to me, I'm guessing you mean for different layouts and stuff. Stand by...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
Re: Notes and Scene View for workspace
Nope, just all of the toolbars in Toolbar Prototypes Encapsulator
- 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
here it is.
- Attachments
-
- Modify Delete Button.RsObj
- (21.5 KiB) Downloaded 65 times
Re: Notes and Scene View for workspace
Thanks!
I would like to add these two other nodes to your Delete.xml:
YafaRay4tS
PhotoRender
Also, System.Question can hide behind trueSpace
Is it possible to add a modal Question?
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;
}
}
Is it possible to add a modal Question?
- 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
Added YafaRay4tS and PhotoRender questionstrueBlue wrote: ↑10 Aug 2022, 19:12 Thanks!
I would like to add these two other nodes to your Delete.xml:
YafaRay4tS
PhotoRender
Also, System.Question can hide behind trueSpaceCode: 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; } }
Is it possible to add a modal Question?
Question dialog from Global Function Set instead of System
- Attachments
-
- Delete.RsObj
- (10.54 KiB) Downloaded 64 times
Re: Notes and Scene View for workspace
Thanks!
I added WarningQuestion Function to your Global Function Set .
I added WarningQuestion Function to your Global Function Set .
- 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
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")) {
I'll add that as a parameter, called "urgent", to the question function
- 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
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.
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