Linking object to another object in trueSpace

User avatar
MikomDude
Captain
Posts: 1928
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: The Hague, Netherlands
Contact:

Linking object to another object in trueSpace

Post by MikomDude »

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.
User avatar
clintonman
Captain
Posts: 5422
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 »

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: 1928
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: The Hague, Netherlands
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude »

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: 1928
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: The Hague, Netherlands
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude »

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?
User avatar
clintonman
Captain
Posts: 5422
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 »

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: 5208
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 »

If Clinton does not mind, I'll try to incorporate them into the Unofficial Update!
Because those are some very awesome tools! :worship:
User avatar
clintonman
Captain
Posts: 5422
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 »

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

http://clintons3d.com
User avatar
MikomDude
Captain
Posts: 1928
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: The Hague, Netherlands
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude »

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: 5208
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 »

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: 1928
Joined: 04 Oct 2010, 11:12
Type the number ten into the box: 0
Location: The Hague, Netherlands
Contact:

Re: Linking object to another object in trueSpace

Post by MikomDude »

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