Try using these to call the Render to File panel.
YafaRay for trueSpace 2019
Re: YafaRay for trueSpace 2019
Re: YafaRay for trueSpace 2019
Bump
And adding this to the Render Animation button for the Anim aspect and the Render Animation button on the Render to File aspect.
Batch Rendering has the same issue! So I did the same as above by converting it into a button.
Also I have noticed this before where the Alert has no info. End Frame = 0
I am also proposing to bring back the Render to File icon for the YafaRay4tS toolbar using the same commands as the Render Animation icon. I know it is redundant but t does not hurt having it.
I tested this by adding this to the DoFrameRender script, and it works as expected.trueBlue wrote: ↑16 Dec 2019, 16:37 Thanks!
Just noticed that the Render buttons on the YafaRay4tS panel do not work like the YafaRay4tS toolbar.
Steps
Vray selected as the Offline Renderer
Select the YafaRay4tS panel
Select Render and or Render Animation buttons from the YafaRay4tS panel
Is it possible to make the Render buttons work like the toolbar?
Maybe add code to the DoFrameRender2 script that checks if Yafaray is the selected Offline Renderer?
Code: Select all
// Switch to Yafaray
if(Node.Exists("/Offline renderers/Yafaray")) {
var myenum = System.CreateDO("Common Data Package/String Enum Data");
myenum = Node.Value("/Offline renderers", "Renderer");
var str = myenum.GetSelectedString();
myenum.SetSelectedString("Yafaray");
Node.Value("/Offline renderers", "Renderer") = myenum;
}
OfflineRender.OpenView('',0,0);
Code: Select all
if(Node.Exists("/Offline renderers/Yafaray")) {
var myenum = System.CreateDO("Common Data Package/String Enum Data");
myenum = Node.Value("/Offline renderers", "Renderer");
var str = myenum.GetSelectedString();
myenum.SetSelectedString("Yafaray");
Node.Value("/Offline renderers", "Renderer") = myenum;
}
OfflineRender.OpenView('',0,0);
Activity.Run('%THIS_NAME%/RenderAnim2')
Code: Select all
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Yaf_DeleteTempFiles") = true
if(Node.Exists("/Offline renderers/Yafaray")) {
var myenum = System.CreateDO("Common Data Package/String Enum Data");
myenum = Node.Value("/Offline renderers", "Renderer");
var str = myenum.GetSelectedString();
myenum.SetSelectedString("Yafaray");
Node.Value("/Offline renderers", "Renderer") = myenum;
}
OfflineRender.OpenView('',0,0);
Activity.Run('%THIS_NAME%/RenderAnim2')
- 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
It looks like in every case you are adding code then calling OfflineRender.OpenView('',0,0);
So you should probably remove the code from all those buttons and scripts and put it inside the YafarayScripts/OpenView which is called by the OfflineRender.OpenView('',0,0);
Below is a summary of what the standard button commands do.
trueSpace Render System button actions provided by the interface
runs YafarayScripts/OpenView
runs YafarayScripts/RenderScene
runs YafarayScripts/RenderObject
runs YafarayScripts/RenderAnimation
after rectangle selection
runs YafarayScripts/OpenView then runs YafarayScripts/RenderArea
runs YafarayScripts/EnumPropertiesPanels
when vray is the active renderer the OfflineRender commands call the corresponding vray functions
So you should probably remove the code from all those buttons and scripts and put it inside the YafarayScripts/OpenView which is called by the OfflineRender.OpenView('',0,0);
Below is a summary of what the standard button commands do.
trueSpace Render System button actions provided by the interface
Code: Select all
OfflineRender.OpenView('',0,0);
Code: Select all
OfflineRender.RenderScene('')
Code: Select all
OfflineRender.RenderObject('')
Code: Select all
OfflineRender.RenderAnimation('')
Code: Select all
Widgets.ReplaceWidget('{88839603-7F98-41f0-96AC-BE94E801CFF3}','/Widgets/Tools/Offline render/Area scene render','Default','','dummy')
runs YafarayScripts/OpenView then runs YafarayScripts/RenderArea
Code: Select all
OfflineRender.OpenPreferencesPanel()
when vray is the active renderer the OfflineRender commands call the corresponding vray functions
Re: YafaRay for trueSpace 2019
I am just adding your script that changes the Offline Renderer to Yafaray, to your script that includes the OfflineRender.OpenView('',0,0); command
As an example look in your DoFrameRender script
The OfflineRender.OpenView('',0,0); command exist in your YafaRay4tS/Render Animation button too.
I removed the OfflineRender.OpenView('',0,0); commands from all of the modifications and that works too.
Edit: Removing the OfflineRender.OpenView('',0,0); commands from all of the modifications does not work!
Disable All Viewers does not work without it.
As an example look in your DoFrameRender script
The OfflineRender.OpenView('',0,0); command exist in your YafaRay4tS/Render Animation button too.
I removed the OfflineRender.OpenView('',0,0); commands from all of the modifications and that works too.
Edit: Removing the OfflineRender.OpenView('',0,0); commands from all of the modifications does not work!
Disable All Viewers does not work without it.
Re: YafaRay for trueSpace 2019
YafaRay4tS Help
Animation
Create XML and begin batch render - Creates XML files for frame range specified in Start Frame to End Frame and a Win Batch file which is used to call YafaRay to render the frames sequentially in the background. This option doesn't tie up trueSpace. Unchecking this box will cause YafaRay4tS to wait for each frame to render and display the updates in the internal viewer. While the unchecked option does tie up trueSpace, when used in combination with the "Delete XML files after rendering" option, it uses considerably less hard drive space.
When rendering a Batch Render, it dose tie up trueSpace.
Has this changed from previous versions?
Edit: Never mind, the above is true. It does not tie up tS after the all of the XML files are exported. And if you cancel the batch render at Frame 0, the Yaf_render.cmd and yaf_test_0000.xml are not deleted.
Rendering an Animation with the TGA viewer and or External Viewer, should not be available.
Animation
Create XML and begin batch render - Creates XML files for frame range specified in Start Frame to End Frame and a Win Batch file which is used to call YafaRay to render the frames sequentially in the background. This option doesn't tie up trueSpace. Unchecking this box will cause YafaRay4tS to wait for each frame to render and display the updates in the internal viewer. While the unchecked option does tie up trueSpace, when used in combination with the "Delete XML files after rendering" option, it uses considerably less hard drive space.
The above info in the help file is not correct from what I can tell.This option doesn't tie up trueSpace.
When rendering a Batch Render, it dose tie up trueSpace.
Has this changed from previous versions?
Edit: Never mind, the above is true. It does not tie up tS after the all of the XML files are exported. And if you cancel the batch render at Frame 0, the Yaf_render.cmd and yaf_test_0000.xml are not deleted.
Rendering an Animation with the TGA viewer and or External Viewer, should not be available.
- 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
Ok, I see what you're doing now. Good work, the yafaray4ts node render buttons should force the use of the yafaray renderer. Placing the code in OpenView like I suggested wouldn't work because if vray is active it would never be called.
Re: YafaRay for trueSpace 2019
Right!clintonman wrote: ↑21 Dec 2019, 17:40Ok, I see what you're doing now. Good work, the yafaray4ts node render buttons should force the use of the yafaray renderer. Placing the code in OpenView like I suggested wouldn't work because if vray is active it would never be called.
- 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
That makes no sense to me to have 2 buttons that do the exact same thing.
If you like the render to file icon, you should get rid of the render animation icon.
Re: YafaRay for trueSpace 2019
I know it is redundant but it does not hurt.clintonman wrote: ↑21 Dec 2019, 17:46That makes no sense to me to have 2 buttons that do the exact same thing.
If you like the render to file icon, you should get rid of the render animation icon.
The Render to File's RMB is different calling the current lighting method given that you can render an animation or just render.
I brought it back because of Saul's post, blame him!
- 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
Fix for old version yafaray4ts node.
- Attachments
-
- OpenView.RsObj
- (14.95 KiB) Downloaded 201 times