Jump to content

GetAnimationByName


Recommended Posts

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))
Link to comment

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?

Link to comment

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")
Link to comment

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")

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use