Stopping llSetKeyframedMotion should always succeed and never shout an error
closed
Tapple Gao
This command to stop keyframed motion should always succeed, and never shout an error:
llSetKeyframedMotion([], []);
It should not shout the error "Cannot use llSetKeyframedMotion() on a physical object."
It should not shout the error "Only linksets which uses the new prim equivalency system may be animated."
It should not shout the error "Cannot use llSetKeyframedMotion() on an attachment."
The errors should be retained when starting an animation, or resuming one, but not on stopping one. Stopping should always succeed, and always put the prim in the normal un-animated state without error messages
Original jira issues:
Log In
Maestro Linden
marked this post as
closed
Tapple Gao
I can confirm this issue has been fixed for some time, and this report can be closed. The related error I still have always involves llSetLinkPrimitiveParamsFast shouting "Cannot use a script to move a linkset while it is playing an animation. Stop the animation first.". This is a different issue, and is a message that would be a lot harder to eliminate (reworking how physics shapes are cached)
Maestro Linden
Tapple Gao: Thank you for confirming.
Maestro Linden
marked this post as
needs info
I'm not seeing this error message in a basic case; when an object is physical and a script calls
llSetKeyframedMotion([], [])
, no error is shouted (and the object remains physical).default
{
state_entry()
{
llSetLinkPrimitiveParamsFast(LINK_THIS,
[PRIM_PHYSICS_SHAPE_TYPE, PRIM_PHYSICS_SHAPE_CONVEX]);
llSetStatus(STATUS_PHYSICS, TRUE);
llSay(0, "Set physics shape & physical status");
}
touch(integer num)
{
llOwnerSay("Stopping KFM");
llSetKeyframedMotion([], []);
}
}
What are the steps to trigger the error message?
Maestro Linden
Tapple Gao Same question for "Cannot use llSetKeyframedMotion() on an attachment." and "Only linksets which uses the new prim equivalency system may be animated." messages.
When I rez a default box (not using "new" prim equivalency system) and add this script to it, no error message appears:
default
{
touch_start(integer num)
{
llOwnerSay("Stopping KFM");
llSetKeyframedMotion([], []);
}
}
Likewise, if I wear the scripted object as an attachment and touch it it to trigger
llSetKeyframedMotion([], [])
, no error message appears.For all of these cases, I'm testing on Second Life Server 2026-01-28.21455867889.
Tapple Gao
Maestro Linden wow. how the heck did I not notice you fixed this. it's workaround is literally issue #1 in my product. I can't trivially reproduce it either. lemme do less trivial testing