<?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 add a key to only one attribute in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951445#M28933</link>
    <description>What I'd really like is to be able to right click on the attribute, say X position, and hit Key but then I'd be working in Maya.&lt;BR /&gt;&lt;BR /&gt;I did find the "create key" buttons under the PRS Parameter under the motion menu, but that will key the entire controller. The controller might contain multiple keyable features, however, and often times a good animation will require different timing for each attribute.&lt;BR /&gt;&lt;BR /&gt;What I want to create is a floating toolbar with 9 boxes on it. scale, rotate, and translate with x, y  and z for each. I'd like each button to have a script on it that would place a key for that value and Only for that value for the selected object at the current keyframe. &lt;BR /&gt;&lt;BR /&gt;I can figure out how to create a key, but not for only one of the attributes. &lt;BR /&gt;&lt;BR /&gt;Has someone already created such a tool? If not, any idea on how to do it. I probably only need one or two examples and I can figure out the rest, or just tell me the name of what I'm looking for if it's listed in the maxscript reference files. I just can't find it there and I've had no luck guessing what the syntax might be.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.</description>
    <pubDate>Thu, 27 Sep 2007 02:26:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-09-27T02:26:17Z</dc:date>
    <item>
      <title>add a key to only one attribute</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951445#M28933</link>
      <description>What I'd really like is to be able to right click on the attribute, say X position, and hit Key but then I'd be working in Maya.&lt;BR /&gt;&lt;BR /&gt;I did find the "create key" buttons under the PRS Parameter under the motion menu, but that will key the entire controller. The controller might contain multiple keyable features, however, and often times a good animation will require different timing for each attribute.&lt;BR /&gt;&lt;BR /&gt;What I want to create is a floating toolbar with 9 boxes on it. scale, rotate, and translate with x, y  and z for each. I'd like each button to have a script on it that would place a key for that value and Only for that value for the selected object at the current keyframe. &lt;BR /&gt;&lt;BR /&gt;I can figure out how to create a key, but not for only one of the attributes. &lt;BR /&gt;&lt;BR /&gt;Has someone already created such a tool? If not, any idea on how to do it. I probably only need one or two examples and I can figure out the rest, or just tell me the name of what I'm looking for if it's listed in the maxscript reference files. I just can't find it there and I've had no luck guessing what the syntax might be.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.</description>
      <pubDate>Thu, 27 Sep 2007 02:26:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951445#M28933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-27T02:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: add a key to only one attribute</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951446#M28934</link>
      <description>Hello Andy,&lt;BR /&gt;&lt;BR /&gt;The code:&lt;BR /&gt;&lt;BR /&gt;addNewKey $.controller currentTime&lt;BR /&gt;&lt;BR /&gt;Would create a key to the selected node... (That's the $ sign)&lt;BR /&gt;In the Transform... (That's the first )&lt;BR /&gt;In the Rotation... (That's the  index - position being  and scale being )&lt;BR /&gt;In the Z Axis... (That's the last  Index - X being  and Y being )&lt;BR /&gt;To The referred track's controller... (that's the .controller property - a bezier float by default)&lt;BR /&gt;At the current Time... (Where the time slider is...)&lt;BR /&gt;&lt;BR /&gt;The default Animation controller for scale is the Bezier-Scale, in wich every key is for all three axis of the scale, so if you want to key them independently you need to assign a Scale-XYZ controller to the scale Track, and it will have a sub controller for each axis, like the position and rotation have by default.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Oded</description>
      <pubDate>Sat, 06 Oct 2007 02:05:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951446#M28934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-06T02:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: add a key to only one attribute</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951447#M28935</link>
      <description>That's exactly what I was looking for. Why can't the help file be that simple?&lt;BR /&gt;&lt;BR /&gt;I can't quite figure out visual maxscript though.&lt;BR /&gt;&lt;BR /&gt;I created a quick test of just three buttons, but I can't seem to run it. &lt;BR /&gt;I thought I could just create that, save as a max script, run it and it would pop up a window with my buttons on it. &lt;BR /&gt;&lt;BR /&gt;The help file is absolutely no help there. I can't even find Edit&amp;gt;Edit Rollout anywhere, and it assumes you know that. And Rollout? Am I just doing this totally in the wrong place?</description>
      <pubDate>Sat, 06 Oct 2007 03:06:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951447#M28935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-06T03:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: add a key to only one attribute</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951448#M28936</link>
      <description>&lt;PRE&gt;rollout SetKey_Buttons "Set Individual Keys" width:135 height:78&lt;BR /&gt;(&lt;BR /&gt;    button ButtX "X" pos: width:18 height:18 toolTip:"key position X"&lt;BR /&gt;    button ButtY "Y" pos: width:18 height:18 toolTip:"key position Y"&lt;BR /&gt;    button ButtZ "Z" pos: width:18 height:18 toolTip:"key position Z"&lt;BR /&gt;    pickButton btn4 "PickButton" pos: width:0 height:0&lt;BR /&gt;    label lbl1 "Position" pos: width:40 height:12&lt;BR /&gt;    &lt;BR /&gt;    )&lt;BR /&gt;    on ButtX pressed  do&lt;BR /&gt;        addNewKey $.controller currentTime&lt;BR /&gt;    on ButtY pressed  do&lt;BR /&gt;        addNewKey $.controller currentTime&lt;BR /&gt;    on ButtZ pressed  do&lt;BR /&gt;        addNewKey $.controller currentTime&lt;BR /&gt;)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;OK, that's what I've got so far, but it's not working. I tried using the visual maxscript editor, and it didn't work either. I had things named PositionX, PositionY, and PositionZ, but I thought that might cause problems, so I renamed it, but that didn't help.&lt;BR /&gt;&lt;BR /&gt;each script works on it's own. Why would the visual editor write me script that doesn't work? I don't know what I did wrong.</description>
      <pubDate>Mon, 08 Oct 2007 21:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951448#M28936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-08T21:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: add a key to only one attribute</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951449#M28937</link>
      <description>Are you launching the dialog after you create it with Visual MAXScript? VMS creates the code for a rollout but doesn't create code to launch it as a dialog, since rollouts have numerous other purposes.&lt;BR /&gt;&lt;BR /&gt;Add this to the script after the VMS-created Rollout code:&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;createDialog SetKey_Buttons&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Oct 2007 22:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951449#M28937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-08T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: add a key to only one attribute</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951450#M28938</link>
      <description>&lt;A href="http://scriptspot.com/3ds-max/set-individual-transform-keys" target="_blank"&gt;script spot link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;OK, there it is. People who are really good at scripting will probably laugh at my formatting, but it at least seems to work.&lt;BR /&gt;&lt;BR /&gt;The only thing that seems to kind of stink is the keys don't always show up in the track bar until you deselect the object, then select it again.&lt;BR /&gt;I'm not sure if there is a way to refresh the trackbar forcefully, or if writing in to deselect the object, then reselect it again. That just seems very unnecessary though. If you have a thousand objects selected that would be a rather large array just because max isn't displaying the trackbar correctly.&lt;BR /&gt;&lt;BR /&gt;Let me know of any modifications you would suggest. I'm trying to slowly add to my scripting knowledge, which is still quite small.</description>
      <pubDate>Tue, 09 Oct 2007 04:02:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/add-a-key-to-only-one-attribute/m-p/3951450#M28938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-09T04:02:15Z</dc:date>
    </item>
  </channel>
</rss>

