<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Don, I think this will work.
<div class=""><br class="">
</div>
<div class="">I think it would be better if Alice 3 allowed the creation of properties of the person resource types. Then a user could create a constant property in the desired class with that type. The user would export the class. Then after creating an object
from the imported class, the user could go to the scene editor and set the resource right there, using the constant that was defined. Then the avatar would appear correctly in the scene, without having to call a method at runtime.</div>
<div class=""><br class="">
</div>
<div class="">I could also wish there was a default person, rather than the random person that appears as the avatar placeholder. I also liked the handful of named characters in Alice 2 that could be used for simple examples (Josh, Nataly, etc.). It would be
difficult to make these inclusive for an official release, so maybe it’s better to leave them out.</div>
<div class=""><br class="">
</div>
<div class="">If there was a way to define person resource properties, it would be easy to make several avatar characters, saving each as a constant property in the class. Each student could create a library of characters, or I could create a library of characters
to share with them, that they could easily import and we could use together. That sounds very useful.</div>
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<div><br class="">
<div class="">On Jan 12, 2020, at 7:47 PM, Donald Slater <<a href="mailto:dslater@andrew.cmu.edu" class="">dslater@andrew.cmu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">James,
<div class="">You are correct, that because the Alice 3 Export function exports essentially a Java class, methods, functions, class properties of the class will be exported. But not the particular characteristics fo an object of that class.</div>
<div class=""> </div>
<div class="">If Alice allowed the creation of properties and variables of the type adultPersonResource, teenPersonResource, childPersonResource, etc, then one could create a class property of that resource with the specific values of the avatar, which would
be exported with the class. That may be worth investigating for future releases.</div>
<div class=""><br class="">
</div>
<div class="">But I did come up with a work-around, a hack, actually ;-) Using the TeenPerson class</div>
<div class=""><br class="">
</div>
<div class="">1) Create a method for the person class, name it something like setMyResource…</div>
<div class="">2) Inside that method, use the setTeenPersonResource to build the avatar. (This will not change the appearance of the avatar in the scene until the method setMyResource is called). See the attached screen shot.</div>
<div class="">3) You may now export this class, and the setMyResource method, with the specific values for the avatar will be exported as part of this method.</div>
<div class="">4) When you import this class into a new project, call the setMyResource method as the first line of code, and the avatar in the scene will take on the desired appearance at runtime.</div>
<div class=""><br class="">
</div>
<div class="">I have also attached a sample project that you might play with.</div>
<div class=""><br class="">
</div>
<div class="">It is a hack, but it is something until until we come up with a more elegant solution.</div>
<div class=""><br class="">
</div>
<div class="">Lete me know if you have any questions.</div>
<div class=""><br class="">
</div>
<div class="">All the best,</div>
<div class="">Don Slater</div>
<div class=""><br class="">
</div>
<div class="">Alice Project</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div class=""><span id="cid:766df140-67b3-4b74-b90e-89ef1a51fbc0@namprd06.prod.outlook.com"><p1.png></span>
</div>
<div style="word-wrap:break-word; line-break:after-white-space" class="">
<meta content="text/html; charset=us-ascii" class="">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 12, 2020, at 9:03 AM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu" class="">vanderhyde@sxu.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<meta content="text/html; charset=utf-8" class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hello, everyone. I have made the jump from Alice 2 to Alice 3. Is there any guide to Alice 3 for long-time users of Alice 2? I am hitting a problem right away. In Alice 2, I had each of
my students create an “avatar” using the He/she builder, export the object, and use it in every one of their homework assignments. I can’t find a way to export a carefully crafted person in Alice 3 for use in other projects. The class export system seems to
be completely different.
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
alice-teachers mailing list<br class="">
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">
To change settings or unsubscribe visit:<br class="">
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<span id="cid:762634981482A8459E44044E5A96061B@namprd06.prod.outlook.com"><ResourceImportDemo.a3p></span></div>
</div>
<br class="">
</div>
</body>
</html>