Final trueSpace7.61 Beta 8 Std Unofficial Update

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

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by trueBlue »

@Clinton
Never knew that the Show script did not work for original lights

Can we add something like this to the Show script?

Code: Select all

if(Node.IsLight(Sel) && !Node.ConExists(Sel, "RenderAttributes")) {
D3DView.ShowRenderAttribsForObject('', Sel);
ORA_was_created = true;
}
Also with the new ShowCameraAndLights & HideCameraAndLights script, I am getting an error when ran on original lights
Source object: /Scripts/Commands/HideCameraAndLights Error: Microsoft JScript runtime error Description: Invalid procedure call or argument Error code: 0x800a0005 - (null) Line: 44, Char: 3 Script text: Node.Value(curNode + "/Object Render Attributes", "Invisible") = true;
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by clintonman »

These work with old lights.
Attachments
HideCameraAndLights_100.RsObj
(6.88 KiB) Downloaded 109 times
ShowCameraAndLights_100.RsObj
(4.21 KiB) Downloaded 111 times
Clinton Reese

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

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by trueBlue »

clintonman wrote: 23 Apr 2021, 20:41 These work with old lights.
These new scripts work without error for original lights
But you will get an error, if you 3D Encapsulate original lights and run D3DView.ShowRenderAttribsForObject('', '');
This included scene has the Night Church lights that have been 3D Encapsulated

Any comment on adding the following to the Show script?

Code: Select all

if(Node.IsLight(Sel) && !Node.ConExists(Sel, "RenderAttributes")) {
D3DView.ShowRenderAttribsForObject('', Sel);
ORA_was_created = true;
}
Attachments
Night Church.RsScn
(2.75 MiB) Downloaded 103 times
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by clintonman »

trueBlue wrote: 24 Apr 2021, 12:48 ...
Any comment on adding the following to the Show script?

Code: Select all

if(Node.IsLight(Sel) && !Node.ConExists(Sel, "RenderAttributes")) {
D3DView.ShowRenderAttribsForObject('', Sel);
ORA_was_created = true;
}
It's not enough. it also needs the FindOrphanORA code and the part of the code that deletes the orphans. Even then it doesn't work. I think the way groups are handled needs to be completely different. I'm also starting to think that the Object hider node inside the camera and spotlights is not doing anything useful.
Clinton Reese

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

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by trueBlue »

clintonman wrote: 25 Apr 2021, 01:09
trueBlue wrote: 24 Apr 2021, 12:48 ...
Any comment on adding the following to the Show script?

Code: Select all

if(Node.IsLight(Sel) && !Node.ConExists(Sel, "RenderAttributes")) {
D3DView.ShowRenderAttribsForObject('', Sel);
ORA_was_created = true;
}
It's not enough. it also needs the FindOrphanORA code and the part of the code that deletes the orphans. Even then it doesn't work. I think the way groups are handled needs to be completely different. I'm also starting to think that the Object hider node inside the camera and spotlights is not doing anything useful.
This is for the Show script and is added at around line 15
FindOrphanORA is already included in the Show script
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by trueBlue »

Test Update 39 for trueSpace7.61 Beta 8 Std Unofficial Update

April 26, 2021

Recommend that you completely Uninstall and Install trueSpace7.61 Beta 8 Standalone to a clean directory before installing this update.
This is a Beta Pre Release for TESTING the below updates and the included previous updates

Update
Removed duplicate files from the preobjects folder

Commands
Show
Hide Camera & Lights
Show Camera & Lights
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by clintonman »

example problem with current Hide and Show of Cameras and Lights:
group spotlights of default scene
hide cam and lights will hide them and show cam and lights will show them - good
"hide all" will hide them but then show cam and lights will not show them - bad
show all will bring them back - good
now hide cam and light will not hide them - bad

also if use the Show Object Attributes button on a group of lights then the Hide/Show Lights and Cameras doesn't work

The attached fix the problems described above. It uses techniques similar to the workspace layers 4 show and hide.
Attachments
HideCameraAndLights1002.RsObj
(6.59 KiB) Downloaded 101 times
ShowCameraAndLights1002.RsObj
(5.53 KiB) Downloaded 96 times
Clinton Reese

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

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by trueBlue »

Test Update 40 for trueSpace7.61 Beta 8 Std Unofficial Update

May 5, 2021

Recommend that you completely Uninstall and Install trueSpace7.61 Beta 8 Standalone 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 Standalone before applying this new update.
This is a Beta Pre Release for TESTING the below updates and the included previous updates

Update

SnappingScripts
jointToObject
jointToPoints

Commands
Hide Camera & Lights
Show Camera & Lights
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by clintonman »

D3DMatEditTooltipError.jpg
D3DMatEditTooltipError.jpg (47.01 KiB) Viewed 2036 times
The tooltip in the D3D material Editor has an error. It says , "Edit picked material directly", but it should say "Edit DX material in Link Editor". Top image shows the original, bottom is the UU version.
The "Edit picked material directly" is an option in the advanced tab of the material editor.

So it should be "Edit DX material in Link Editor / Current Scene"
Clinton Reese

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

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Post by trueBlue »

Test Update 41 for trueSpace7.61 Beta 8 Std Unofficial Update

May 8, 2021

Recommend that you completely Uninstall and Install trueSpace7.61 Beta 8 Standalone 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 Standalone before applying this new update.
This is a Beta Pre Release for TESTING the below updates and the included previous updates

Update

Material Editor
Changed tooltips to "Edit DX material in Link Editor / Current Scene"

NormalsScripts
Removed RsApp.ClearHistory()
Post Reply