trueSpace 7.61 Unofficial Update Patches

User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Stack View Patch

fixes instability when opening a new stack view and drag/docking it into position.

install - drag into the link editor and press the Run button

Problem Details

sequence of steps:
close the stack view
press the stack view button to open a new stack view
ctrl+drag the new stack view to the original stack view position
result - bad window artifact and unstable/crashy trueSpace

Fix

problem is caused by assigning an owner to the stack view so it does not get covered by the main tS window
so remove the owner assignment
result: upside - no crashes, downside - the main window can cover it up the floating stack view


Edit: Removed attachment. Updated file is below in new post.
Last edited by clintonman on 16 Sep 2023, 15:44, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Attached is the "original camera plus" widget from uu4clinton 2.0
trueBlue has offered to add it to the UU directly, so no patch installer for this one.
Attachments
OriginalCameraPlus.RsObj
(330.73 KiB) Downloaded 120 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

clintonman wrote: 15 Sep 2023, 19:16 Stack View Patch

fixes instability when opening a new stack view and drag/docking it into position.

install - drag into the link editor and press the Run button

Problem Details

sequence of steps:
close the stack view
press the stack view button to open a new stack view
ctrl+drag the new stack view to the original stack view position
result - bad window artifact and unstable/crashy trueSpace

Fix

problem is caused by assigning an owner to the stack view so it does not get covered by the main tS window
so remove the owner assignment
result: upside - no crashes, downside - the main window can cover it up the floating stack view
Updated patch

After the floating stack view is open it will automatically dock back into the default position.
This requires that the Info Panel is still in it's original position. If not then the panel remains floating.

Edit: attachment removed because it worked with all layouts except for the Default layout
Last edited by clintonman on 16 Sep 2023, 18:15, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

clintonman wrote: 15 Sep 2023, 19:16 Stack View Patch

fixes instability when opening a new stack view and drag/docking it into position.

install - drag into the link editor and press the Run button

Problem Details

sequence of steps:
close the stack view
press the stack view button to open a new stack view
ctrl+drag the new stack view to the original stack view position
result - bad window artifact and unstable/crashy trueSpace

Fix

problem is caused by assigning an owner to the stack view so it does not get covered by the main tS window
so remove the owner assignment
result: upside - no crashes, downside - the main window can cover it up the floating stack view


Edit: Removed attachment. Updated file is below in new post.
Updated patch

After the floating stack view is open it will automatically dock back into the default position.
This requires that the Info Panel is still in it's original position. If not then the panel remains floating

The previous patch worked for all layouts except the default.
Now it works with all the layouts.
Attachments
Stack View Patch04.RsObj
(70.34 KiB) Downloaded 98 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Hide / Show Patch

Fixed bug so Hide and Show works without the need to check "Use Intensive Visibility mode".
No installer.
Attachments
Visibility Function Set.RsObj
(47.69 KiB) Downloaded 129 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 17 Sep 2023, 14:11 Hide / Show Patch

Fixed bug so Hide and Show works without the need to check "Use Intensive Visibility mode".
No installer.
Great, I will uncheck "Use Intensive Visibility mode" now that the Show and Hide toolbar buttons will work
No longer need to go and get coffee! :mrgreen:
Can not remember, I think I added the function; VisibilityMode()
Looks like all references to that can be removed?
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 17 Sep 2023, 14:54
clintonman wrote: 17 Sep 2023, 14:11 Hide / Show Patch

Fixed bug so Hide and Show works without the need to check "Use Intensive Visibility mode".
No installer.
Great, I will uncheck "Use Intensive Visibility mode" now that the Show and Hide toolbar buttons will work
No longer need to go and get coffee! :mrgreen:
Can not remember, I think I added the function; VisibilityMode()
Looks like all references to that can be removed?
Yep
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

I have implemented all your trueSpace 7.61 Unofficial Update Patches except for the Stack View Patch

I added a Restore Stack script to UUCommands
This restores the current layout with one exception, if the current layout is the default_layout.rsl, it will be restored to the Default.rsl which is exactly the same
The UUFunctionSet/function OpenHistoryWindow(),
Runs: Activity.Run('Scripts/UUCommands/Restore Stack')

Code: Select all

// Execute 
// Called to execute the command 
function Execute(params)
{
	var WMS = WindowsManager.GetWindowsManagerNodeName();
	var StackPanelNode = FindStackPanel(WMS);
	var layout = Node.Value("/Project/Windows Manager Space", "LayoutName")
	var fso = new ActiveXObject("Scripting.FileSystemObject")

	if(StackPanelNode) {
		System.Alert('Stack View ia already open')
		return;
	}

	if(!fso.FolderExists(System.GetMainDir() + '\\Rs Main Libraries\\')) {
		System.Alert('Rs Main Libraries folder does not exist\n\nSelect a layout from the top titlebar to restore the Stack View')	
		return
	}

	if(layout == 'default_layout') {
		if(fso.FileExists(System.GetMainDir() + '\\Rs Main Libraries\\Layouts - Configurations\\Default.rsl'))
			WindowsManager.LoadLayout('\\Rs Main Libraries\\Layouts - Configurations\\Default.rsl')
		return
	}

	if(fso.FileExists(System.GetMainDir() + '\\Rs Main Libraries\\Layouts - Configurations\\' + layout + '.rsl')) {
		WindowsManager.LoadLayout('\\Rs Main Libraries\\Layouts - Configurations\\' + layout + '.rsl')
	}

}
function FindStackPanel(currentNode)
{
	if(Node.ShortName(currentNode) == "StackPanelView Node") {
		return currentNode;
	}

	var subObjCount = Node.SubObjectCount(currentNode);

	if(subObjCount == 0) return;

	for(var i=0;i<subObjCount;i++) {
		var subObj = currentNode + "/" + Node.SubObject(currentNode, i);
		var foundval = FindStackPanel(subObj);
		if(foundval) {
			return foundval;
		}
	}
}
Hopefully, in the near future, your Stack View Patch installer will not change the upcoming UUCommands
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Freeze Transform

was easier to just change button labels from to "Local" to "Active" instead of replacing with the original check boxes

refined the help, but still not perfect because of the complexity of doing a combination of pivot and mesh manipulation.


changed a problem line of code, primitives where not behaving

Code: Select all

		//only valid for meshes
		//if(Node.IsRenderable(selName))
		if (Node.Exists(selName + "/Editable shape") || Node.Exists(selName + "/Shape"))
			MeshModifiers.FlattenAxes(selName);
Attachments
freezeTransforms07fe5e.RsObj
(21.54 KiB) Downloaded 121 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Replacement Origin Function Set that won't run on dimension objects
Attachments
Origin Function Set01.RsObj
(29.75 KiB) Downloaded 93 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

More reliable Origin Function Set Dimension bypass as suggested
Attachments
Origin Function Set03.RsObj
(31.27 KiB) Downloaded 125 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

Mesh Origin scripts need to be adjusted some more to avoid Dimensions
This Linear measurement was attached to the Cube before using Mesh Origin
Dimension Origin issues.png
.
While in Edit Graphic mode is problematic
Origin to PE Selection is problematic
Set Snap Point Widget is problematic

I think the easiest solution would be to add a command to the Mesh Origin panel buttons to avoid Dimension(S)

Code: Select all

if(Node.ConExists('', 'Dimension')) return;
Also, again, Origin to PE Selection does not RClick Cancel when there is no PE Selection
Status message is stuck
TODO: Need to check if the widget is still loaded
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Change Light Type

updated script to not change the link editor location
works by copying the hidden LE2Data connector value - great suggestion :bananathumb:
Attachments
Change Light Type.RsObj
(34.55 KiB) Downloaded 132 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 09 Oct 2023, 18:14 Change Light Type

updated script to not change the link editor location
works by copying the hidden LE2Data connector value - great suggestion :bananathumb:
Perfecto! :bananathumb:
Added a Convert Camera Type
Convert Camera Type.png
Convert Camera Type.png (21.54 KiB) Viewed 2510 times
.
Attachments
Change Light Typefa2e.RsObj
(62.53 KiB) Downloaded 124 times
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

@Clinton
Please try this Ctrl = RDrag Gesture Move in Z 'Up Down' for the Background widget
Put it the Background widget's Ortho and Perspective nodes
Hook up the Undoable and Gesture connectors
Navigate Up Down
Attachments
Navigate Up Down.RsObj
(16.65 KiB) Downloaded 122 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 09 Oct 2023, 23:36 @Clinton
Please try this Ctrl = RDrag Gesture Move in Z 'Up Down' for the Background widget
Put it the Background widget's Ortho and Perspective nodes
Hook up the Undoable and Gesture connectors
Navigate Up Down
Works in perspective, camera and left,right,front,back views
No motion in top bottom views
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 10 Oct 2023, 00:13
trueBlue wrote: 09 Oct 2023, 23:36 @Clinton
Please try this Ctrl = RDrag Gesture Move in Z 'Up Down' for the Background widget
Put it the Background widget's Ortho and Perspective nodes
Hook up the Undoable and Gesture connectors
Navigate Up Down
Works in perspective, camera and left,right,front,back views
No motion in top bottom views
Also works in Isometric view
I find the Middle Mouse Drag speed in ortho views wildly to fast!
What do you think?
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Radial Modeler

Floating point rounding error when using the Measure Angle

Hexagon shape should give an angle of 60 degrees which translates to 6 sections to add up to 360 degrees

Problem is measurement was giving an angle of 60.0000000000001

Multiply that by 6 and it goes over 360 degrees giving an error if you try to do 6 sides only allowing 5 sides because it adds up to something like 360.0000000003 :roll:
Attachments
Radial Modeler.RsObj
(95.61 KiB) Downloaded 126 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Mesh Origin

renamed panel button "Get Snap Point" to "Set Snap Point"
removed convert to editable from Set Snap Point Widget button
removed convert to editable from Set Snap Point button
new widget, PickOriginWidget with ctrl + rclick option to immediately snap the origin
Attachments
PickOriginWidget01.RsObj
(45.98 KiB) Downloaded 117 times
MeshOrigin01.RsObj
(139.23 KiB) Downloaded 141 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

clintonman wrote: 11 Oct 2023, 15:08 Mesh Origin

renamed panel button "Get Snap Point" to "Set Snap Point"
removed convert to editable from Set Snap Point Widget button
removed convert to editable from Set Snap Point button
new widget, PickOriginWidget with ctrl + rclick option to immediately snap the origin
Forgot to remove dimension protection.

removed dimension protection from Set Snap Point Widget
removed dimension protection from Set Snap Point
add dimension protect into script where snapping occurs

The Set Snap Point Widget status line still refers to "o" shortcut. This should be change to "ctrl + rclick"
Attachments
MeshOrigin02.RsObj
(139.33 KiB) Downloaded 122 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 11 Oct 2023, 18:54
clintonman wrote: 11 Oct 2023, 15:08 Mesh Origin

renamed panel button "Get Snap Point" to "Set Snap Point"
removed convert to editable from Set Snap Point Widget button
removed convert to editable from Set Snap Point button
new widget, PickOriginWidget with ctrl + rclick option to immediately snap the origin
Forgot to remove dimension protection.

removed dimension protection from Set Snap Point Widget
removed dimension protection from Set Snap Point
add dimension protect into script where snapping occurs

The Set Snap Point Widget status line still refers to "o" shortcut. This should be change to "ctrl + rclick"
Testing Mesh Origin with Dimension's various functions like Edit Graphic
This is why I put dimension protection in the Mesh Origin panel buttons
Mesh Origin Set Snap Point Widget Edit Graphic.png
.
Mesh Origin Set Snap Point Widget Edit Graphic3.png
.
Mesh Origin Set Snap Point Widget.png
.
Mesh Origin when using Dimension's Scene button
Mesh Origin when using Dimension's Scene button.png
.
What is the purpose of selecting the Scene in Dimensions?
I notice I am able to add Dimension's Linear Angle with the Scene selected!
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 12 Oct 2023, 12:12
clintonman wrote: 11 Oct 2023, 18:54
clintonman wrote: 11 Oct 2023, 15:08 Mesh Origin

renamed panel button "Get Snap Point" to "Set Snap Point"
removed convert to editable from Set Snap Point Widget button
removed convert to editable from Set Snap Point button
new widget, PickOriginWidget with ctrl + rclick option to immediately snap the origin
Forgot to remove dimension protection.

removed dimension protection from Set Snap Point Widget
removed dimension protection from Set Snap Point
add dimension protect into script where snapping occurs

The Set Snap Point Widget status line still refers to "o" shortcut. This should be change to "ctrl + rclick"
Testing Mesh Origin with Dimension's various functions like Edit Graphic
This is why I put dimension protection in the Mesh Origin panel buttons
Mesh Origin Set Snap Point Widget Edit Graphic.png
.
Mesh Origin Set Snap Point Widget Edit Graphic3.png
.
Mesh Origin Set Snap Point Widget.png
.
Mesh Origin when using Dimension's Scene button
Mesh Origin when using Dimension's Scene button.png
.
What is the purpose of selecting the Scene in Dimensions?
I notice I am able to add Dimension's Linear Angle with the Scene selected!
Not able to reproduce any problems without steps.
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

Not able to reproduce any problems without steps.
Select the Scene
Press any of the Mesh Origin's panel buttons

I added:
if(Node.ConExists('', 'Object'))Space.Unselect();
To all of the buttons except for the Set Snap Point Widget button
This needs a return to stop the widget:
if(Node.ConExists('', 'Object'))Space.Unselect();return


Select a Cube_Measurements or Scene_Measurements node and Set Snap Point Widget
The widget starts on a selected node that does not have a mesh, matrix, or any connectors
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 12 Oct 2023, 14:42
Not able to reproduce any problems without steps.
Select the Scene
Press any of the Mesh Origin's panel buttons

I added:
if(Node.ConExists('', 'Object'))Space.Unselect();
To all of the buttons except for the Set Snap Point Widget button
This needs a return to stop the widget:
if(Node.ConExists('', 'Object'))Space.Unselect();return


Select a Cube_Measurements or Scene_Measurements node and Set Snap Point Widget
The widget starts on a selected node that does not have a mesh, matrix, or any connectors

Fixes:
toggle origin display button - removed dimension restriction
fix bug Origin Function Set where 2D groups were allowed - now only 3D groups are allowed. The Scene is a 2D group.


It does not matter what is selected before the Set Snap Point Widget is run. The only thing that matters is the first object the widget is used on.
Attachments
MeshOrigin05.RsObj
(139.8 KiB) Downloaded 98 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Vertex Paint

updated the rsx plugin to prevent a crash and add some checks and messages

http://clintons3d.com/plugins/downloads ... Plugin.rsx

Added a button so that it does not automatically convert the selected object to an editable mesh
The paint works with "Editable shape" and "Shape" nodes. Converting to editable will lose the mesh visualization streams that are not compatible with the Editable shape node.
"Prepare and Start" will do what the original uu9 "Start Painting" did. It will convert the selected object to editable mesh and if it's not an editable mesh it will open a material library with vertex color compatible materials.
"Start Painting" will just start the widget without altering the selected object or opening any libraries.
It should be noted that even if you do start the paint with a specific object selected nothing prevents painting on a different object instead.

I just received a note that some of the UI has changed since the last release. The changes are based on the last release version.
Attachments
PaintVertexColor02.RsObj
(255.03 KiB) Downloaded 141 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

@Clinton
Can you take a peek at this and see if it is okay and or if any improvements need to be made?
I added your Image RGB2Alpha node as an indicator that the Bitmap has an Alpha
This is a big guess on my part
From the looks of it, if it shows all White, there is no Alpha?
Would be great if the Save script could check for an Alpha channel first
The plan is to add this to your Components - Compositing library in the upcoming UU9
SavePNG panel.png
SavePNG panel.png (9.72 KiB) Viewed 3254 times
.
Attachments
Save Image as PNG with Alpha.RsObj
(50.53 KiB) Downloaded 136 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 21 Oct 2023, 11:14 @Clinton
Can you take a peek at this and see if it is okay and or if any improvements need to be made?
I added your Image RGB2Alpha node as an indicator that the Bitmap has an Alpha
This is a big guess on my part
From the looks of it, if it shows all White, there is no Alpha?
Would be great if the Save script could check for an Alpha channel first
The plan is to add this to your Components - Compositing library in the upcoming UU9
SavePNG panel.png
.
Both your guesses are correct.

Changes:
file input, update on change
replace file dialog button with save as dialog script
add alpha check and indicator
removed the inputbitmap node
changed status message to match alpha status
Attachments
Save Image as PNG with Alpha07.RsObj
(34.04 KiB) Downloaded 130 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

image saver node

compositing node replacement with support for png file alpha channel
Attachments
image saver01.RsObj
(30.3 KiB) Downloaded 112 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 21 Oct 2023, 15:40
trueBlue wrote: 21 Oct 2023, 11:14 @Clinton
Can you take a peek at this and see if it is okay and or if any improvements need to be made?
I added your Image RGB2Alpha node as an indicator that the Bitmap has an Alpha
This is a big guess on my part
From the looks of it, if it shows all White, there is no Alpha?
Would be great if the Save script could check for an Alpha channel first
The plan is to add this to your Components - Compositing library in the upcoming UU9
SavePNG panel.png
.
Both your guesses are correct.

Changes:
file input, update on change
replace file dialog button with save as dialog script
add alpha check and indicator
removed the inputbitmap node
changed status message to match alpha status
Great improvements! :bananathumb:
Wonder why this image Saved as 32 Bit Depth?
Save As PNG.png
Save As PNG.png (9.33 KiB) Viewed 3250 times
.
Removed the Save button and hooked up your save as dialog script to the Save script
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 21 Oct 2023, 16:37
clintonman wrote: 21 Oct 2023, 15:40
trueBlue wrote: 21 Oct 2023, 11:14 @Clinton
Can you take a peek at this and see if it is okay and or if any improvements need to be made?
I added your Image RGB2Alpha node as an indicator that the Bitmap has an Alpha
This is a big guess on my part
From the looks of it, if it shows all White, there is no Alpha?
Would be great if the Save script could check for an Alpha channel first
The plan is to add this to your Components - Compositing library in the upcoming UU9
SavePNG panel.png
.
Both your guesses are correct.

Changes:
file input, update on change
replace file dialog button with save as dialog script
add alpha check and indicator
removed the inputbitmap node
changed status message to match alpha status
Great improvements! :bananathumb:
Wonder why this image Saved as 32 Bit Depth?
Save As PNG.png
.
Removed the Save button and hooked up your save as dialog script to the Save script
"From the looks of it, if it shows all White, there is no Alpha?"
and if it shows black then there is alpha
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 21 Oct 2023, 15:54 image saver node

compositing node replacement with support for png file alpha channel
Fixed the non working Open Folder
Removed
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 21 Oct 2023, 17:06
clintonman wrote: 21 Oct 2023, 15:54 image saver node

compositing node replacement with support for png file alpha channel
Fixed the non working Open Folder
.
Those extra buttons dont match up with the image saver.
"Render to File" does not use the filename defined earlier, but opens up an entirely different folder
and "Open Folder" opens the Render to File folder also not matching with the filename
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 21 Oct 2023, 17:13
trueBlue wrote: 21 Oct 2023, 17:06
clintonman wrote: 21 Oct 2023, 15:54 image saver node

compositing node replacement with support for png file alpha channel
Fixed the non working Open Folder
.
Those extra buttons dont match up with the image saver.
"Render to File" does not use the filename defined earlier, but opens up an entirely different folder
and "Open Folder" opens the Render to File folder also not matching with the filename
Upload a new version without the non working items and I will replace the UU9 version
Edit: I changed the Open Folder script to use the filename and removed the Render to File button
User avatar
the_ant
Chief Petty Officer
Posts: 155
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: trueSpace 7.61 Unofficial Update Patches

Post by the_ant »

Hi TrueBlue and Clinton :worship: :worship:

hope I'm not Off-Topic but I noticed that in the instructions about UU9 Full & Std installation there is no reference to the interesting Clinton's plugins for import/export DAE and FBX-OBJ etc. (see attached). Am i wrong? :bananahi:
Attachments
ClipStd-RSX.jpg
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

the_ant wrote: 26 Oct 2023, 17:40 Hi TrueBlue and Clinton :worship: :worship:

hope I'm not Off-Topic but I noticed that in the instructions about UU9 Full & Std installation there is no reference to the interesting Clinton's plugins for import/export DAE and FBX-OBJ etc. (see attached). Am i wrong? :bananahi:
In the UU9, the Clinton's Export Utilities toolbar is located here:
Clinton's Export Utilities toolbar.png
.
LClick the Import FBX toolbar icon, checks if the Clintons3DFBX2019.rsx version 1638426 plugin is Installed and Loaded
Import FBX.png
Import FBX.png (7.06 KiB) Viewed 3316 times
.
If not, the Package Manage opens, where you can Install and Load the plugin
You will need to Restart trueSpace
User avatar
the_ant
Chief Petty Officer
Posts: 155
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: trueSpace 7.61 Unofficial Update Patches

Post by the_ant »

Thanks TrueBlue... :worship:
is it possible insert that instructions sequence at the end of download page of every UU9 new version where you also explain how to install vray_ts.rsx?
If so it would be useful for all new downloaders...:mrgreen:
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

the_ant wrote: 26 Oct 2023, 19:16 Thanks TrueBlue... :worship:
is it possible insert that instructions sequence at the end of download page of every UU9 new version where you also explain how to install vray_ts.rsx?
If so it would be useful for all new downloaders...:mrgreen:
Once you found the toolbar and you tried to open the Import FBX, did you find the process intuitive?
If you installed Vray, there is a VRay ReadMe.rtf file in the trueSpace main directory that explains how to Install and Load the plugin
FBX_2 for trueSpace7.61
http://clintons3d.com/plugins/truespace ... inout.html
Look for the video link:
A sample video on how to install an rsx plugin for truespace can be found here. The video is for installing the Indigo Renderer, but it uses a similar rsx plugin.
User avatar
the_ant
Chief Petty Officer
Posts: 155
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: trueSpace 7.61 Unofficial Update Patches

Post by the_ant »

Hi TrueBlue

in my previous 761Std installation i loaded Clinton's plugins and Vray_ts.rsx together so when opened the imp/exp Clinton toolbar had no message

Now in last new installation with your last upgrade had the messages with instructions as you tell.

Thanks again and excuse me for the useless question. :oops: :mrgreen:
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

the_ant wrote: 26 Oct 2023, 20:22 Hi TrueBlue

in my previous 761Std installation i loaded Clinton's plugins and Vray_ts.rsx together so when opened the imp/exp Clinton toolbar had no message

Now in last new installation with your last upgrade had the messages with instructions as you tell.

Thanks again and excuse me for the useless question. :oops: :mrgreen:
This is why, I recommend in the instructions to Uninstall and Reinstall trueSpace to a clean directory before running UU9
Your questions are not useless! :)
Importing and Exporting is not for everyone, which is why I implemented Clinton's Import and Export plugins as Optional
This way, a user can Unload (Not Uninstall) these plugin(s) when not in use, which helps lower trueSpace Resources, Start, and Shutdown times!
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

3D Unencapsulate gave error while using on an older scene. Problem was using an invalid value from the LinkedOutputNode command

before

Code: Select all

	//gather list of child nodes, nodes connected to the transform WldMatrix connector
	var children = [];
	for(var i = 0; i < numLinkedChildren; i++) {
		var child = Node.LinkedOutputNode(theTransform, "WldMatrix", i)
		children.push(child);
	}
after

Code: Select all

	//gather list of child nodes, nodes connected to the transform WldMatrix connector
	var children = [];
	for(var i = 0; i < numLinkedChildren; i++) {
		var child = Node.LinkedOutputNode(theTransform, "WldMatrix", i)
		if(child && Node.Exists(child)) {
			children.push(child);
		}
	}
Attachments
3D Unencapsulate.RsObj
(19.88 KiB) Downloaded 130 times
3D Unencapsulate LE.RsObj
(19.86 KiB) Downloaded 141 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Zoom to Selections

Zoom to Selection part can zoom to joints, bones, ik handles and ik locks.
Replace the node inside "Widgets/WidgetScripts"
Attachments
Zoom to Selections.RsObj
(80 KiB) Downloaded 149 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Object Nav Docking
ObjNavDocking.jpg
ObjNavDocking.jpg (35.19 KiB) Viewed 3297 times
Replacement object navigation docking controls.

Switch button will cycle the docking position of the widget among "Left down corner", "Nearest corner", "Nearest silhouette corner", "Anchor origin" and "BBox center"

Setup:

"CycleObjectNavigationWidget" replaces /Widgets/WidgetScripts/CycleObjectNavigationWidget

"ObjectNavigationWidgets" (no spaces) replaces Widgets/WidgetScripts/ObjectNavigationWidgets

"Object Navigation Widgets" replaces /Widgets/Select/Object Navigation Widgets
Attachments
CycleObjectNavigationWidget0b8c.RsObj
(12.72 KiB) Downloaded 130 times
Object Navigation Widgets32a1.RsObj
(116.92 KiB) Downloaded 138 times
Last edited by clintonman on 21 Nov 2023, 15:28, edited 1 time in total.
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 20 Nov 2023, 22:15 Object Nav Docking

ObjNavDocking.jpg

Replacement object navigation docking controls.

Switch button will cycle the docking position of the widget among "Left down corner", "Nearest corner", "Nearest silhouette corner", "Anchor origin" and "BBox center"

Setup:

"CycleObjectNavigationWidget" replaces /Widgets/WidgetScripts/CycleObjectNavigationWidget

"ObjectNavigationWidgets" (no spaces) replaces Widgets/WidgetScripts/ObjectNavigationWidgets

"Object Navigation Widgets" replaces /Widgets/Select/Object Navigation Widgets
What about the missing Docking - Bounding Box Center?
Docking - Bounding Box Center is missing.png
Edit: Never mind, I see it now
Nice! :bananathumb:
Thank you!
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 20 Nov 2023, 22:31
clintonman wrote: 20 Nov 2023, 22:15 Object Nav Docking

ObjNavDocking.jpg

Replacement object navigation docking controls.

Switch button will cycle the docking position of the widget among "Left down corner", "Nearest corner", "Nearest silhouette corner", "Anchor origin" and "BBox center"

Setup:

"CycleObjectNavigationWidget" replaces /Widgets/WidgetScripts/CycleObjectNavigationWidget

"ObjectNavigationWidgets" (no spaces) replaces Widgets/WidgetScripts/ObjectNavigationWidgets

"Object Navigation Widgets" replaces /Widgets/Select/Object Navigation Widgets
What about the missing Docking - Bounding Box Center?
Docking - Bounding Box Center is missing.png
"BBox center" is the Bounding Box Center
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

Edit: Never mind, I see it now
Nice! :bananathumb:
Thank you!

Cross post
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

MeshOrigin
MeshOriginPanelMoveButton.jpg

Moved the Snap Point Widget down to the related "Origin to Set Point" section. If you end by RClick, it sets the snap point and the "Origin to Set Point" button is the next step. The button could also go just above the dividing line since it can also Ctrl + RClick to do the snap immediately.
Snap Point Widget will set the XYZ value display.

Replace /Scripts/CustomCommands/MeshOrigin
Attachments
MeshOrigin.RsObj
(148.02 KiB) Downloaded 153 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Remove Orphan Materials

Works properly with scene instanced materials
Removes unused scene materials
Fixes issue, steps below:

create object with 3 different colors
point edit select the last 2 color faces and separate them out from the mesh
remove orphans

result is the first material will turn white or if scene instancing is used the object navigation widget will disappear along with part of the 2 color object

replace "Fix Orphan Materials" inside of /Material Editor/Material Editor/D3D Material Converter/Fix Orphan Materials

Requires Clintons3dPlugin.rsx v1638445 (Oct 13 2023) or greater
Attachments
Fix Orphan Materials.RsObj
(17.46 KiB) Downloaded 149 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 20 Nov 2023, 22:15 Object Nav Docking

ObjNavDocking.jpg

Replacement object navigation docking controls.

Switch button will cycle the docking position of the widget among "Left down corner", "Nearest corner", "Nearest silhouette corner", "Anchor origin" and "BBox center"

Setup:

"CycleObjectNavigationWidget" replaces /Widgets/WidgetScripts/CycleObjectNavigationWidget

"ObjectNavigationWidgets" (no spaces) replaces Widgets/WidgetScripts/ObjectNavigationWidgets

"Object Navigation Widgets" replaces /Widgets/Select/Object Navigation Widgets
UGH, just noticed you changed the ONW XYZ colors
Attachments
ONW trueSpace XYZ Colors.png
ONW trueSpace XYZ Colors.png (24.44 KiB) Viewed 3293 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 21 Nov 2023, 12:32
clintonman wrote: 20 Nov 2023, 22:15 Object Nav Docking

ObjNavDocking.jpg

Replacement object navigation docking controls.

Switch button will cycle the docking position of the widget among "Left down corner", "Nearest corner", "Nearest silhouette corner", "Anchor origin" and "BBox center"

Setup:

"CycleObjectNavigationWidget" replaces /Widgets/WidgetScripts/CycleObjectNavigationWidget

"ObjectNavigationWidgets" (no spaces) replaces Widgets/WidgetScripts/ObjectNavigationWidgets

"Object Navigation Widgets" replaces /Widgets/Select/Object Navigation Widgets
UGH, just noticed you changed the ONW XYZ colors
Oops. :oops: I'll upload a replacement.

No new upload was needed. Skip the replacement of the "ObjectNavigationWidgets" (no spaces) replaces Widgets/WidgetScripts/ObjectNavigationWidgets. I also removed that attachment from the post.

new steps are

"CycleObjectNavigationWidget" replaces /Widgets/WidgetScripts/CycleObjectNavigationWidget

"Object Navigation Widgets" replaces /Widgets/Select/Object Navigation Widgets
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 21 Nov 2023, 06:03 Remove Orphan Materials

Works properly with scene instanced materials
Removes unused scene materials
Fixes issue, steps below:

create object with 3 different colors
point edit select the last 2 color faces and separate them out from the mesh
remove orphans

result is the first material will turn white or if scene instancing is used the object navigation widget will disappear along with part of the 2 color object

replace "Fix Orphan Materials" inside of /Material Editor/Material Editor/D3D Material Converter/Fix Orphan Materials

Requires Clintons3dPlugin.rsx v1638445 (Oct 13 2023) or greater
This does not seem to work when the Materials node does not exist
Steps
Add Cube and Scene Instance
Delete the Materials node
Cube turns White
Run the Fix Orphan Materials script
Alert: "No orphaned Materials found in this scene"
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 21 Nov 2023, 18:44
clintonman wrote: 21 Nov 2023, 06:03 Remove Orphan Materials

Works properly with scene instanced materials
Removes unused scene materials
Fixes issue, steps below:

create object with 3 different colors
point edit select the last 2 color faces and separate them out from the mesh
remove orphans

result is the first material will turn white or if scene instancing is used the object navigation widget will disappear along with part of the 2 color object

replace "Fix Orphan Materials" inside of /Material Editor/Material Editor/D3D Material Converter/Fix Orphan Materials

Requires Clintons3dPlugin.rsx v1638445 (Oct 13 2023) or greater
This does not seem to work when the Materials node does not exist
Steps
Add Cube and Scene Instance
Delete the Materials node
Cube turns White
Run the Fix Orphan Materials script
Alert: "No orphaned Materials found in this scene"
That's the opposite of what it does. If an unused material, an orphan, exists it removes it. It doesn't add or create missing materials.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

UUFunctionSet Copy and Delete

This is a combination rsx plugin and script update that allows running the original trueSpace copy and delete without using script buffers.
The plugin has new commands added:
GetNodeValueInt will work like Node.Value for integers, but it will work inside toolbar buttons and function sets
GetNodeValueFloat for number values is the same - works in toolbar buttons and function sets
GetnodeValueString for text values will also read color values as text and matrix values as text

The GetNodeValueInt is used inside the UUFunctionSet to make running old style Copy and Delete. This was the motivation for these changes. I was following a tutorial and needed to record a macro using the copy, but it didn't record properly because the copy was run via a script buffer which is the only way to read node values in a functions set. The plugin function can be run inside the function set directly and so it can run the Delete directly. And this is compatible with the macro recorder.

The new required rsx plugin can be found here:
http://clintons3d.com/plugins/truespace ... index.html

new UUFunctionSet node with Copy and Delete changes is attached
Attachments
UUFunctionSet5808.RsObj
(68.17 KiB) Downloaded 135 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Material Converter
MaterialConverterUIchange.jpg

ui change:
label "D3D Compiled -> D3D Shader" changed to "D3D Base -> D3D Compound"
see manual chapter 2, section 2.8.4 Creating and Editing objects in the Link Editor

bug:

create cube with default material
material converter
D3D Compiled -> D3D Shader
D3D Material -> Instancing
error line 18 SetActiveMaterial

problem is Name value is null not ""
no node to set default value so needed a try catch when reading the name
Attachments
D3D Material Converter.RsObj
(800.18 KiB) Downloaded 105 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

This has gone through some changes and has not been released yet
Can you add your updates to this one?
D3D Material Converter.png
D3D Material Converter.png (8.83 KiB) Viewed 2951 times
There is a new Scene aspect too

Not so sure about the label change
If you read Chapter 5, they use Shaders through out the document
Not seeing Compound
Attachments
D3D Material Converter44cb.RsObj
(813.61 KiB) Downloaded 134 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Changes added
Attachments
D3D Material Converter8776.RsObj
(813.93 KiB) Downloaded 157 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

clintonman wrote: 31 Oct 2023, 03:15 3D Unencapsulate gave error while using on an older scene. Problem was using an invalid value from the LinkedOutputNode command

before

Code: Select all

	//gather list of child nodes, nodes connected to the transform WldMatrix connector
	var children = [];
	for(var i = 0; i < numLinkedChildren; i++) {
		var child = Node.LinkedOutputNode(theTransform, "WldMatrix", i)
		children.push(child);
	}
after

Code: Select all

	//gather list of child nodes, nodes connected to the transform WldMatrix connector
	var children = [];
	for(var i = 0; i < numLinkedChildren; i++) {
		var child = Node.LinkedOutputNode(theTransform, "WldMatrix", i)
		if(child && Node.Exists(child)) {
			children.push(child);
		}
	}
Found another bug in the 3D Unencapsulate scripts

around line 117 it will add 3d groups to the delete list. so if you have nested 3D groups they will get deleted

Code: Select all

		//if transform node and is parent
		//if(Node.ConExists(newNode, "WldMatrix") && Node.LinkedOutputNodeCount(newNode, "WldMatrix") > 0) {
		if(Node.ConExists(newNode, "WldMatrix") && Node.LinkedOutputNodeCount(newNode, "WldMatrix") > 0 && Node.SubObjectCount(newNode) == 0) {
			deleteMeList.push(newNode);
			continue;
		}
replace the nodes inside "/Scripts/UUCommands/Encapsulate"
Attachments
3D Unencapsulate1b4d.RsObj
(20.19 KiB) Downloaded 98 times
3D Unencapsulate LE941c.RsObj
(20.15 KiB) Downloaded 107 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 20 Dec 2023, 22:36
clintonman wrote: 31 Oct 2023, 03:15 3D Unencapsulate gave error while using on an older scene. Problem was using an invalid value from the LinkedOutputNode command

before

Code: Select all

	//gather list of child nodes, nodes connected to the transform WldMatrix connector
	var children = [];
	for(var i = 0; i < numLinkedChildren; i++) {
		var child = Node.LinkedOutputNode(theTransform, "WldMatrix", i)
		children.push(child);
	}
after

Code: Select all

	//gather list of child nodes, nodes connected to the transform WldMatrix connector
	var children = [];
	for(var i = 0; i < numLinkedChildren; i++) {
		var child = Node.LinkedOutputNode(theTransform, "WldMatrix", i)
		if(child && Node.Exists(child)) {
			children.push(child);
		}
	}
Found another bug in the 3D Unencapsulate scripts

around line 117 it will add 3d groups to the delete list. so if you have nested 3D groups they will get deleted

Code: Select all

		//if transform node and is parent
		//if(Node.ConExists(newNode, "WldMatrix") && Node.LinkedOutputNodeCount(newNode, "WldMatrix") > 0) {
		if(Node.ConExists(newNode, "WldMatrix") && Node.LinkedOutputNodeCount(newNode, "WldMatrix") > 0 && Node.SubObjectCount(newNode) == 0) {
			deleteMeList.push(newNode);
			continue;
		}
replace the nodes inside "/Scripts/UUCommands/Encapsulate"
Where in these scripts can you add the following:
Space.RemEulerTrans(str)

Objects like the following will throw an error:
ERR Source object: /Scripts/UUCommands/Encapsulate/3D Unencapsulate LE Error: Microsoft JScript runtime error Description: Invalid procedure call or argument Error code: 0x800a0005 - (null) Line: 206, Char: 3 Script text: childMatrix = Node.Value(currentChild, "Matrix");
Attachments
3D Group.RsObj
(235.5 KiB) Downloaded 126 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Code: Select all

		if(isaNURBS(currentChild)) {
			childMatrix = Node.Value(currentChild + "/controlPointMesh", "Matrix");
		} else {
			if(!Node.ConExists(currentChild, "Matrix")) {
				Space.RemEulerTrans(currentChild);
			}
			childMatrix = Node.Value(currentChild, "Matrix");//add 3 lines above this one
		}
fix it just before the error line
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

That area looks like it is for NURBS

How about line 18?
3D Unencapsulate

Code: Select all

	for (var i = 0; i < numSelected; i++)
	{
		var currentEncapsed = Node.SelectionGetAt(sel, i);
Space.RemEulerTrans(currentEncapsed)
		if(Node.IsCamera(currentEncapsed)) continue;
		if(Node.IsLight(currentEncapsed)) continue;
		if(Node.SubObjectCount(currentEncapsed) == 0) continue;
		if(Node.IsRenderable(currentEncapsed)) continue;
		if(isaNURBS(currentEncapsed)) continue;

		CleanRenderAttr(currentEncapsed)
		UnEncaps(currentEncapsed);
		unencapsHappened = true;
	}
Not having much luck adding it to the other encaps scripts except the 3D Unencapsulate LE which is the same as above
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

Current UU 10
Not sure why, I have 3 objects that are 3D Grouped
I applied Hair to one of the objects
I select the 3D Group, use Zoom to Selection, and get an error
I select the object with Hair, use Zoom to Selection, and get an error

Code: Select all

ERR   Source object: /Widgets/WidgetScripts/Zoom to Selections/ZoomToSelection Error: Microsoft JScript runtime error Description: Type mismatch Error code: 0x800a000d - (null) Line: 571, Char: 2 Script text:  objloc.x = objloc.x + tempvec.x ;    
Here is the scene:
Attachments
3D Group with Hair.RsScn
(1.53 MiB) Downloaded 46 times
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Here is the fix for Zoom to Selection and Zoom to All when hair has too many vertices for the GetCenter command to work(tS bug).
It was fixed by using the bounding box to calculate the center when the GetCenter command fails.
Attachments
Zoom to Selections8791.RsObj
(81.12 KiB) Downloaded 47 times
Clinton Reese

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

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 03 Jul 2024, 03:32 Here is the fix for Zoom to Selection and Zoom to All when hair has too many vertices for the GetCenter command to work(tS bug).
It was fixed by using the bounding box to calculate the center when the GetCenter command fails.
Works great, thank you! :bananathumb:

Return to “General Discussion”