YafaRay for trueSpace 2019
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
I uploaded all the latest to the Unofficial Update thread. Only notable change from earlier is that YafaRay4tS will render plain d3d shaders as YafaRay Glossy shaders instead of Shiny diffuse shaders. The Glossy is closer to how the D3D materials work.
For transparency, glow, mirror effects etc., require the second step of converting to yafaray materials.
For transparency, glow, mirror effects etc., require the second step of converting to yafaray materials.
Re: YafaRay for trueSpace 2019
Been testing this a bunch today.
The Question Yes or No is problematic and kind of SCARY!
Made some changes for your approval:
Changed the Question to an Alert. Added the bottom sentence to the create python file Alert. Changed the About version to 9.7
Added:
Delete Vray and PhotoRenderer to all of the scripts in the YafaryScripts and changed version to 7.
Open Python Script Remove Python Script
The Question Yes or No is problematic and kind of SCARY!
Made some changes for your approval:
Changed the Question to an Alert. Added the bottom sentence to the create python file Alert. Changed the About version to 9.7
Added:
Delete Vray and PhotoRenderer to all of the scripts in the YafaryScripts and changed version to 7.
Open Python Script Remove Python Script
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
I don't remember what the scary "Yes No" question is, so also don't know why it would be a problem. If the answer is always yes, do we lose the "no" option?trueBlue wrote: ↑01 Oct 2019, 21:42 Been testing this a bunch today.
The Question Yes or No is problematic and kind of SCARY!
Made some changes for your approval:
Changed the Question to an Alert.
Alert1.PNG
Added the bottom sentence to the create python file Alert.
Alert2.PNG
Changed the About version to 9.7
Added:
Delete Vray and PhotoRenderer to all of the scripts in the YafaryScripts.
YafarayScripts.RsObj
Open Python Script
Open Python Script.png
Remove Python Script
Remove Python Script.png
Why delete Vray and PhotoRenderer? Is it causing a problem?
Re: YafaRay for trueSpace 2019
The problem with using trueSpace's Question IS, it hides behind the trueSpace interface.
User thinks trueSpace and or YafaRaf4tS stopped working.
There is another one too in the RenderAnim2.RsObj:
Purpose of deleting the Vray and PhotoRenderer nodes is to save space when user saves their YafaRay4tS scene.
User thinks trueSpace and or YafaRaf4tS stopped working.
There is another one too in the RenderAnim2.RsObj:
Code: Select all
if (bBatchRender && !Yaf_DeleteTempFiles) {
if(!System.Question(numFrames + " xml files will be created. Continue?")) {
params.ConValue("abort") = 1;
return;
}
}
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
What was the scary yes no asking?
Re: YafaRay for trueSpace 2019
Something about trueSpace being unstable!
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
Found a solution to the hidden question dialog. This will sit on top of all open windows. Only way to make it only sit on top of truespace is via c++ rsx plugin. Other options are found here: https://docs.microsoft.com/en-us/window ... messagebox
Code: Select all
// Execute
// Called to execute the command
function Execute(params)
{
//open output console/log view to see result
//ask question, wait 3 seconds for answer, no answer is same as No
// -1 for infinite wait - default behavior
if(Question("Will you answer my question?", 3, "Question"))
System.Trace("yes");
else
System.Trace("no");
}
// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox
function Question(strText, nSecondsToWait, strTitle)
{
// values are hexadecimal
var MB_YESNO = 4;
var MB_SYSTEMMODAL = 4096;//1000L force on top
var MB_ICONQUESTION = 32;//20L question mark symbol
var nType = MB_YESNO+MB_SYSTEMMODAL+MB_ICONQUESTION;
var IDYES = 6;
var IDNO = 7;
var shell = new ActiveXObject("WScript.shell");
var button = shell.Popup (strText, nSecondsToWait, strTitle, nType);
if(button == IDYES) return true;
return false;
}
- Attachments
-
- popup box tests 2.RsObj
- (5.87 KiB) Downloaded 137 times
Re: YafaRay for trueSpace 2019
Interesting!
Drag and Drop into trueSpace does not work with this script.
I'll leave it up to you on what to do.
For me the trueSpace Question is unreliable! A show stopper!
The Alert is reliable!
My suggestion by using an Alert is more about giving information, reliable and seems to be the easiest solution.
Other possibility is to make a floating panel with Yes, No, and or Cancel buttons.
On another note, I see what you mean by the LMB and RMB scripts for the YafaRay4tS Settings toolbar icon commands being destructive. By all means please change those scripts as you see necessary.
Also the Abort button stumped me today when working on an animation. I had earlier (few days ago Aborted an animation)
the button's text read "Aborting..." Finally figured it out by selecting it. Shouldn't this be a normal push button?
And again, I do not understand your use of the built in Protect Workspace with YafaRay4tS except that you are providing protection while in use. The missing part for me is the initial Backup being enabled. Hence the need to use the Desktop/Protect Workspace too! Is it possible to call the Desktop/Protect Workspace script and run the Backup script?
Here is a floating Question panel. Is set to Auto Popup, but you can change that with the included script inside.
Drag and Drop into trueSpace does not work with this script.
I'll leave it up to you on what to do.
For me the trueSpace Question is unreliable! A show stopper!
The Alert is reliable!
My suggestion by using an Alert is more about giving information, reliable and seems to be the easiest solution.
Other possibility is to make a floating panel with Yes, No, and or Cancel buttons.
On another note, I see what you mean by the LMB and RMB scripts for the YafaRay4tS Settings toolbar icon commands being destructive. By all means please change those scripts as you see necessary.
Also the Abort button stumped me today when working on an animation. I had earlier (few days ago Aborted an animation)
the button's text read "Aborting..." Finally figured it out by selecting it. Shouldn't this be a normal push button?
And again, I do not understand your use of the built in Protect Workspace with YafaRay4tS except that you are providing protection while in use. The missing part for me is the initial Backup being enabled. Hence the need to use the Desktop/Protect Workspace too! Is it possible to call the Desktop/Protect Workspace script and run the Backup script?
Here is a floating Question panel. Is set to Auto Popup, but you can change that with the included script inside.
- Attachments
-
- Question.RsObj
- (63.6 KiB) Downloaded 130 times
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
Does the script do anything if you first open the output console/log view to see result?
Is a simple test, not meant for drag and drop.
Is a simple test, not meant for drag and drop.