<div dir="ltr">Thanks Don. That wasn't quite what I wanted to do, but it was enough to set me in the right direction, and I've worked it out now.<div>What I was trying to do (and probably didn't explain properly!) was change the clothing on a newAdult or newTeen (ie one of the Sims people) in Alice 3. </div><div>The people models all have the setResource procedure available as a code block, but it just wouldn't let me use it in the code. I now realise that I first need to set a Scene Property from the gallery first, then I can use the setResource procedure. That then means I can put new trousers on a person, or a different hat etc. </div><div><br></div><div>Thanks again</div><div>Margaret</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 12:42 AM, Don Slater via alice-teachers <span dir="ltr"><<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">It depends on the model… Alice 2 models are built by combining a set of sub-parts (or objects) together to form the complete model. Because of this, each sub-part has its own set of properties that can be manipulated, without changing the properties of the other sub-parts. However, Alice 3 models are built around a single skeleton, using sets of joints. This allows for more realistic animation for the model, and also better supports an inheritance structure for teaching Java and object-oriented programming.<div><br></div><div>Therefore, it is not possible to change the color of the Mad Hatter’s hat, as it is not a separate object.</div><div><br></div><div>However, there are some models that have different forms, such as the YetiBaby. In the gallery, the YetiBaby has three forms, the default form, one with a scarf, and another with a tutu.</div><div><br></div><div>If in your animation you wanted to put the scarf on the yeti, you would use the models setYetiBabyResource procedure. See the Attached screen shot.</div><div><br></div><div>Let me know if you have any questions.</div><div><br></div><div>All the best,</div><div>Don Slater</div><div><div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><div><div><br>Alice Team<br>Carnegie Mellon University<br>Entertainment Technology Center<br>700 Technology Drive<br>Pittsburgh, PA 15219<br><br>Email: <a href="mailto:dslater@cmu.edu" target="_blank">dslater@cmu.edu</a></div><div><br></div><div>I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.<br>--- Henry David Thoreau</div></div><div><br></div><div>The true object of all human life is play. -- G.K. Chesterton</div><div><br></div><div><img height="311" width="640" src="cid:86FC3483-9EFA-48C0-B7A5-0CDB09E11CC5@fios-router.home"><br><br></div></div></span></div></span></div></span></div></span></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div>On Nov 7, 2015, at 5:21 PM, Margaret Meijers via alice-teachers <<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>> wrote:</div><br><div><div dir="ltr">Is it possible to use code to change a model's appearance as an animation runs? eg could I code a different hat to appear on a model during an animation, and if so, how would I do it? <div><br></div><div>Thanks</div><div>Margaret<br><div><br><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>alice-teachers mailing list<br><a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
<br></blockquote></div><br></div>