gooser Posted June 11, 2014 Posted June 11, 2014 So which is the name? SexLab.GetAnimationByName("FalmerHolding") or SexLab.GetAnimationByName("(Falmer) Holding") Thanks!
gooser Posted June 11, 2014 Author Posted June 11, 2014 In both cases, I'm getting None back: SslBaseAnimation anim1 = SexLab.GetAnimationByName("FalmerHolding") SslBaseAnimation anim2 = SexLab.GetAnimationByName("(Falmer) Holding") LogToAll("anim1 : " + (anim1 == None)) LogToAll("anim2 : " + (anim2 == None))
TheDriedFinger Posted June 11, 2014 Posted June 11, 2014 I believe that one of the script sources included in the installation package for SexLab Framework has a full list of names and tags of all animations. I always reference that: sslAnimationDefaults.psc and sslCreatureAnimationDefaults.psc. "(Falmer) Holding" is right, from the script. You have creature animations enabled, right?
gooser Posted June 11, 2014 Author Posted June 11, 2014 I've been reading sslCreatureAnimationDefaults.psc for falmer animations. I wasn't sure which string is the "name", hence my question. function FalmerHolding(int id) sslBaseAnimation Base = Create(id) Base.Name = "(Falmer) Holding" Base.SoundFX = Squishing Base.SetRaceIDs(Falmers) int a1 = Base.AddPosition(Female, addCum=VaginalAnal) Base.AddPositionStage(a1, "Falmer_Holding_A1_S1") Base.AddPositionStage(a1, "Falmer_Holding_A1_S2") Base.AddPositionStage(a1, "Falmer_Holding_A1_S3") Base.AddPositionStage(a1, "Falmer_Holding_A1_S4") int a2 = Base.AddPosition(Creature) Base.AddPositionStage(a2, "Falmer_Holding_A2_S1", 35.0, rotate=180.0) Base.AddPositionStage(a2, "Falmer_Holding_A2_S2", 35.0, rotate=180.0) Base.AddPositionStage(a2, "Falmer_Holding_A2_S3", 35.0, rotate=180.0) Base.AddPositionStage(a2, "Falmer_Holding_A2_S4", 35.0, rotate=180.0) Base.AddTag("Gone") Base.AddTag("Creature") Base.AddTag("Bestiality") Base.AddTag("Dirty") Base.AddTag("Doggystyle") Base.AddTag("Missionary") Base.AddTag("Holding") Base.AddTag("Gangbang") Base.AddTag("Vaginal") Base.Save(id) endFunction RegisterAnimation("FalmerHolding")
gooser Posted June 11, 2014 Author Posted June 11, 2014 In any case, either one returns None, when I call GetAnimationByName
Ashal Posted June 11, 2014 Posted June 11, 2014 Neither in this case. SexLab.GetAnimationByName() is intended for non-creature animations. There is technically no front facing API for selecting creature animations, as any selection will be overwritten by SexLab's startup process, the only point at which you could overwrite the default creature animations is once the animation has already started. But for the sake of knowing. SexLab.CreatureSlots.GetByName("(Falmer) Holding") SexLab.CreatureSlots.GetByRegistrar("FalmerHolding")
Recommended Posts
Archived
This topic is now archived and is closed to further replies.