This little tool allows to quickly introspect .inkwidget and corresponding .inkanim exported as JSON from Wolvenkit when modding the game Cyberpunk 2077.
Browsing in WolvenKit is fine when there's a couple of widgets and interpolators, but it can quickly become tedious or close to impossible when there's hundreds of inkanimInterpolators and deeply-nested inkWidgets.
if you don't believe me, have a look in WolvenKit at
base\\gameplay\\gui\\quests\\q001\\q001_mission0_connect_to_girl.inkwidgetandbase\\gameplay\\gui\\quests\\q001\\q001_mission0_connect_to_girl_animations.inkanim😉 this is the anim for the biomonitor from the mission "The Rescue" : watch on YouTube.
install with
cargo install inkanimavailable commands:
-
list: quickly introspect and filters by interpolator type or widget indexes path
inkanim list --help
-
tree: quickly display .inkwidget UI tree
inkanim tree --help
-
whois: quickly get widget names path from indexes path
inkanim whois --help
-
whereis: quickly get widget indexes path from names path
inkanim whereis --help
-
show: get trimmed json for widget by names path
inkanim show --help
Quickly try out methods with:
cargo run list --path '1.3.0.0.6' --type progress --widget ./inkwidget_connect_to_girl.jsoncargo run tree --widget ./inkwidget_connect_to_girl.jsoncargo run whois --path '1.3.0.0.6' --widget ./inkwidget_connect_to_girl.jsoncargo run whereis --path "main_canvas.Booting_Info_Critica_Mask_Canvas.Booting_Info_Critical_Canvas.Booting_Screen.BOOTING_PROGRESS_Text" --widget ./inkwidget_connect_to_girl.jsoncargo run show --path "main_canvas . Booting_Info_Critica_Mask_Canvas . Booting_Info_Critical_Canvas . Info_Screen . Info_MainScreen_Mask_Canvas . Info_MainScreen_Canvas . Critical_Screen_Text_Canvas . inkVerticalPanelWidget7 . inkHorizontalPanelWidget2 . Critical_Vertical_Warning . warning_Flex1 . warning1" --widget ./inkwidget_connect_to_girl.jsonThis tool is in its early stage, so please open an issue if you find any bug.
Feel free to come discuss any feature you feel is missing.
Contributions welcomed !


