Set Player - Point Edit Widget to Screen Docking

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.

Set Player - Point Edit Widget to Screen Docking // The Garage

1  |  

Post by trueBlue // Nov 29, 2006, 10:59am

trueBlue
Total Posts: 1761
pic
Set Player - Point Edit Widget to Screen Docking

This script will change the Point Edit Widget to Screen Docking. This makes the widget always show in the same position. I set it to be at the bottom of the screen and in the middle. After you run this script you can open the Objects in the Stack view and change the values to position the widget where you would like it to be. Offset X will move it left or right and Offset Y will move it up or down. If you change the Always visible to = 0 it will never show. You can Activate or Deactivate it. See picture below for an example.

Follow the recommended procedures for saving layouts, state and configurations in with regards to Widgets.

Post by Délé // Nov 29, 2006, 8:44pm

Délé
Total Posts: 1374
pic
Thanks, that looks cool trueBlue! Nice work! :) :banana:


I've always wondered if things would be easier if the object and point edit widgets were more like an interface thing rather then in 3d. I'm a little hesitant to try this though as I wouldn't know how to get it back if it turned out I didn't like it. Though I suppose I could backtrack and figure out what you did, which I should do anyway. :)


I think this might work really well with a 2d style widget. Something like the proposed widget from Oliver Röhe that Splinters mentioned a while back (posted here (http://forums1.caligari.com/truespace/showthread.php?t=283&highlight=widget)). Although I'm not sure about his exact design. I think something similar to it in 2d style would be cool though. I might have to take a deeper look into how widgets are made.

Post by trueBlue // Nov 29, 2006, 9:52pm

trueBlue
Total Posts: 1761
pic
Your welcome Dele!
Infact you are the one that inspired me to make this. I read your post where in you would like a 2D widget and so this is what I came up with. It is my thoughts that it does not matter if it is 3D or 2D because they are both just models created in trueSpace. I need to find a solution to make the widget stay at the same angle when moving around in 3D Space. Not sure what to do about that. I agree that it would be nice if there was an UI for all the widgets. Something that I was thinking about doing but there is to much I do not understand with regards to the widgets and thier components. I was thinking about making an undo for this script as well and I think I will and update as soon as I can. Right now as it is, if you decided that you did not like it, all you would have to do is Reset the default context and it would restore it the way that it was before. The only way to make your widgets permanent is to overwrite the widgets.rsobj file. Look here for a script that will do this for you: http://forums1.caligari.com/truespace/showpost.php?p=18182&postcount=4 (http://forums1.caligari.com/truespace/showpost.php?p=18182&postcount=4)
What I did here was record what I was doing with the Macro recorder. Then I edited parts of the code. I added extra functions to allow the script to be ran over and over again making sure that there was no duplication happening. The only reason that the panel shows in the Objects view is because I selected that panel purposely so that a user could adjust where they would like to place the widget. After you start another scene that panel will dissappear unless you select it again and or run the script again. At the end of the script is where I opened the Objects view.

Edit: Updated the script to include Deactivate which will undo changes made.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn