Yafaray4tS v0.9.0

LightWorks, VRay, Dribble, YafaRay and more..
User avatar
trueBlue
Captain
Posts: 4224
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Yafaray4tS v0.9.0

Post by trueBlue »

Testing your new ConsoleObject
I have not been able to see it so far.

Use External Viewer - Without setting the Output - Render File to TGA format
Use External Viewer ErrorEvent.PNG
Use External Viewer Alert.PNG
Use External Viewer Alert.PNG (3.67 KiB) Viewed 5675 times
YafaRay Installation Path - With empty string and using the Render button
2 Alerts and Status Line shows Rendering... (clears)
YafaRay Installation Path - With empty string and using the Offline Render icons
1 Alert and Status Line shows Rendering... (clears)

Output Render File with BMP and DDS format. No Alert or Warning and renders a file with zero bytes.
Output Render File with no filename 'C:\trueSpace761\tS\Image Folder\'
No Alert or Warning and Status Line shows Frame# -1 - Render complete (Does NOT clear) and viewer displays the last succesful rendered image.

User avatar
trueBlue
Captain
Posts: 4224
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Yafaray4tS v0.9.0

Post by trueBlue »

YafaRay4tSv090-RC-29

RC-27 YafaRay4tS_Installer
Includes updates:
YafaRay4tS node Fri Aug 17, 2018
YafaRay Materials library Fri Aug 17, 2018
YafaRay4tS Scene Utilities Fri Aug 17, 2018

Sat Aug 18, 201
Changes:

Removed Yaf_temp.xml file from the installation distribution folder.

New YafaRay4tS Help.chm

YafaRay4tS Setup library
New YafaRay4tS.RsScn - Previous scene had a Vray node and did not show the 'YafaRay4tS Settings' Default aspect.

YafaRay4tS.RsObj
Setup aspect - Changed all of the Viewer attributes to On/Off buttons.
* Use Render to File button - On, disables all other viewers. Off, enables the 'default' Internal and Opt Detector Viewers.
* Use External Viewer button - On, disables all other viewers. Off, enables the 'default' Internal and Opt Detector Viewers.
* Use Internal Viewer button - On, disables all other viewers. Off, disables Internal Viewer
* Use Opt Detector Viewer button - On, disables all other viewers except the required Internal Viewer.
* Use Custom Viewer button - On, disables all other viewers. Off, enables the 'default' Internal and Opt Detector Viewers.

Render to File aspect - Removed 'Use Render to File' On/Off button

GetRenderFile script - Added descriptions of the different image formats

User avatar
trueBlue
Captain
Posts: 4224
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Yafaray4tS v0.9.0

Post by trueBlue »

So I figured out why RC - 28 did not work with unpatched trueSpace versions.
The Status Line was missing.
What is different from the patched versions is the included onnewscene.xml file.
I added this to onnewscene.xml file

Code: Select all

if(!Node.Exists("Status Line"))
return;
if(!Node.ConExists("Status Line", "Model"))
Node.ConCreate("Status Line", "Model", "string", 4);
Node.Value("Status Line", "Model") = "";
}
This gets installed to the Scripts\ScriptCommands folder.
It gets called every time a new scene is generated and the reset.js file also generates new scene.
I fixed the installer, if interested.
I am not sure how to include your new updates to the YafaRay4tS.RsObj though.

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

Re: Yafaray4tS v0.9.0

Post by clintonman »

RC29 so far:
tested on unpatched tS std

added disable button to the Render to File popup

bug: YafaRay4tS help not working - just opens windows explorer

Added error checks for blank files and invalid file extensions to RenderFnSet and the OpenView in Yafaray Scripts

Fixed bug in ErrorsFnSet where it would only work if called from a script inside of the YafaRay4tS node. That was a tough one to find since function sets always lie about where the error is.
Attachments
YafarayScripts.RsObj
(47.43 KiB) Downloaded 223 times
YafaRay4tS.RsObj
(871.77 KiB) Downloaded 206 times
Clinton Reese

http://clintons3d.com

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

Re: Yafaray4tS v0.9.0

Post by clintonman »

fix for chm help
was not working because my truespace path had a space in it

HelpHTML

Code: Select all

function Execute(params)
{
	WshShell = new ActiveXObject("WScript.Shell");
	//help = 'file:///' + System.GetMainDir() + '\/YafaRay4tS%20Help.chm';
	//change all \ to /
	//var re;
	//re = /\\/g;
	//help2 = help.replace(re,"\/");
	help2 = '"' +  System.GetMainDir() + '\\YafaRay4tS Help.chm"';
	WshShell.Run(help2);
}
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 4224
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Yafaray4tS v0.9.0

Post by trueBlue »

Testing in unpatched Rosetta

YafaRay Installation Path - With empty string and using the Render button
2 Alerts and Status Line shows Rendering... (clears)
YafaRay Installation Path - With empty string and using the Offline Render icons
1 Alert and Status Line shows Rendering... (clears)

1.) Any way to abort the Render or stop the process? -> SetTerminationFlag()

Output Render File with BMP and DDS format. ConsoleObject/Alert "Error: Invalid file extension", (Yay it works) creates a file with zero bytes, and the last succesful render displays.

2.) Any way to abort the Render or stop the process? -> SetTerminationFlag()

Output Render File with no filename 'C:\trueSpace761\tS\Image Folder\'
ConsoleObject/Alert "Error: Invalid file name & extension", Status Line shows "Frame# -1 - Render complete" (Does NOT clear) and viewer displays the last succesful rendered image.

3.) Any way to abort the Render or stop the process? -> SetTerminationFlag()


Render XML button - Alert "XML file does not exist. Render aborted" and Status Line shows Rendering... (clears)
Render XML button script = Activity.Run("%THIS_NAME%" + "/Render");
Uncheck "Delete XML Export file" and select Export XML button
Render XML button - Renders without above Alert until you enable "Delete XML Export file"
You can repeat this over and over again with the same results.

4.) Any way to stop the Status Line message since the Alert says it has been aborted?

Not sure it's use but the Render button does not have this issue.
Render button script = Activity.Run("%THIS_NAME%" + "/DoFrameRender");
They both seem to use the the same Output - Render File path, but the Render button does NOT have a problem like the Render XML button has.

Thinking this is related, in a common way, to the issue within the YafarayXMLFileFnSet
Line 26 System.Trace("YafarayXMLFileFnSet Error: try catch error fix - close tS, delete xml file, open tS");

Edit: Cross post... I noticed one time that the help file did not show but its working for me.

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

Re: Yafaray4tS v0.9.0

Post by clintonman »

I'll see what I can do, but it's no where near as simple as a SetTerminationFlag(), which only works with connected nodes. Maybe it can be done through the new Errors system otherwise it might require extensive rewrites.
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 4224
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Yafaray4tS v0.9.0

Post by trueBlue »

trueBlue wrote:
18 Aug 2018, 20:15
So I figured out why RC - 28 did not work with unpatched trueSpace versions.
The Status Line was missing.
What is different from the patched versions is the included onnewscene.xml file.
I added this to onnewscene.xml file

Code: Select all

if(!Node.Exists("Status Line"))
return;
if(!Node.ConExists("Status Line", "Model"))
Node.ConCreate("Status Line", "Model", "string", 4);
Node.Value("Status Line", "Model") = "";
}
This gets installed to the Scripts\ScriptCommands folder.
It gets called every time a new scene is generated and the reset.js file also generates new scene.
I fixed the installer, if interested.
I am not sure how to include your new updates to the YafaRay4tS.RsObj though.
LOL :lol: Quoting myself.
Further testing, the only thing that seems not to work is Animation.

Looking at the lying FnSet error and trying to find the line in the script which is causing the error, it looks like what I have been reporting with the exporting/deleting/missing xml file.
Line 26 System.Trace("YafarayXMLFileFnSet Error: try catch error fix - close tS, delete xml file, open tS");
Just a huge guess on my part though.

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

Re: Yafaray4tS v0.9.0

Post by clintonman »

Errors with true abort of the rendering process.
A lot of little changes all over the place. Working, but could also be broken in a lot of places.
Attachments
YafaRay4tS.RsObj
(874.85 KiB) Downloaded 208 times
YafarayScripts.RsObj
(48.6 KiB) Downloaded 216 times
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 4224
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Yafaray4tS v0.9.0

Post by trueBlue »

Yay! :D
Think there is a problem with the Render XML button.
At first it works but second attempts the ConsoleObject does not show and the ConsoleObject's htmlcode attribute is not Reset.
Clear Alert in 10 seconds.PNG
Steps
Open Render XML button.RsScn
Select the Render XML button and wait for 10 seconds until the ConsoleObject's Alert closes automatically. (See ClearAlert below)
Select the Render XML button several times and look at the YafaRay4tS/ConsoleObject


Also included in this scene is a ClearAlert that is similar to your ClearStatus.
The attachment Clear Alert in 10 seconds.PNG is no longer available
Not fully tested with your new updates yet.
I commented out the con reset so you could see the above.
//Node.ConReset(Space.CurrentScene() + "/YafaRay4tS/ConsoleObject", "htmlcode")
Attachments
ConsoleObject Render XML.PNG
ConsoleObject Render XML.PNG (10.37 KiB) Viewed 5657 times

Post Reply