Scriptors! Lend me your skills!

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.

Scriptors! Lend me your skills! // Roundtable

1  |  

Post by Weevil // Jun 12, 2007, 6:42am

Weevil
Total Posts: 534
pic
Name says it all, HELP!

What I'm trying to do is thus:

1) A race, but I'm to naff, (and lazy) to animate it myself

is there a way to python script me controlling each car as if it were a game and it setting the keyframes


2) same principle but with a free roam flying with enemies

think f-zero and starfox...... cos it is.

Can anyone help with the scripting? (if at all possible)

So essentially, I need a rework of a game so it records what happens enabling me to render it afterwards. Please note, I have only touched ontimestarted/ticks/stopped and moving/rotating objects by themselves.

Any takers?.....

Post by jayr // Jun 12, 2007, 6:49am

jayr
Total Posts: 1074
pic
What version of ts are you using? i thought you could do something like this with paths, would be easier than scripting i think.

Post by Weevil // Jun 13, 2007, 12:07am

Weevil
Total Posts: 534
pic
6.6, but I've already tried pathing and I had serious troubles, granted it was a few months ago...

Post by ProfessorKhaos // Jun 13, 2007, 3:43am

ProfessorKhaos
Total Posts: 622
pic
Here's a link to the old forums about script I made back in 2003. It creates a roller coaster track by reading data from a file and can animate an object to move along it.


It makes use of mesher addon for python by Lars at Quantum Chaemeaeleon (same place responsible for tSNet plugin). The code responsible for for animating objects doesn't require mesher though.


Forum link with example animations, etc...


http://forums.caligari.com/discus/messages/1585/10466.html?1062223989


The latest version of the script could be found here:


http://forums.caligari.com/discus/messages/1585/trakmaker_1_3d.zip


Example animations (save and rename extension from .unk to .avi):


http://forums.caligari.com/discus/messages/1585/trakmaker_v13_edited_avi.unk

http://forums.caligari.com/discus/messages/1585/t6ac_avi.unk


Hope this helps!


Glen


P.S. Now that I understand mesh creation in tS7.5 via the LE I may duplicate this script with the new completely native capabilities.

Post by ProfessorKhaos // Jun 13, 2007, 3:59am

ProfessorKhaos
Total Posts: 622
pic
Just a note... you could use the script directly and it would create a track and animate an object. Once the object is keyframed, you could just delete the track itself and the object would fly around the scene. The track has provisions included to set a particular object speed for a given track section so you wouldn't have to rely on the gravity simulation aspect of it if you didn't want to. In short, I think you'd be able to make direct use of it.

Post by 3dvisuals dude // Jun 13, 2007, 12:24pm

3dvisuals dude
Total Posts: 1703
pic
Just a note... you could use the script directly and it would create a track and animate an object. Once the object is keyframed, you could just delete the track itself and the object would fly around the scene. The track has provisions included to set a particular object speed for a given track section so you wouldn't have to rely on the gravity simulation aspect of it if you didn't want to. In short, I think you'd be able to make direct use of it.

Wow!!!!!!!

This is an amazing thing you created here ProfessorKhaos!

Man, I can't keep up at all with all the awesome new things that are showing up lately in these forums and now this!!!!

I have been hoping for two months now that there was a way to create a working multi-avatar monorail or flying vehicle for use in Commercial Shared Spaces when I (along with others) invest in trueServe sometime later this year, and now with a new FPN Script Trigger created last night by trueBlue (in the Open Elevator Project here at the Interactive Artwork forum) which enables us all to activate scripts while inside First Person Navigation - combined with what you have already created in your Rollercoaster / Animation Path Script this is now looking extremely possible! Heck, you could even use it to create flight paths for flying vehicles since as you say the track can be removed after keyframing but the path and animation remain intact!

Wow.... these are amazing days we are living in with trueSpace!!! :D

Amazing work ProfessorKhaos... Thank you! This is groundbreaking stuff for all of us and has huge potential!!!

Thanks to Weevil also for starting this thread - very cool stuff in here!

- 3dvisuals dude

Post by Weevil // Jun 14, 2007, 1:51am

Weevil
Total Posts: 534
pic
ahaaa! Now that is something I was looking for, thanks for that!
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