Link Editor Navigator

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Link Editor Navigator // The Garage

1  2  |  

Post by trueBlue // Dec 4, 2008, 8:46pm

trueBlue
Total Posts: 1761
pic
Okay I found the commands for the Toolbar's Handle Menu, 1D, 2D, and Reset. In this case for my Link Editor Navigator:
//Reset
WindowsManager.SynchronizeCommand( '{6D1772CC-B8FC-4698-B62A-16C4980F3D7F}', 4, '', '')
Note: The WINID is the key here.
When I navigate to Windows Manager Space and look at my LE Navigator Toolbar Frame I can see the WINID which is the one used above in the command. I suppose you should read the WINID and then write it in your script.

//1D Aspect
WindowsManager.SetWindowAspect('/Project/Windows Manager Space/LE Navigator Toolbar Frame', 1)
//2D Aspect
WindowsManager.SetWindowAspect('/Project/Windows Manager Space/LE Navigator Toolbar Frame', 2)

It looks like if you run both of these Aspect commands after adding a button where you want, the toolbar refreshes with the changes.
Very odd in the way it works inside but not at the root.

Additionally:
//Navigates Up one level in Link Editor "This may be Layout dependent"
// Same as Ctrl + MMB
WindowsManager.RunWindowExitScriptWithNewAspect( '/Project/Windows Manager Space/Frame Window/Border Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1/Split Docking Place/Frame Window, 1', 2)

Here is a couple of ideas to find out where you are in the Link Editor.
You could load/create the OwnerName.RsObj from the System - Kernal library and read it's attribute, then delete it.
Or here is a jScript example:

Post by clintonman // Dec 5, 2008, 9:04am

clintonman
Total Posts: 304
pic
Thanks, that did the trick. The reset worked but seemed to cause some strange problem so I ended up using the 1D/2D aspect trick. I tried the ownername trick but it also required that something be selected. If nothing is selected it loads into the scene.


Here is what I ended up with. I added 2 scripts, a new button to the toolbar and changed the toolbar to be vertical. The horizontal toolbar just didn't work well with adding buttons on the fly.


To add a bookmark select a node, push "[addBookmark]" and a new button is added. The button points to the parent node of the selection. To remove a bookmark right click on it.


UPDATED RSOBJ:

Post by trueBlue // Dec 5, 2008, 10:34am

trueBlue
Total Posts: 1761
pic
Nice addition Clinton! You may want to revisit the Install script and delete your scripts first before coping them as it is possible to get duplication by user error. As an example installing twice without uninstalling.

Post by clintonman // Dec 5, 2008, 4:42pm

clintonman
Total Posts: 304
pic
Nice addition Clinton! You may want to revisit the Install script and delete your scripts first before coping them as it is possible to get duplication by user error. As an example installing twice without uninstalling.
Made the change and updated the attachment below. Thanks trueBlue.

Clinton

Post by Steinie // Dec 13, 2008, 2:26pm

Steinie
Total Posts: 3667
pic
Well TB it took me two years to get around to trying this one!:o

I can't believe I didn't try this sooner, works great! Nice to see improvements being made as you see fit. Great job!

It "almost" makes me like the LE. Just don't quote me...

Post by trueBlue // Dec 13, 2008, 9:04pm

trueBlue
Total Posts: 1761
pic
Thanks Steinie! Makes navigating the 2D Link Editor much easier plus you get the added benefit of assigning shortcuts to any of these buttons as well. I recommend at the very least assigning the Unselect button to the Space bar. Some of the buttons run scripts that are installed inside trueSpace which makes it even more powerful. For instance you can select multiple objects and Copy, Delete, Hide, and Show them with a click of a button.
Not sure why some folks dislike the Link Editor. The developers have opened up the inner workings of the trueSpace application so that one could add and modify some of the aspects to suite ones needs. Even novice users without any programing knowledge. But the most powerful aspect of the Link Editor is creating objects and materials. There is unlimited possibilities.

Post by spacekdet // Dec 14, 2008, 8:15am

spacekdet
Total Posts: 1360
pic
Not sure why some folks dislike the Link Editor.


Many people enjoy sausage.
Most don't want to see how it's made.


(Edit: That being said, I still downloaded the tool.
You never know...I might have to make some sausage someday.)

Post by Leif // Dec 30, 2008, 1:57pm

Leif
Total Posts: 276
pic
Thank you!

Post by trueBlue // Jan 15, 2009, 10:42am

trueBlue
Total Posts: 1761
pic
Do to a very talented, old school trueSpacer, sausage maker, and all around nice person, I have updated the Hide and Show scripts in the Link Editor Navigator so that it no longer deselects the current selection. Thanks! :rolleyes:
http://forums1.caligari.com/truespace/showpost.php?p=35795&postcount=11

Post by TheWickedWitchOfTheWeb // Feb 23, 2009, 7:49am

TheWickedWitchOfTheWeb
Total Posts: 858
pic
I'm finding this little app rather useful! I have noticed, however, that when you unglue an item it becomes hidden and you have to go set it to 'show'. No great shakes for one or two items but if you're ungluing a big clump it's a little tedious. Anyway of setting this so they stay shown?

Post by trueBlue // Feb 23, 2009, 8:42am

trueBlue
Total Posts: 1761
pic
Thanks Kate. I just looked at the script that runs when you select Unglue and there is nothing that changes the Object's Render Attributes.
1.) Can you try and Glue three primitives together and then Unglue them to confirm that this is true?
2.) Do you have the most recent Link Editor Navigator?
3.) If you have Clinton's version he may not have upgraded to the most recent version updated on 1/15/2009.
4.) If all of the above still does not work for you can you upload an example RsScn?

Post by TheWickedWitchOfTheWeb // Feb 23, 2009, 1:44pm

TheWickedWitchOfTheWeb
Total Posts: 858
pic
1) Done that, yes it does it.

2) Yes

3) No

4) Attached below.


Thanks for looking into this, much appreciated.


18488

Post by trueBlue // Feb 23, 2009, 1:49pm

trueBlue
Total Posts: 1761
pic
LOL... what is the secret password?
If it is really a secret I suppose you could Pm me with it.

Post by TheWickedWitchOfTheWeb // Feb 23, 2009, 3:01pm

TheWickedWitchOfTheWeb
Total Posts: 858
pic
I did. Did you not get it?

Post by trueBlue // Feb 24, 2009, 2:38am

trueBlue
Total Posts: 1761
pic
Yes I did right after I posted. The problem is what I was suspecting in with which when you Glue a group of objects together and then apply the Object Render Attributes, tS7 adds a RenderAttributes node to all of the sub objects and connects to the Objects Render Attributes node inside the top level. My script for the Hide and Show actually takes care of this. Any way I've updated the Unglue script to accommodate this. Thanks for the suggestion.
You can download it here:
http://forums1.caligari.com/truespace/showpost.php?p=35795&postcount=11

Post by TheWickedWitchOfTheWeb // Feb 24, 2009, 5:35am

TheWickedWitchOfTheWeb
Total Posts: 858
pic
I don't understand a word of what you said but thanks for fixing it! :-)

Post by TheWickedWitchOfTheWeb // Feb 26, 2009, 5:55pm

TheWickedWitchOfTheWeb
Total Posts: 858
pic
One other question - is it possible to 'lock' this toolbar open? I've been using a certain button on it a lot in rapid succession and it'd be a lot easier if I didn't have to keep navigating to it during the course. I fear it may be a victim of the annoying default behaviour but there's no harm in asking!

Post by trueBlue // Feb 26, 2009, 6:15pm

trueBlue
Total Posts: 1761
pic
Not that I am aware of as there is no Maximized toolbars in Workspace. You could Ctrl + Right click and create a shortcut on any of the icons. It is kind of tricky but possible. Start with your LMB held down and move slowly to the button that you want to assign a shortcut to. Now with button select still with the LMB, select the Ctrl key and the RMB, (Assign Shortcut dialog popups) release the Ctrl key and both the LMB and RMB. Now use the Assign Shortcut dialog. If you accidently copy a button just close it and Reset the toolbar.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn