Linking object to another object in trueSpace

User avatar
MikomDude
Captain
Posts: 1697
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: London, UK
Contact:

Linking object to another object in trueSpace

Post by MikomDude » 20 Sep 2019, 15:06

I'm sure this is quite an easy one for all you trueSpace scripters out there but I'm not very knowledgable when it comes to trueSpaces non-modeling features so I was wondering two things:

1, how do I link an object to another objects transformation so it sticks and moves along with that object without rotation?

2, how do I link one object to adopt only the rotation of another object? but leaving its position unchanged?

If I could, I'd create some sort of object-linking tool where I could set an objects x,y,z position and x,y,z rotation all separately by simply selecting the object I want to link to from a drop-down list of all the objects in the scene.

Kind of like:

Rotation:
[x] = [object_02<]
[y] = [none]
[z] = [none]

Position:
[x] = [object_01<]
[y] = [object_01<]
[z] = [object_01<]

Perhaps something along these lines is already in the program. I just don't know about it.

clintonman
Captain
Posts: 2739
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Linking object to another object in trueSpace

Post by clintonman » 20 Sep 2019, 16:41

You can have a look at these old scripts:

http://clintons3d.com/truespace/truespa ... raints.htm
Clinton Reese

http://clintons3d.com

User avatar
MikomDude
Captain
Posts: 1697
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: London, UK
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude » 20 Sep 2019, 16:52

Wow, from the pictures on your website that looks pretty much exactly like what I was looking for! I'll give it a try! Thanks! :bananathumb: :bananacheers:

User avatar
MikomDude
Captain
Posts: 1697
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: London, UK
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude » 20 Sep 2019, 17:09

Loving the script so far! Is it possible to add the script to a button? and maybe have piece of text in the properties of a constrained object that tells you which objects it is constained to?

clintonman
Captain
Posts: 2739
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Linking object to another object in trueSpace

Post by clintonman » 20 Sep 2019, 18:14

I'm sure all sorts of improvements are possible, but it would be extremely low priority on my todo list. The last change was way back in 2008.
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 1980
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Linking object to another object in trueSpace

Post by trueBlue » 20 Sep 2019, 18:34

If Clinton does not mind, I'll try to incorporate them into the Unofficial Update!
Because those are some very awesome tools! :worship:

clintonman
Captain
Posts: 2739
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Linking object to another object in trueSpace

Post by clintonman » 20 Sep 2019, 19:43

Don't be silly, of course I don't mind. :P
Clinton Reese

http://clintons3d.com

User avatar
MikomDude
Captain
Posts: 1697
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: London, UK
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude » 20 Sep 2019, 20:10

Would be awesome to see this further developed, maybe with a point-object rotation in direction of linked object kind of function!

I was trying to use the script for animating this turret:

Image

User avatar
trueBlue
Captain
Posts: 1980
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Linking object to another object in trueSpace

Post by trueBlue » 20 Sep 2019, 20:21

Maybe this thread will help. Lots of Link Editor help with objects.
viewtopic.php?f=26&t=425&p=3234#p3231

User avatar
MikomDude
Captain
Posts: 1697
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: London, UK
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude » 20 Sep 2019, 20:39

Oh yeah! I remember that! Although I can't find any links in this thread with how he actually got all that to work. He said it was simple... everything is simple once you know and understand it. haha

I miss Prodigy.

Post Reply