Final trueSpace 7.61 Beta 8 Unofficial Update

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 »

Only opens the report if an orphan material was found.
Cleaned up the report to only show useful information.
It uses the status line but it happens too quickly in my small test to see it.
Attachments
D3D Material Converter07.RsObj
(2.06 MiB) Downloaded 132 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
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!
I think you forgot = 0:

Code: Select all

//	ChunkCount;
ChunkCount = 0
//	MaterialIndexCount;
MaterialIndexCount = 0
Is that correct?
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: 30 Mar 2021, 00:00 Thanks!
I think you forgot = 0:

Code: Select all

//	ChunkCount;
ChunkCount = 0
//	MaterialIndexCount;
MaterialIndexCount = 0
Is that correct?
Those 2 lines aren't strictly needed but I think it's better to have it the way you show above with the 0 values.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
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 »

Without it it was throwing errors
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: 30 Mar 2021, 00:11 Without it it was throwing errors
Not here, if I remove the lines I don't get any error.
I'll rewrite it to make it use those values properly.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
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 »

I was just getting ready to reply
Without the 0, I get an error
With the 0, I get an Alert that no orphaned materials exist
So either way it is not working

Also it looks like all of these scripts should have RsApp.ClearHistory()
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: 30 Mar 2021, 00:52 I was just getting ready to reply
Without the 0, I get an error
With the 0, I get an Alert that no orphaned materials exist
So either way it is not working

Also it looks like all of these scripts should have RsApp.ClearHistory()
Good call, added the clear history if any changes were made by the scripts.
For the orphans I made those 2 global variables into local variables so they don't exist everywhere and they're now defined around line 176 and the values are passed into the FixMaterial function.

"With the 0, I get an Alert that no orphaned materials exist" - be sure your scene has orphan materials. If there are none you get the alert.
Attachments
D3D Material Converter10.RsObj
(2.07 MiB) Downloaded 121 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
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 »

Some observations:
D3D 2 YafaRay4tS
Multiple selected objects
1) Status always says:
Material Conversion 0

2) Needs clear history?

If Yafaray material combo control blank(Default), Alert no materials found
3) Needs a yafarayType default?
And or add material in it's saved state (This works)

MaterialInstanceConverterScript/SetMaterialEditorMode
//System.Alert("Clintons3dView plugin must be Installed and Loaded.");Wrong plugin
4) System.Alert("Clintons3dPlugin must be Installed and Loaded");

D3D 2 Instancing
5) Needs clear history?

Note: Changed all Conversion alert text identifing the converted material type
Example:
System.Alert("Converted " + numMaterialsConverted + " D3D Compiled materials"
User avatar
trueBlue
Captain
Posts: 5206
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 »

Test Update 30 for trueSpace7.61 Beta 8 Unofficial Update

March 30, 2021

Recommend that you completely Uninstall and Install trueSpace7.61 Beta 8 to a clean directory before installing this update. If you applied the previous Test Update to a clean directory, you do not need to Uninstall trueSpace7.61 Beta 8 before applying this new update.

This is a Beta Pre Release for TESTING the below updates and the updates in the Final trueSpace7.61 Beta 8 Std Unofficial Update thread
viewtopic.php?f=4&t=5418

There seems to be a requirement for Synchronize to work without turning the Workspace 3D object's material black in Model
After you apply the UU7 update and Reset to Default Context, you must Close trueSpace before using Synchronize
Still investigating if other steps are necessary like opening Model's Preferences, and or setting Model's Configuration

Update

Material Editor

Convert D3D Materials
Update Author - Clinton Reese
Modifications

MaterialInstanceConverterScript/SetMaterialEditorMode
Changed alert message
//System.Alert("Clintons3dView plugin must be Installed and Loaded.");Wrong plugin
System.Alert("Clintons3dPlugin must be Installed and Loaded");

MaterialInstanceConverterScript/ConvertMaterialType
Add
RsApp.ClearHistory()

Changed all Conversion alert text identifying the converted material type
Example:
System.Alert("Converted " + numMaterialsConverted + " D3D Compiled materials"
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: 30 Mar 2021, 18:41
MaterialInstanceConverterScript/ConvertMaterialType
Add
RsApp.ClearHistory()
It's not needed in that case. The only real change is coming from the command MeshModifiers.RepaintMaterial
There's no changing connections or anything like that and undo at any point doesn't leave tS in a bad state.
Clinton Reese

http://clintons3d.com
Post Reply