Final trueSpace 7.61 Beta 8 Unofficial Update

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

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 01 Nov 2019, 21:45 synchronizeModelCloseOption.jpg

Close Model View on Deactivation - unchecking gives user control over their own windows and fixes the Restore View option

Automatically closing the model view breaks the Restore View option, so to use Restore View you have to uncheck Close Model View on Deactivation
This version of Synchronize is broken!
Example:
Workspace > New Scene
Add > Cube
Activate > Synchronize
Move > Cube
Deactivate > Synchronize
Cube goes back to it's original position before activating Synchronize.
Kind of defeats Synchronization!

Protect Workspace is no longer supported in Synchronize.

The only thing I can think of is maybe incorporating the Protect Workspace (Options) into Synchronize and an option to not automatically switch to Model. Or let the user switch to Model.
Also, I might be wrong about this but I think the default behavior should be, that when you deactivates Synchronize, the Backup data nodes should be deleted.
/////////

Also with Protect Workspace, I think that if a user modifies any of the options, Backup should honor those changes.
Example:
Backup with all of the options checked.
Disable the Matrix option and run Backup again.
The Backup data for the Matrix is still present in the scene from the original Backup.
My thought is, the Backup data for the Matrix should have been deleted in the above example.
I do note that Remove Backup Scene Data does remedy the above example. But I still think that Backup should also take in consideration of the options checked or unchecked.
I tested deleting the backup data nodes before running Backup again and it seems to work except for Names.
It seems that Names need to be restored first before deleting the backup data.
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

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()
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

I found an error in a material editor label.
Material Editor - Advanced tab
it has "Edit material in Link Editor" which is not the same as "Edit picked material directly"
It chooses between editing a copy or editing the material directly in the scene object.

Also as a side note, if you have a floating animation view active and you try to change a setting the AnimPref settings panel for the first time it will sometimes close itself. If you make the AnimPref the active panel it doesn't.
steps:
open new animation window
change a value in the animpref settings and the animpref settings close
reselect animation view
change value in the animpref settings and the animpref stays open

steps:
open new animation window
click animpref title
change value in the animpref settings and the animpref stays open
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 29 Nov 2019, 06:55 I found an error in a material editor label.
Material Editor - Advanced tab
it has "Edit material in Link Editor" which is not the same as "Edit picked material directly"
It chooses between editing a copy or editing the material directly in the scene object.
Actually unless you use the Inspect tool first, it navigates to the Active Material.
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

trueBlue wrote: 29 Nov 2019, 18:11
clintonman wrote: 29 Nov 2019, 06:55 I found an error in a material editor label.
Material Editor - Advanced tab
it has "Edit material in Link Editor" which is not the same as "Edit picked material directly"
It chooses between editing a copy or editing the material directly in the scene object.
Actually unless you use the Inspect tool first, it navigates to the Active Material.
Inspect: Starts a tool to acquire material from object and make it the active material in Material Editor.
Edit picked material directly:
Unchecked : the material being edited will need to be repainted on an object
Checked: the material being edited will show the edits directly on the surface of the object, no need to repaint
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

clintonman wrote: 29 Nov 2019, 18:57
trueBlue wrote: 29 Nov 2019, 18:11
clintonman wrote: 29 Nov 2019, 06:55 I found an error in a material editor label.
Material Editor - Advanced tab
it has "Edit material in Link Editor" which is not the same as "Edit picked material directly"
It chooses between editing a copy or editing the material directly in the scene object.
Actually unless you use the Inspect tool first, it navigates to the Active Material.
Inspect: Starts a tool to acquire material from object and make it the active material in Material Editor.
Edit picked material directly:
Unchecked : the material being edited will need to be repainted on an object
Checked: the material being edited will show the edits directly on the surface of the object, no need to repaint
Gotcha! I'll change it.
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

New Update for the trueSpace7.61 Beta 8 Unofficial Update
viewtopic.php?f=55&t=3732
12/03/2019

Material Editor
Advanced aspect
Changed label
Edit picked material directly

YafaRay4tS toolbar
Removed the Protect Workspace icon
Add OfflineRender.OpenView('',0,0); to the beginning of the LMB command for the Render to File

YafaRay4tS Help 'Updated 12/02/2019'

YafaRayScripts 'Updated 12/03/2019'
OpenView
Changed

Code: Select all

Node.Value(yafNode + "/tSDisplay", "Yaf_RenderFilename") = System.GetMainDir() + "/Image Folder/YafaRay4tS.png";
YafaRay4tS.png
Protect Workspace 'Updated 11/30/2019'

Synchronize 'Updated 11/30/2019'
Workspace aspect
Activate button
Add
Node.Value("%THIS_NAME%", "AutoCloseModelView") = true

YafaRay Materials 'Updated 12/03/2019'

YafaRay4tS 'Updated 12/02/2019'
Export XML button
Changed

Code: Select all

var Errors = Node.AccessFnSet("%THIS_NAME%" + '/ErrorsFnSet');
Errors.Clear();
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...";
}
Activity.Run("%THIS_NAME%" + "/VersionCheck");
Activity.Run("%THIS_NAME%" + "/ExportXML");
AboutBitmap
Changed date
December 02, 2019

Render to File panel
Changed
Model Mesh Processing and Protect Workspace attributes
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by clintonman »

"Rendering..." on the image, nice touch.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by trueBlue »

Thanks. Putting that image in the Image Folder was a bad choice on my part.
I tend to delete everything in that folder after rendering an animation.
Next update, I'll put it in the Texture folder and change the YafaRayScripts/OpenView.
User avatar
the_ant
Chief Petty Officer
Posts: 149
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: Final trueSpace 7.61 Beta 8 Unofficial Update

Post by the_ant »

Question about UnoffUpdates...in Nov 18th installed tSp761b8 from scratch following instructions of the download post...could you suggest a guidline to maintain updated it with newest versions of UnoffUpdate? (maybe i missing it somewhere in the forum)...Thanks again for your precious job... :bananacheers:
Post Reply