LE Brick Layer urgently sought

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.

LE Brick Layer urgently sought // Roundtable

1  |  

Post by Igor K Handel // Aug 3, 2008, 9:11am

Igor K Handel
Total Posts: 411
pic
Have just had what feels like a eureka moment. (Assuming someone hasn't already thought of this)


7.6 has added some fantistic new capabilities, and I have just thought of a very useful tool that would require the automating of a combination of some of these tools. The final result should become a mainstay must have ability for anyone interested in Character animation within TS.


I am just not up to speed on the LE so I can put forward the concept, and do the real world testing but lack the LE knowledge to get it built.


This project needs someone with knowledge of making user interfaces within LE and the abilty to connect various input information from nodes, process the strands and automatically spit it out to a calculated outcome. The process needs to be initiaited by a user selection within the 3D window. The outcome then needs to be tweakable via a user interface after which the automatic process generates a final outcome in realtime in the 3D window.


LOL that sounds so complicated when the concept is so simple. I just lack the specialised LE knowledge to describe whats needed let alone build it.


Give me a shout if your are interested and we can have a look at the possibilies.


Yours

IK

Post by trueBlue // Aug 3, 2008, 9:22am

trueBlue
Total Posts: 1761
pic
Sounds like a job for the jScript Macro Recorder.
If you can give exact details of what you want, what sounds like having some wires dissconnected and connected to several objects at once, it should be possible.

Post by Igor K Handel // Aug 3, 2008, 9:30am

Igor K Handel
Total Posts: 411
pic
I believe that this is a job for LE.

Too many realtime variables for jscript.


IK

Post by frootee // Aug 3, 2008, 11:19am

frootee
Total Posts: 2667
pic
I believe that this is a job for LE.
Too many realtime variables for jscript.

IK

What trueBlue means, IK, is, use the jscript macro recorder to *Record Your Actions*.

This is how it works, though I will ask that you read the manual about the jscript and vbscript macro recorders.

1. Click and drag the Record Toolbar icon (next to the Shared Space icon).

2. In the icon flyout window, select: Jscript Macro Record Toolbar

3. Press the Record button on the jscript macro record toolbar.

4. Do what you think you need to do, in 3D space and the LE.
Your actions are recorded in both 3D Space, and in the LE. So whatever you do in the LE, gets recorded as well.

5. When done, click the Stop button on the jscript macro record toolbar.

6. Your actions in 3D space have now been recorded. Open the LE.

7. In the LE, you will now see a new node: Recorded Macro, 1.

8. Look inside that node. You will see the jscript commands that have been created as a result of your 3D space actions.

Here's a quick sample. This is the code inside the recorded macro in the LE. I selected a cube, moved it around, rotated it, and added a couple jscript command nodes in the LE, then attached their Control connectors.

function Execute(params)
{
// Macro captured 08/03/08 17:17:41

Node.Select(Space.CurrentScene() + "/Cube")
Widgets.Rotate(Space.CurrentScene() + "/Cube",0.000,-0.000,51.542,0.758,3.629,0.000);
Widgets.Move(Space.CurrentScene() + "/Cube",-3.936,-3.296,0.000);
Widgets.Move(Space.CurrentScene() + "/Cube",-0.000,0.000,3.470);
Widgets.Move(Space.CurrentScene() + "/Cube",-0.000,0.000,1.008);
name10_ = LE.InsertNodeAt('/Project/Windows Manager Space/Frame Window, 1/LE2Node', 'D:\\trueSpace76\\tS\\RS Main Libraries\\System - Scripts\\jScript command.RsObj', 821, 345);
Widgets.DeactivateDefaultWidgets();
name12_ = LE.InsertNodeAt('/Project/Windows Manager Space/Frame Window, 1/LE2Node', 'D:\\trueSpace76\\tS\\RS Main Libraries\\System - Scripts\\jScript command.RsObj', 948, 565);
Widgets.DeactivateDefaultWidgets();
Widgets.DeactivateDefaultWidgets();
Node.ConnectTo(name10_, " Control Out", name12_, " Control In")
}

Post by Igor K Handel // Aug 4, 2008, 6:22am

Igor K Handel
Total Posts: 411
pic
Cheers for that Frootee.


I would eat my hat if this is doable with a recorder or completely in macros of any kind..


Heres why..


Some years ago I was 1 of 10 supervisors for an international blue chip French company operating a site of some 2000 employees here in Britain. This manufacturing company was right up there in forward thinking, training and modern business practices.


As a supervisor a small part of my staff was a contingent of 6 engineers/computer heads. They looked after the automation of some £30million of robots in the area I supervised. I couldn't do their jobs, I couldn't hope to even sniff the huge wealth of technical knowledge these guys had. But as a supervisor the overall responsibilty for the department's output stopped entirely with me. I was responsible for any technical blunders that might be based on the "Engineer/Robot tech heads" answers to problems I presented them with. That's what I was paid to do.


As a supervisor part of my job was to ask the right questions, to probe and assess those answers, to know just enough to understand the fundamental concepts of the "tools" they used, turning their jargon into real world solutions that I could actually use. The company was extremely proactive in pushing the boundries of the accepted norm, to innovate etc. It was a very rewarding job for all of us. But if as a team any of us got it wrong there was the added incentive that it would cost the Company half a million pounds every day in lost turnover, whilst the technical heads revisited the intial scenario under severe pressure and major league stress all round and I got to be involved in a meeting with "the board" and write justification reports lol.


Mutual trust was the name of the game. High pressure but a very fun job :) The "Engineers" used macros extensively. I never needed to use a macro once, lol they did all that.. but I asked the right questions :p...take my word for it this is going to take more than recording some macros.. I promise


Sorry to bore the pants off ya :D


IK

Post by frootee // Aug 4, 2008, 6:56am

frootee
Total Posts: 2667
pic
Hi Igor. I did not mean, necessarily, that this could be done purely with the jscript macro recorder.


Rather, I mean, your idea can be fleshed out by using the macro recorder.


Typically, if something needs to be done automatically, it can also be done Manually first (using the macro recorder), to 'flesh out' the process. You start the recorder, then perform the steps by hand. When done, you stop the recorder, and look at the script that was generated.


That is the starting point, from which you expand upon, to automate the process. The commands required for the automated process have been recorded into the script, by way of the macro recorder.

Post by Igor K Handel // Aug 4, 2008, 7:21am

Igor K Handel
Total Posts: 411
pic
See Pm frootee


Cheers

IK

Post by trueBlue // Aug 4, 2008, 7:24am

trueBlue
Total Posts: 1761
pic
LOL that sounds so complicated when the concept is so simple. I just lack the specialised LE knowledge to describe whats needed let alone build it.

Give me a shout if your are interested and we can have a look at the possibilies.

Yours
IK

I am listening. Perhaps some images would help. We are exposed to most tS7.6 commands by way of scripting. If you are wanting anything more then that it might require the not released tS7.6 SDK and a plug in would have to be created.

Post by Igor K Handel // Aug 4, 2008, 7:29am

Igor K Handel
Total Posts: 411
pic
Hang in there I just had another brainwave...


Phew Need to lie down thats two in a week,, getting too old for this brain stuff


Will keep ya posted when I firm up my concept.... you will like it!


IK:banana:
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