<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple targets in a look-at controller in 3ds Max Animation and Rigging Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317234#M4994</link>
    <description>&lt;P&gt;Is there something that prevents you from simply using Reaction Manager?&lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 13:34:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-06T13:34:27Z</dc:date>
    <item>
      <title>Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8310675#M4990</link>
      <description>&lt;P&gt;I'm trying to rig a simple eyeball look-at constraint that uses two distinct targets.&amp;nbsp; I want the eyeball to generally follow the main target but then occasionally shift/translate to target B.&lt;BR /&gt;&lt;BR /&gt;I want a single slider button to control the look-at direction/target weighting.&amp;nbsp; The button would start with target A and then when translated, the look-at weighting would transition to target B.&lt;BR /&gt;&lt;BR /&gt;But I'm doing something wrong.&amp;nbsp; Something that seems so easy in concept is failing me; my parameter-wiring results produce a "pop" during the transition from target A to target B.&amp;nbsp; Target A weighting starts at 100 while Target B starts at 0.&lt;BR /&gt;&lt;BR /&gt;If I move the slider button up 1 unit, I want Target A look-at weighting to transition to 0 while Target B look-at weighting goes to 100.&lt;BR /&gt;&lt;BR /&gt;I'm missing something obvious because I'm getting a pop during the transition.&lt;BR /&gt;&lt;BR /&gt;I've looked around online for guides or examples to this particular setup but can't find anything.&amp;nbsp; Most eye setups are routinely locked onto just one target.&lt;BR /&gt;&lt;BR /&gt;Can anyone here provide a solution?&lt;BR /&gt;&lt;BR /&gt;I've attached a file with a point helper using a look-at controller and two separate targets, along with the button slider control.&amp;nbsp; No wiring applied between the controller and the button.&lt;BR /&gt;&lt;BR /&gt;Thanks, I'd appreciate anything that makes me feel less stupid.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 17:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8310675#M4990</guid>
      <dc:creator>Peter_MH</dc:creator>
      <dc:date>2018-10-03T17:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8311536#M4991</link>
      <description>&lt;P&gt;Here's a method using a Script Controller to do what I think you want although in a much different manner.&lt;/P&gt;&lt;P&gt;I created a point named TargetPoint with a script controller that positions it as a function of the location of the two circles AND the position of your object CTRL_button. The lookat constraint looks at this point. &lt;SPAN&gt;If the z coordinate of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_button is equal to or less than zero then&amp;nbsp;A is looked at (the point is at A).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If the z coordinate of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CTRL_button is equal to or greater than 1.0 then B is looked at. If&amp;nbsp;the z coordinate of&amp;nbsp;CTRL_button&amp;nbsp;is between 0.0 and 1 then the TargetPoint is proportionally&amp;nbsp;positioned between A and B.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This approached could be tweaked to better fit your needs if appropriate.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It may be possible to adjust the weighing factors but&amp;nbsp;I was more comfortable with this approach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sc01.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/553641i632BF612C6263967/image-size/large?v=v2&amp;amp;px=999" role="button" title="sc01.JPG" alt="sc01.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 01:14:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8311536#M4991</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-10-04T01:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8314477#M4992</link>
      <description>&lt;P&gt;Thanks Lee.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I "pulled up" to the idea of using a script controller and then did a U-turn and went back to banging my head against the look-at controller weighting and parameter wiring.&amp;nbsp; I'm not as experienced with script controllers as I should be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until now!&amp;nbsp; I'm going to dive into the topic and study your solution.&amp;nbsp; Your idea is a solid stride towards what I'm seeking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, you've provided some great help to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 03:30:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8314477#M4992</guid>
      <dc:creator>Peter_MH</dc:creator>
      <dc:date>2018-10-05T03:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8315554#M4993</link>
      <description>&lt;P&gt;You're welcome.&amp;nbsp; Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, if the "eyes" are linked to other objects the script controller must include that in expressions.&amp;nbsp; I found the best way to handle this is by multiplying the transforms from child to parent.&amp;nbsp; You may want to use a Custom Attribute controller instead of the Z position of an object to adjust the weighing of the lookat constraint. If you have a sample model you would like to try this with please post it and I will try rigging it.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 13:41:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8315554#M4993</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-10-05T13:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317234#M4994</link>
      <description>&lt;P&gt;Is there something that prevents you from simply using Reaction Manager?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 13:34:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317234#M4994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-06T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317253#M4995</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; Thanks for the suggestion. I was not aware of the Reaction Manager.&amp;nbsp; It looks interesting and may have promise.&amp;nbsp; From a brief read it isn't clear if it supports multiple "masters" i.e., the two targets and the controller for how to mix attention between the two.&amp;nbsp; &amp;nbsp;I need to familiarize myself with this tool.&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 14:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317253#M4995</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-10-06T14:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317284#M4996</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/822616"&gt;@leeminardi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;@Anonymous&amp;nbsp; Thanks for the suggestion. I was not aware of the Reaction Manager.&amp;nbsp; It looks interesting and may have promise.&amp;nbsp; From a brief read it isn't clear if it supports multiple "masters" i.e., the two targets and the controller for how to mix attention between the two.&amp;nbsp; &amp;nbsp;I need to familiarize myself with this tool.&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;A single master can control multiple states of multiple slaves. I thought that would be the requirement here.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 14:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317284#M4996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-06T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317438#M4997</link>
      <description>&lt;P&gt;Yep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reaction Manager seems more appropriate for this problem.&amp;nbsp; I just rigged up my test successfully using Reaction Manager (file attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By more appropriate, I mean a little easier.&amp;nbsp; Lee's Script Controller suggestion looks like far more capable of granular control if needed but in this case, my problem is pretty one-dimensional.&amp;nbsp; That's partly why I was feeling so stupid prior to posting my question; there's just gotta be some way inside Max to do something so simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why I couldn't think of Reaction Manager.&amp;nbsp; I've done some tests with it a long time ago and then forgot about it.&amp;nbsp; Maybe reading about people having problems with max files losing their reaction manager setups helped push the concept into the back of my mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN class="UserName lia-user-name lia-user-rank-Advisor lia-component-message-view-widget-author-username"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1276760" target="_self"&gt;&lt;SPAN class=""&gt;aon.914858227&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;.&amp;nbsp; A great benefit of this forum is the multiple solutions proposed.&amp;nbsp; I had spent yesterday learning Script Controllers via Lee's suggestion (and watching some of his hang-gliding videos on Youtube.com) and my eye-rig file was looking heading towards completion last night.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then this morning...a slap to the forehead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 17:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317438#M4997</guid>
      <dc:creator>Peter_MH</dc:creator>
      <dc:date>2018-10-06T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317663#M4998</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;would you please post a copy of your file that used Reaction Manager in a 2018 or earlier format.&amp;nbsp; I would like to look at it.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/190891"&gt;@Peter_MH&lt;/a&gt;&amp;nbsp;I've attached what I think is a cleaner version of my original solution that used a script controller.&amp;nbsp; In this version I created a custom attribute for setting the amount of blend between the two targets.&amp;nbsp; Just select TargetPoint and then open the Modify tab to the the custom Attribute "AB Blend". Slide it all the way to the left and the target is coincident with A, to the right it's coincident with B and inbetween the target is inbetween.&amp;nbsp; Since the range of values for the attribute is 0 to 1 there's no need for the if statement from&amp;nbsp; my original solution.&amp;nbsp; In addition, I think&amp;nbsp; it is much easier to control the blend with the attribute rather than the z position of CTRL_Button.&amp;nbsp; Note, I rigged this in my own file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blendAB.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/554686i37B1C140B2151127/image-size/large?v=v2&amp;amp;px=999" role="button" title="blendAB.JPG" alt="blendAB.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are only three expressions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;d = distance TargetA TargetB
v = normalize (TargetB - TargetA)  -- unit vector from A to B 
p = TargetA + BlendAB * d * v&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;p is a vector that goes from 0,0,0 to targetA and then on by a distance d * (the value of BlendAB) in the direction of v.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Move A or B around and also adjust AB Blend.&amp;nbsp; I've used two dummy object to represent the eyes that are linked to a box named head.&amp;nbsp; You can move head around as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2018 00:59:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317663#M4998</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-10-07T00:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple targets in a look-at controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317676#M4999</link>
      <description>&lt;P&gt;Thanks for continuing to look at this Lee.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the Reaction Manager-rigged test file, in max2016 format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if I'm doing something incorrectly with Reaction Manager (after watching some tutorials) but I'm getting a tiny bit of volatility when going through the process in my main character file.&amp;nbsp; The button starts as default at the top of the slider and everything is fine.&amp;nbsp; But when you slide it down, the look-at interpolation moving to target B goes fine until right at the very end when the look-at controllers suddenly pop the eyeballs down and into a cross-eyed angle.&amp;nbsp; I can work around it for the moment but eventually I'd like it to work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Reaction Manager, setting it up creates more than the two "states" that I clearly need so I've deleted the extras.&amp;nbsp; But maybe I shouldn't delete them.&amp;nbsp; More exploration needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may swing back to your refined scripting option.&amp;nbsp; I'll have to study it some more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2018 02:06:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-targets-in-a-look-at-controller/m-p/8317676#M4999</guid>
      <dc:creator>Peter_MH</dc:creator>
      <dc:date>2018-10-07T02:06:19Z</dc:date>
    </item>
  </channel>
</rss>

