Cap - VictorWesterlund/labylib GitHub Wiki

from labylib import Cap

What you can change:

Class Function
Cap.Multi Custom properties
Cap.Visibility Cosmetic visibility

Cap.Multi()

Manipulate cosmetic metadata.

What you can change:

Function Description
color() Custom colors
direction() Cap direction
template() Template texture

Call subfunctions and submit changes by calling update()

cap = Cap.Multi(PHPSESSID)
# ...
cap.update()

Cap.Multi().color()

Takes a HEX-color string

mask.color("1655ff")

Cap.Multi().direction()

Takes a string "front" or "back"

cap.direction("front")

an int can also be passed as direction: front = 1, back = 0

Cap.Multi().template()

Takes a string with syntax from LabyMod Dashboard

cap.template(":P")
Templates
default
2021

Will raise a ValueError if an invalid template is specified.

Cap.Visibility()

cap_vis = Cap.Visibility(PHPSESSID)
cap_vis.update("<VALUE>")

Hide or show the cosmetic.

Action Value
Show "show"
Hide "hide"

an int can also be passed as Visibile = True/False

⚠️ **GitHub.com Fallback** ⚠️