Final trueSpace7.61 Beta 8 Std Unofficial Update

User avatar
trueBlue
Captain
Posts: 3811
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 »

After looking at the Hide & Show xml scripts, it looks like there needs some more code to look for the Input Attributes on a selection and if it exist do not create an ORA
Crossed post
Edit
The Show xml too
Edit2
HideAll & ShowAll xml scripts are not working with your scene's Cubes/NURBS group

User avatar
clintonman
Captain
Posts: 4302
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 »

I have the start of a fix for the Show and Hide scripts.
Before running "D3DView.ShowRenderAttribsForObject" it will delete all the child "Object Render Attributes" nodes except for the top one. Then afterward it will remove the disconnected connector to prevent it's memory from interfering with future show hides. ex.) If connector remains with visible it would prevent making it invisible later.

Something similar might be needed for the showall and hideall. I need to install the latest UU on this machine to see.

NURBS are a whole other thing so won't be looking at that until last.
Attachments
Show.RsObj
(12.68 KiB) Downloaded 14 times
Hide.RsObj
(14.27 KiB) Downloaded 13 times
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 3811
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 »

So we are on the same page, I removed the BlockRsTSEvents code from the HideAll & ShowAll

User avatar
clintonman
Captain
Posts: 4302
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:
07 Nov 2021, 03:43
So we are on the same page, I removed the BlockRsTSEvents code from the HideAll & ShowAll
Thanks, I'll do the same.
Clinton Reese

http://clintons3d.com

User avatar
clintonman
Captain
Posts: 4302
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 »

Show All and Hide All

Show All does not create any ORAs and it continues searching down the heirarchy to set all existing ORAs to visible.

Hide All searches all top level objects until an ORA is found and then does the same thing as the Hide selection script when one is found, removes all child ORAs, cleans the connector and sets to invisible.

It seems to all be working, so NURBS are next.

Just tested with NURBS and it looks good. So next is checking/fixing the layers and I think the Hide(All)/Show(All) may interfere with layers.
Attachments
ShowAll.RsObj
(8.11 KiB) Downloaded 15 times
HideAll.RsObj
(10.53 KiB) Downloaded 13 times
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 3811
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:
07 Nov 2021, 03:16
I have the start of a fix for the Show and Hide scripts.
Before running "D3DView.ShowRenderAttribsForObject" it will delete all the child "Object Render Attributes" nodes except for the top one. Then afterward it will remove the disconnected connector to prevent it's memory from interfering with future show hides. ex.) If connector remains with visible it would prevent making it invisible later.

Something similar might be needed for the showall and hideall. I need to install the latest UU on this machine to see.

NURBS are a whole other thing so won't be looking at that until last.
Thank you!
Did some quick test this morning
One thing I notice is the Object_Name is not being updated for the Hide & Show
Suggestion
Change Hide

Code: Select all

if(Node.Exists(Sel + "/Object Render Attributes") && Node.ConExists(Sel + "/Object Render Attributes", "Object_Name")) {
			util.SetNodeValueInt(Sel +  "/Object Render Attributes", "Invisible", -1);
var str = Node.ShortName(Sel)
util.SetNodeValueString(Sel + "/Object Render Attributes", "Object_Name", str)
			if(!Node.Exists(Sel + "/Object hider")) {
				RsStackView.SetPanelExportInfo(Sel + '/Object Render Attributes','Default',1,1);
			}
		}
Also noticed that the ORA's Object_Name was not updating on change
Here is a replacement
Put it in the preobjects folder

I will not be available until later tonight
Attachments
ObjectAttributes.RsObj
(13.62 KiB) Downloaded 13 times

User avatar
trueBlue
Captain
Posts: 3811
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 »

Awesome, your new Hide & Show scripts works better then the tS native D3DView.ShowRenderAttribsForObject('', '') command

Applying Hide & Show to a Group inside a Group creates a separate/working ORA panel and no longer works with the Parent Group's ORA
If you use the native command it adds ORA and hooks it up to the InputAttributes connector in with which makes it no longer work from the new ORA or the Parent Group's ORA
Great work Clinton!

User avatar
clintonman
Captain
Posts: 4302
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 »

layers UU version update

I was going to document what changed but it was such a mass(mess) of changes and errors while fixing that I lost track.
This works better with groups inside of groups. Fixed the new layer mode which was blank instead of "Global".
Remove layer and show layer had some small quick processing bugs. There may be some other changes but there were so many "fix this and that over there breaks" that I just don't recall.

Children of groups can be in different layers, but if the group is assigned to a layer afterward all the children will follow. I found that if you try to preserve the children layers it just kind of breaks all over the place. This isn't a change, just something I noticed/remembered.

Long story short, it should be better than before...I hope...
Attachments
workspacelayers4.RsObj
(327.49 KiB) Downloaded 15 times
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 3811
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 »

Update 94 for trueSpace7.61 Beta 8 Standalone Unofficial Update Version 8
Updated

Workspace Layers 4 [Author - Clinton Reese]
Updated with a Quick Processing mode

preobjects/
ObjectAttributes

Commands/ [Author - Clinton Reese]
ShowAll
HideAll
Hide
Show

November 8, 2021

https://united3dartists.com/forum/viewt ... =55&t=3731

Instructions:

Recommend that you completely Uninstall and Install trueSpace7.61 Standalone to a clean directory

1.) Run the tS7.61B8Std.8.exe
2.) Browse [...] to where you installed C:\trueSpace761Std, select its folder and then the Extract button
3.) Select the Yes to All button
4.) Open trueSpace and select the Reset to Default Context icon
5.) In Workspace select the Default layout tab

The included Plugins.xml file has the Clintons3dPlugin, Clintons3dPluginExt and Clintons3dRsView, Installed and Loaded to the default path: C:\trueSpace761Std
WARNING: These 3 plugins are required to be Installed and Loaded when using trueSpace!

User avatar
trueBlue
Captain
Posts: 3811
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
Just noticed that the HideAll script changes the Curves/LOD Mesh's ORA
These are the corrected values that get changed:

Code: Select all

	Node.Value(selectedObj_ + "/Object Render Attributes", "Receive shadows") = 0
	Node.Value(selectedObj_ + "/Object Render Attributes", "Cast shadows") = 0
	Node.Value(selectedObj_ + "/Object Render Attributes", "Invisible") = 0
	Node.Value(selectedObj_ + "/Object Render Attributes", "Show backfaces") = -1
	Node.Value(selectedObj_ + "/Object Render Attributes", "Surface Opacity") = 0
	Node.Value(selectedObj_ + "/Object Render Attributes", "Edges opacity") = 1
	Node.Value(selectedObj_ + "/Object Render Attributes", "Ignore layer attributes") = -1
Is there a reason why you are switching to Setting in the Stack with the HideAll & ShowAll scripts?

HideAll ShowAll changes the Curves LOD Mesh.png
I also have a fix for the Desktop/Scene's Show Object Attribs button script

Post Reply