![]() |
![]() |
![]() |
Content Scripting Python 3D Model AnimationFrom RexWikiThe following sample demonstrates how to launch mesh animations from server Python script:
import rxactor
import rxavatar
import sys
import clr
asm = clr.LoadAssemblyByName('OpenSim.Region.ScriptEngine.Common')
Vector3 = asm.OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3
import random
import math
class AnimTest(rxactor.Actor):
def GetScriptClassName():
return "samplemeshanim.AnimTest"
def EventCreated(self):
super(self.__class__,self).EventCreated()
print "samplemeshanim.AnimTest EventCreated"
def EventTouch(self,vAvatar):
vAvatar.rexPlayMeshAnimation(self.Id,"Wave",0.2,False,False)
self.llShout(0,"Custom animation!")
def rexPlayMeshAnimation(self,primId,vAnimName,vRate,vbLooped, vbStopAnim): Where:
|
||
![]() |
![]() |
![]() |

