Jump to content

Sexlab 1.60 : tag filtering


Recommended Posts

Since animation filtering by tags is not very flexible

Eg. it is impossible to add a filter like this

  • Must have Lesbian
  • Must have at least Bound or Binding

I want to patch animations to unify tags:

 

some animation libraries tags "Lying", others "Laying"

some animation libraries tags "Bound", others "Binding", others "Wrists"

 

 

Currently I am doing it via SexLab.GetAnimationsByTags + AddTag once after Sexlab has started:

function PatchSexlabAnimationTag(int count,string tagList,string replacement)
	sslBaseAnimation[] animations = SexLab.GetAnimationsByTags(count,tagList,RequireAll = false)
	i = animations.Length
	while i > 0
		i -= 1
		animations[i].AddTag(replacement)
	endwhile	
endfunction

PatchSexlabAnimationTag(1,"Armbinder,Bound,Wrists","Binding")
PatchSexlabAnimationTag(2,"Armbinder,Bound,Wrists","Binding")
PatchSexlabAnimationTag(3,"Armbinder,Bound,Wrists","Binding")
PatchSexlabAnimationTag(4,"Armbinder,Bound,Wrists","Binding")
PatchSexlabAnimationTag(5,"Armbinder,Bound,Wrists","Binding")

Now I can simply use "Binding"

 

But this is very very inefficient.

 

Is there a way to do one iterate through all animations and adapt the tags when necessary?

 

OR

 

Is there a way to combine animation filters to do a query like:

must have tag "MF"

must have at least one of "Armbinder,Bound,Wrists,Binding"

 

Link to comment

Is this a possible solution?

sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2,"Armbinder,Bound,Wrists,Binding",RequireAll=false)
anims = sslUtility.FilterTaggedAnimations(anims,PapyrusUtil.StringSplit("MF"))

For

must have tag "MF"

must have at least one of "Armbinder,Bound,Wrists,Binding"

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