プリムをハート型にするスクリプトです。
<スクリプト内容>
key sculptUUID = "c075e43e-6c29-b079-7d0a-2c4b4f12ce66";
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, sculptUUID, PRIM_SCULPT_TYPE_SPHERE]);
}
}
Sculpted(スカルプテッド)用のテクスチャを指定しています。
一行目のsculptUUID の右側の部分(UUID)を変更してあげればいろいろな
形に変形できます。このページにいろいろサンプル出てます。
<おまけ>
5秒毎にいろいろな形にプリムを変形させるスクリプトです。
integer counter=0;
list UUIDlist;
setuuid () {
llSetTexture("0803d422-f303-503b-55fc-819f95e62e43", ALL_SIDES);
UUIDlist+="c075e43e-6c29-b079-7d0a-2c4b4f12ce66";
UUIDlist+="39fba6dd-ae01-bd23-6fad-a25e4ea2a5fc";
UUIDlist+="5fdf9498-c1cd-9e5f-8b0d-01b8518052ef";
UUIDlist+="48121ed1-870c-dd53-1d5d-ac762f0b603e";
UUIDlist+="bea82b0f-27c6-730b-fd7f-733f2340b449";
UUIDlist+="fb39e9be-0609-2d1e-0988-803d1c04411e";
UUIDlist+="d962089b-2197-993c-9ec9-4993eb0a95f2";
UUIDlist+="d1b6cc53-ac61-291f-9ce1-dc18170aa6a6";
}
default
{
state_entry()
{
setuuid();
llSetTimerEvent(5);
}
timer(){
if (llGetListLength(UUIDlist)<=counter) {
counter=0;
}
key sculptUUID = llList2Key(UUIDlist,counter);
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, sculptUUID, PRIM_SCULPT_TYPE_SPHERE]);
counter ++;
}
}
リンデンスクリプト Tips Intexへ