Button Dump to web page

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

Button Dump to web page

Post by clintonman »

ButtonDump1.jpg
This is an update to the button dump script found in the middle of this page:
http://clintons3d.com/plugins/truespace ... index.html

The script will look at the toolbars and shortcuts file and make a web page from it.
The page will be created in a folder called ButtonDump in the main trueSpace folder.
Works in Edge and Firefox, Chrome may have a problem and ie just looks ugly.

ButtonDump2.jpg
Press the command button to see the commands associated with a button.
The green boxes display the code in an easier to read format.
The input box is something I was trying, but it's probably not very useful.

ButtonDump3.jpg
Listing taken directly from the shortcuts file.
Attachments
Button Dump to HTML5.RsObj
(78.15 KiB) Downloaded 188 times
Clinton Reese

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

Re: Button Dump to web page

Post by clintonman »

Finished the final version.
Fixed the Chrome web browser problem. A bug in Chrome limits the number of lines in a grid.
Made a generic shortcut editor for manually changing the shortcuts file
Fixed the "undefined" shortcuts from buttons that didn't have help text

Script can be found middle of the page here under "Dump Buttons and Shortcuts to a Web page":
http://clintons3d.com/plugins/truespace ... index.html

Links for some generated dumps can be found here

Unofficial Patched
http://clintons3d.com/plugins/truespace ... index.html

Vanilla trueSpace 7.61
http://clintons3d.com/plugins/truespace ... index.html

trueSpace 7.11 which includes the modelside buttons
http://clintons3d.com/plugins/truespace ... index.html
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: Button Dump to web page

Post by trueBlue »

Took this for a spin with the Unofficial Update shortcuts.
It is not picking up some of the shortcuts.

Code: Select all

    <RS_ACC KEY="TAB" DESC="Object Navigation Widget On/Off" GROUP="VIEW3D" COMMAND="RsTool.ToggleValue('/Preferences/Desktop/_Widgets_Select_Default object navigation widget');" />
    

Code: Select all

    <RS_WINDOW WINGUID="{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}">
        <RS_ACC KEY="SPACE" GROUP="CLINTONSPOINTEDITTOOLBAR" CONTEXT="PointEdit" DESC="Quad menu - Open Custom Point Edit toolbars" COMMAND="Activity.Run(&quot;Scripts/CustomCommands/QuadMenu/DoIt&quot;)" />
        <RS_BLOCKASSOCIATIONS>
        </RS_BLOCKASSOCIATIONS>
    </RS_WINDOW>
<!-- Object Rotate Num Pad-->
<!-- Object Move Num Pad-->
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Button Dump to web page

Post by clintonman »

trueBlue wrote: 19 Mar 2020, 14:26 Took this for a spin with the Unofficial Update shortcuts.
It is not picking up some of the shortcuts.

Code: Select all

    <RS_ACC KEY="TAB" DESC="Object Navigation Widget On/Off" GROUP="VIEW3D" COMMAND="RsTool.ToggleValue('/Preferences/Desktop/_Widgets_Select_Default object navigation widget');" />
    

Code: Select all

    <RS_WINDOW WINGUID="{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}">
        <RS_ACC KEY="SPACE" GROUP="CLINTONSPOINTEDITTOOLBAR" CONTEXT="PointEdit" DESC="Quad menu - Open Custom Point Edit toolbars" COMMAND="Activity.Run(&quot;Scripts/CustomCommands/QuadMenu/DoIt&quot;)" />
        <RS_BLOCKASSOCIATIONS>
        </RS_BLOCKASSOCIATIONS>
    </RS_WINDOW>
<!-- Object Rotate Num Pad-->
<!-- Object Move Num Pad-->
Yep, it only gets them from the buttons. The other limitation is it can't read the images from most of the built in buttons.
Clinton Reese

http://clintons3d.com
Post Reply