Linking object to another object in trueSpace

User avatar
trueBlue
Captain
Posts: 5213
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 »

clintonman wrote: 20 Sep 2019, 19:43 Don't be silly, of course I don't mind. :P
Here is what I have come up with so far.
No code changes.
Capture.PNG
Capture.PNG (6.36 KiB) Viewed 3007 times
Added:
Short names to the UI.
Floating panel

Dabbled at removing the pWeight con(s) with the UnDoIt with no luck.
Seems that the pWeight(s) can be created endlessly. :!:
Attachments
Constraint.RsObj
(90.2 KiB) Downloaded 176 times
User avatar
clintonman
Captain
Posts: 5428
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 forget, one object can have several constraints assigned to it, so it can have more than one weight.
You can click the pictures in the web page to see videos of the tools in use:
http://clintons3d.com/truespace/truespa ... raints.htm
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5213
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 »

I have it on my Desktop. :mrgreen:
You do not mention anything about the preStore and buttons.
I assume the video was created before the above addition.
User avatar
trueBlue
Captain
Posts: 5213
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 »

:( Sadly, I had to remove your Constraints script from the Unofficial Updates.
This could be a very valuable tool for trueSpace!
Maybe I am not using it correctly.

Currently there is several errors with your current unmodified scripts.

The theNode script called from the Sendit object seems be missing:

Code: Select all

Activity.Run(Space.CurrentScene() + theNode);
pWeights do not seem to work and are not flagged IE: What is? (pWeight, 1) (pWeight, 2) and What do they do?

Cleanup (unDoIt) does not work and there is errors

Constraints
Capture.PNG
Wish List
Auto Popup Floating panel

User Interface
Buttons to select the Controller and Controlled objects and works with Add and Remove.

Constraint panel has the UI exported to the Controlled parent

Controller (constrainor) and Controlled (constrainee) attributes exported to the Constraint panel

pWeights exported to the Constraint panel (Not to the parent panel),
with the chected flags IE: XR, YR, ZR
User avatar
clintonman
Captain
Posts: 5428
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 »

General Constraint script with some fixes.
changes from the 2008 version on my website are
fix - extra matrix connection was being made for each controlling object
removed the exports for the weight connectors and instead exported the entire constraint node. this makes all the values visible in the side panel and connectors don't need to be removed when the constraints are removed
fix - zero value for weight now has no influence when only one controller is applied

Still has the same limitation as the original. It uses command scripts which are not compatible with rendered animations without first baking the animation down to keyframes. I plan to make a version that does work with animation by using object scripts instead. Object scripts are more limiting in that the controllers and the controlled will have to be at scene level, not in a group and the number of possible controllers will have to be a hard coded value instead of unlimited.
Attachments
Constraint script 2020_11.RsObj
(83.98 KiB) Downloaded 179 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5213
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 »

clintonman wrote: 07 Jan 2020, 06:36 General Constraint script with some fixes.
changes from the 2008 version on my website are
fix - extra matrix connection was being made for each controlling object
removed the exports for the weight connectors and instead exported the entire constraint node. this makes all the values visible in the side panel and connectors don't need to be removed when the constraints are removed
fix - zero value for weight now has no influence when only one controller is applied

Still has the same limitation as the original. It uses command scripts which are not compatible with rendered animations without first baking the animation down to keyframes. I plan to make a version that does work with animation by using object scripts instead. Object scripts are more limiting in that the controllers and the controlled will have to be at scene level, not in a group and the number of possible controllers will have to be a hard coded value instead of unlimited.
Yay! Thanks!
One thing that I noticed when using this, the Constraint inside your General Constraint script can be deleted and then causes an error.
unDoIt
Add

Code: Select all

var constraint = System.ThisOwner() + "/Constraint"
	if(Node.FirstSelected() == constraint)
		return;
var Constraint = System.ThisOwner()
	if(Node.FirstSelected() == Constraint)
		return;
User avatar
clintonman
Captain
Posts: 5428
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 »

This version will render without the need to bake keyframes of the constrained object. It only works with scene level items. It does not work inside a group.
Attachments
Constraint Passive106.RsObj
(52.2 KiB) Downloaded 177 times
Clinton Reese

http://clintons3d.com
Post Reply