Page 10 of 121

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 06:09
by clintonman
From last beta 5 std

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 06:21
by trueBlue
Nope that is the Standalone version I need the full version that you downloaded this morning.

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 06:25
by clintonman
trueBlue wrote: 31 Aug 2019, 06:00 ...
From the one you installed to c:\trueSpace761Std_VirginX this morning.
...
That one from this morning was the std. I'll see if I can find anything for the full version

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 06:27
by trueBlue
Oh right. I should read my own words. :oops:
I looked in the other thread, the last update was Sat Aug 17, 2019 10:56 am

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 06:49
by clintonman
No Lights.RsObj except the very last one or from an early b5. Cross your fingers and try this. Last chance. From the recycle bin. Downloaded on the 26th I think.

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 07:00
by clintonman
Some good news, I think I found a solution to the widgets closing when entering point edit mode. When widgets are added they can be overridden by other widgets in the same group.
The Widgets.ToggleWidget has a group parameter and if cube widget group is unique and vertex snap group is unique they don't close each other or get closed by the built in widgets.

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 07:12
by trueBlue
clintonman wrote: 31 Aug 2019, 06:49 No Lights.RsObj except the very last one or from an early b5. Cross your fingers and try this. Last chance. From the recycle bin. Downloaded on the 26th I think.
You are the Bomb!
Thank you!
Uploaded the change in the other thread. :roll:
BURN that last update to the ground!!!

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 07:13
by trueBlue
clintonman wrote: 31 Aug 2019, 07:00 Some good news, I think I found a solution to the widgets closing when entering point edit mode. When widgets are added they can be overridden by other widgets in the same group.
The Widgets.ToggleWidget has a group parameter and if cube widget group is unique and vertex snap group is unique they don't close each other or get closed by the built in widgets.
Glad you got it sorted.
From the reset.js

Code: Select all

    Widgets.SetWidgetGroupDependency('{5C9008D4-B6B3-4359-9E63-18D2FC228A6E}','{E8913C00-9A2A-43cf-8238-27B4BFB50A1F}');
    Widgets.SetWidgetGroupDependency('{5C9008D4-B6B3-4359-9E63-18D2FC228A6E}','{88839603-7F98-41f0-96AC-BE94E801CFF3}');
    Widgets.SetWidgetGroupDependency('{E8913C00-9A2A-43cf-8238-27B4BFB50A1F}','{88839603-7F98-41f0-96AC-BE94E801CFF3}');
And from the Developers Guide:

A widget is activated by the activation command or from a script. Command parameters directly specify widget prototype to activate, the anchor node, and the controlled objects. This type of widget is not au tomatically deactivated. Currently, it is used to activate ViewNav and Background widgets. To activate widgets from a script, write

Code: Select all

 Widgets.ActivateWidget(‘widgetPath’,’Aspect,’Objects’,’Anchor’); 
to command prompt or to script. The meaning of parameters is as follows: • widgetPath specifies position of widget prototype in dependency graph (link editor) • Aspect is name of initial aspect • Objects is object path, for which the widget is being activated, if the object name is empty, current selection is taken. • Anchor is object path that will serve as anchor for widget ActivateWidget script command activates widget to default unmanaged group. If you wish to activate widget into ToolWidget group, use Widgets.ActivateToolWidget(‘widgetpath’,’Aspect’); The meaning of the parameters is similar to above. ActivateToolWidget script command is used to ac tivate background tool widgets from View3D toolbar. ActivateToolWidget does not contain objects and anchor, because this should be updated in runtime by Synchronize widget with selection node. If you create your own background widget, you can use this script command to deactivate old tool from tool group and activate your newly created.
To activate widget into specified group, you can use Widgets.ReplaceWidget(‘groupId’,’widgetPath’,’Aspect’,’Anchor’,’Objec ts’); where meaning of parameters is similar to above. groupId specifies GUID of widget group. Currently, there are three widget groups defined.
• Unmanaged, with ID

Code: Select all

{1ED6A591-1DF7-4e2c-9333-41216D589C27} 
• 3D widgets with ID

Code: Select all

 {5C9008D4-B6B3-4359-9E63-18D2FC228A6E} 

• Toolbar tools with ID

Code: Select all

 {88839603-7F98-41f0-96AC-BE94E801CFF3}

You can add as many groups as you wish.

Also this seems really important:

For a material we use D3DMaterial Simple from DX/D3DView Library. We also put Active widget controller into Arrow node. This way we tell the D3D renderer that it should not render shapes inside, but it should treat the node as a widget.

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 07:27
by clintonman
Here's the updated Cube widget button and Vertex snap button each using unique groups via the ToggleWidget method. Solves the problem of default widgets closing them, especially the point edit widget.

Code: Select all

Widgets.ToggleWidget('{43ec2ce1-88d5-9696-84a6-ce04703bc7c0}','/Widgets/Tools/Vertex Snap','Default','','');
Widgets.ToggleWidget('{eb1473db-3c61-f968-e739-d37518cbc263}','/Widgets/Tools/CubeWidget','Default','','');
And the Vertex Snap with the shortcuts node removed to get rid of the error.

Re: Final trueSpace7.61 Beta 8 Std Unofficial Update

Posted: 31 Aug 2019, 13:41
by stan
Here is as version with ESC shortcut working with an empty widget to replace the vertex snap. I have used this method before. If you hookup the shortcut node in the No Snap Widget then it even opens the vertex snap using ESC. Not sure if you use ESC else where though. Basically it leaves the empty widget in Active Widgets Layer2 when not on. See if you like it. Just put both of them in /Widgets/Tools/ .