Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

How to limit a parameter "Look at" to only one axis?

Still a little green? Ask your beginner's questions here

How to limit a parameter "Look at" to only one axis?

Postby DimonW » Thu Aug 10, 2017 9:03 am

Hi, If you specify object B in the settings "Look at" of object A, then A will turn in direction B immediately along three axes. How to limit rotation only on one axis?
DimonW
 
Posts: 9
Joined: Mon Oct 26, 2015 7:30 am

Re: How to limit a parameter "Look at" to only one axis?

Postby archo-p » Thu Aug 10, 2017 2:07 pm

I think the ObjectCHOP is the place to start for this. It has options to compute bearing angles, though you likely need to deal with negating the rotations based on where the objects are since it doesn't do quaternions. Also, you'd need to parent the rotating object to another object that you are using in the object CHOP to refer to the look at object since you will then need to export back to the object being rotated. You'd create a dependency loop I think if you referred to the same object you are trying to rotate with the object CHOP.

Will see if I can't make an example when at my TD machine later, but maybe this is a start...
User avatar
archo-p
 
Posts: 469
Joined: Thu Nov 19, 2009 3:03 pm
Location: Los Angeles

Re: How to limit a parameter "Look at" to only one axis?

Postby DimonW » Fri Aug 11, 2017 8:14 am

Achro-p, many thanks for the advice, but the tool "Look at", as it turned out, makes very strange things with the axes of objects. Apparently, this is not my way.
Attachments
Kinect_DMX_test.toe
(7.33 KiB) Downloaded 43 times
DimonW
 
Posts: 9
Joined: Mon Oct 26, 2015 7:30 am

Re: How to limit a parameter "Look at" to only one axis?

Postby rob » Fri Aug 11, 2017 9:30 am

Here's another example that may be similar technique, using the under used Blend CHOP
It uses the Blend CHOP to place an object under B, that only takes its x,z values, ignoring Y, and ignoring rotations, scales.
You can then look at that instead.

(It assumes the looker it at Y=0, but that can be adjusted as necessary).

Start up the tox, and toggle the "Plane" parameter to see the effect.
Attachments
blend_plane.tox
(1.75 KiB) Downloaded 50 times
User avatar
rob
Staff
 
Posts: 1688
Joined: Tue Nov 13, 2007 1:14 am

Re: How to limit a parameter "Look at" to only one axis?

Postby DimonW » Fri Aug 11, 2017 10:59 am

Rob! You are the best! Thanks a lot!
DimonW
 
Posts: 9
Joined: Mon Oct 26, 2015 7:30 am

Re: How to limit a parameter "Look at" to only one axis?

Postby DimonW » Fri Aug 11, 2017 11:01 am

Thank you all for attending, the theme is closed for me.
DimonW
 
Posts: 9
Joined: Mon Oct 26, 2015 7:30 am


Return to Beginners

Who is online

Users browsing this forum: No registered users and 15 guests