SLUNIVERSE |
| | #1 (permalink) |
| Junior Member ![]()
Puneet
Join Date: Sep 2008
Posts: 26
| Animation ? I tried to create an animation in Qaviomator. When i uploaded it, it is there in the inventory but when i call it using llStartAnimation(),it showing an error which states "Required animation could not find?" Is there any default parimeters or some thing else which has to be considered before upload. Kindly suggest me some idea. Thanks |
| | |
| | #3 (permalink) |
| Strict machine ![]() ![]()
discretion currently offline
Join Date: Jul 2007 Location: Mikianna
Posts: 398
SL Join Date: Feb 2006
Business: MadScience Laboratories SLShopper Ads: 6
My Mood: | I always select the animation in question and use 'Rename' to copy its exact file name. If it still can't be found, you might try using llGetInventoryNumber(INVENTORY_ANIMATION) and see if says you have any in there. . |
| | |
| | #5 (permalink) |
| Mad Artist ![]() ![]() ![]() | I think this may be your problem? Animations are different from textures. They need to be in the inventory of the prim itself.
__________________ Miriel: Jewelry, eyes, shapes, and a couple of hairstyles. Oh, and a pretty forest. And a treasure hunt. 3.5 on the Internationally Recognized Trout Recreant Scale of Slutwatoosi. "Blender is the Pai Mae of 3d programs. It hates newbies, despises windows users, and has nothing but contempt for English speakers. It will let you learn, but mostly because doing so will give Blender a chance to amuse itself by making you suffer." - Twenty Sided |
| | |
| | #6 (permalink) |
| Junior Member ![]()
Puneet
Join Date: Sep 2008
Posts: 26
| I downloaded some animations from second life website then upload one the secondlife which is working fine, but the another animation created using Qaviomator is not working .This gives an error saying "Required animation could not find". appriciate if someone share their thoughts to me..... Thanks. Last edited by LioDiesel; 10-20-2008 at 09:43 AM.. |
| | |
| | #7 (permalink) |
| Why can't titles be longe ![]() ![]() | As others have already stated, the problem is one of two things: You need to make sure the you place the animation into the object with the script. Unlike sounds or textures, you cannot call an animation from the script using UUID alone, the animation must be present inside the contents of the object with the script. And: You need to make sure that the animation name is spelled correctly in the script. The best method, especially if you are calling this animation multiple times in the script, is to declare it as a global variable at the start of the script, before the default state, so if the animation name was my_animation: string anim = "my_animation"; Note that the quotation marks here are essential. It is possible that this is where you had a problem as well. If you declare the variable before the default state, then you can call the animation just using that name, like so: string anim = "my_animation"; default state_entry() { llRequestPermissions(llGetOwner(),PERMISSION_TRIGG ER_ANIMATION); } run_time_permissions(integer perms) { if(perms & PERMISSION_TRIGGER_ANIMATION) { llListen("",llGetOwner(),"",""); } listen(integer channel,string name,key id,string message) { if(llStringLength(message) <= 10) { message == llToLower(message); if(message == "start") { llStartAnimation(anim); } else if(message == "stop") { llStopAnimation(anim); } } } } |
| | |
| | #8 (permalink) | |
| Doing stuff ![]() ![]() ![]() ![]()
Made new armor ^^
Join Date: Sep 2007 Location: Glasgow, Scotland
Posts: 2,603
SL Join Date: 14/10/2006
Business: MagoTek Industries SLShopper Ads: 1
My Mood: | Unlike textures and sounds, animations CANNOT be called by UUID. The animation must be present in the prim. Secondly, inventory names are always case sensitive. Copy and paste the name exactly from the properties box ofthe animation. That's most likely your problem.
__________________ Quote:
| |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |