New Update for the
trueSpace7.61 Beta 8 Unofficial Update
viewtopic.php?f=55&t=3732
11/26/2019
Synchronize scripts for Workspace Lights and Cameras updated to be compatible with trueSpace7.61 Beta 8 Standalone
Synchronize
Removed Desktop > Synchronize button toggle On/Off code
Added a Save Settings button
Changed Restore View check box to a toggle button that unchecks Close Model on Deactivate
Desktop
Removed On/Off and On/Off2 attributes
Replaced Synchronize and Protect Workspace toggle buttons with buttons
Protect Workspace
Change DoDelete Default to true
Main2 toolbar
Model View icon
LMB 'Runs Protect Workspace - Backup with status message, opens a new Link Editor view, and switches to Model'
RMB 'Closes the Model view, runs Protect Workspace - Restore with status message, and closes the Protect Workspace's floating panel'
Materials - DX9 library
Add
Gradient Texture.RsMat 'Create & Save a Gradient Texture'
Window.Shortcuts.xml
Link Editor - Ctrl + Left = Animation Editor
Animation Editor - Ctrl + Left = Link Editor
Note: The above two windows need to be selected in order to switch views and is not supported in all layouts.
New YafaRay4tS posted from Clinton
Mon Nov 11, 2019 6:26 pm
First draft of "no tgaviwer version"
The TGA_Viewer is the default external viewer and not a special stand alone viewer.
The render viewer toggle buttons have been replaced by push buttons.
Disable All Views changed from checkbox to a push button.
"Custom Viewer" changed to "External Viewer" to show that it is the opposite of the "Internal Viewer".
Invalid viewer options will be adjusted at render time to the most sensible values. The visible values do not change. An altered copy of the options is used at render time. If the External Viewer is not valid then an error message.
TODO: add question dialogs for some of the adjustments
Scene Utilities "update yafaray node" updated for the new "no tga"/"disable all views" logic.
There was a lot of changes so there may be some bad behavior here and there or we may be lucky and it works almost perfectly.
Updates 11/26/2019:
YafarayScripts
Changed
Version 8
AnimationRender
Changed
//UserInterface.OpenToolPanelViewEx2("" , "" ,Space.CurrentScene()+"/YafaRay4tS", 8, 1, 0);
OfflineRender.OpenPreferencesPanel()
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/open panel");
//////////
YafaRa4tS
RenderAnim2
Changed End_Frame Default from 0
case 'End_Frame'
params.Param('vtData') = 1;
Note: Fixed the Defaults by re exporting and re applying the LINKS to the Anim and Render to File aspects
Changed
Errors.Add("End Frame must be greater then the Start Frame. Rendering Animation has been canceled");
Changed
if(!Question(numFrames + " - XML files will be created because\nDelete XML files after render\nis not Enabled\n\nWould you like to continue?")) {
Changed
if(Node.Exists("/Status Line"))
if(!Node.ConExists("/Status Line", "YafaRay"))
Node.ConCreate("Status Line", "YafaRay", "string", 4);
Node.Value("/Status Line", "YafaRay") = "Model Processing is not supported and has been disabled"
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/ClearStatus")
System.Alert("Batch Render will start now...");
About
Changed
Version 0.9.8
AboutBitmap
Changed
Version 0.9.8
Date 11/26/2019
Render
Changed 'Adds a little more time to the status message'
//Node.ConRemove("/Status Line", "YafaRay")
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/ClearStatus")
endAniamtion
Changed 'Adds a little more time to the status message'
//Node.ConRemove("/Status Line", "YafaRay")
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/ClearStatus")
Changed
System.Alert("Model Mesh Processing - Render complete\nWARNING!\nSwitching layouts will crash trueSpace if you do not Exit trueSpace first")
Anim
Backup button
Changed
var protectNode = "Scripts/CustomCommands/ProtectWorkspace";
if(Node.Exists(protectNode))
{
Activity.Run("Scripts/CustomCommands/ProtectWorkspace/BackupButton")
Activity.Run("Scripts/CustomCommands/ProtectWorkspace/Popup Panel/OpenPanelFrame")
}
Restore buttton
Changed
var protectNode = "Scripts/CustomCommands/ProtectWorkspace";
if(Node.Exists(protectNode))
{
Activity.Run("Scripts/CustomCommands/ProtectWorkspace/RestoreButton")
}
Cancel Render button 'changed to an On/Off button'
Create XML files and start Batch Render 'changed to capitol letters'
Sequence Player
Add
Period Slider Control 'Controls the speed of the Sequence playback'
Setup
Changed the viewer(s) check boxes to On/Off buttons
Note: Changed the Disable All Viewers button to a On/Off button and linked it to the useRendertoFile attribute.
So if you enable the Disable All Viewers button when using Render to File, no viewers will spawn.
Set from Keyframe 'If there is no animation, the End Frame is set to 0, which causes an error!'
Changed Line 29 = animEnd = 0;
Line 29 animEnd = 1;
ExportXMLFnSet
Comment
//System.SetBusyCursor(true);
//System.SetBusyCursor(false);
ExportXML
Changed
function Execute(params)
{
System.Trace("ExportXML: Exporting YafaRay XML...");
if(Node.Exists("/Status Line")) {
if(!Node.ConExists("Status Line", "YafaRay"))
Node.ConCreate("Status Line", "YafaRay", "string", 4);
Node.Value("/Status Line","YafaRay") = "Exporting - XML Export file...";
}
var MatFnSet = Node.AccessFnSet(System.ThisOwner() + '/MaterialsFnSet');
var ExportFn = Node.AccessFnSet(System.ThisOwner() + '/ExportXMLFnSet');
ExportFn.ExportXML(params);
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/ClearStatus")
}
RenderFrame
Add var to:
Yaf_UseInternalViewer = Node.Value(System.ThisOwner() + '/UIstate', "Yaf_UseInternalViewer") ;
Yaf_UseCustomViewer = Node.Value(System.ThisOwner() + '/UIstate', "Yaf_UseCustomViewer");
Yaf_UseCustomViewer = Node.Value(System.ThisOwner() + '/UIstate', "Yaf_CustomViewer");
Note: Batch Render error undefined line 145
ClearStatus
Change from 2000
ClearStatus", "Period") = 3000
ConsoleObject
Add YafaRay4tS Bitmap
/////// Model Mesh Processing (Only) 'hides the Object widget'
doPython
Add
Node.Value("/Preferences/Desktop", "_Widgets_Select_Default object navigation widget") = 0
endAnimation
Add
Node.Value("/Preferences/Desktop", "_Widgets_Select_Default object navigation widget") = -1
ms_flags_object
Removed all attributes from the Default aspect
///////
YafaRay4tS Scene Utilities
Update YafaRay Render Node
Add
Node.Value(Destination, "useRenderToFile") = true;
UserInterface.OpenToolPanelViewEx2("" , "" ,Space.CurrentScene()+"/YafaRay4tS", 6, 1, 0);
Space.Select(Space.CurrentScene()+"/YafaRay4tS")
Process Imported Scene
Add
UserInterface.OpenToolPanelViewEx2("" , "" ,Space.CurrentScene()+"/YafaRay4tS", 6, 1, 0);
Space.Select(Space.CurrentScene()+"/YafaRay4tS")
///////////
YafaRay4tS Setup library
Add
SynchronizeWorkspace.RsObj
Description:
Synchronize Workspace with Model
Yafaray EntryPoint Camera
When the scene loads the view will switch
to this Camera's view.
In the YafaRay4tS/Camera aspect,
with this camera selected,
select the Set Camera button when
rendering from a Camera View.
In Model select View From Object.
///////////
YafaRay Materials library
Map
Switch button 'clears the panel from the stack'
Add
Space.Select('%THIS_OWNER_NAME%')
Space.Unselect()
Blend Material Collection
Change
both tSQuestions to ClintonQuestions
Add
YafaRay Hair.RsHair 'with YafaRay Glossy material'
Gradient Texture.RsObj 'can be used with the YafaRay Hair object'
///////////
YafaRayBar toolbar
Add
Protect Workspace icon
LMB 'Runs Protect Workspace - Backup with status message
RMB 'Runs Protect Workspace - Restore with status message, and closes the Protect Workspace's floating panel
Render to File icon
Changed
LMB
if (!Node.Exists(Space.CurrentScene()+"/YafaRay4tS")){if(Node.Exists("/Yafaray Folder")){Node.Copy("/Yafaray Folder/YafaRay4tS", Space.CurrentScene());}}Activity.Run(Space.CurrentScene() + "/YafaRay4tS/open panel");
RMB
OfflineRender.OpenPreferencesPanel()