Notifications
Clear all

[Closed] Planted Key -> Free Key

I know this is a gigantic hack, but maybe you could effectively do a callback to auto click the buttons rather than using the functions if they are giving different results to pressing the buttons?

Yes Matt this would possibly be a solution but the problem is that the callback handler does not seem to work with that part of the UI and even if it would than I still would have to be able to control this button but I did not found any Macro command which I could call to use this button.
Claudio, what you suggested is ttally right. But to be honest I did this already and it didn’t work for me either. The only working possibility seems to be baking but let me ask you: Is there another way but calling convert to footsteps to get the keys baked in every frame on only ONE specific biped bone. When I use convert to footsteps it bakes everything even if I use the appropriate function with a specific biped controller… Makes me crazy.

I solved it!

The rest is just calling the function at the specific time.
Basically I’m not thaaat pleased because to me using a UIAccessor is a bit hacky but this method was the only one that produced the correct outcome.

For those who got stuck on the same problem, here is the code for pressing the sliding key button at the current time of the timeslider using UIAccessor:



fn testfunc =
(
	whnd = windows.getMAXHWND()
	WindowChildren = (UIAccessor.GetChildWindows whnd)
	for lvi = 1 to WindowChildren.count do
	(
		if (UIAccessor.getWindowClassName WindowChildren[lvi]) == "RollupPanel" then
		(
			WindowKeyInfoChildren = (UIAccessor.GetChildWindows WindowChildren[lvi])
			if (UIAccessor.getWindowText WindowKeyInfoChildren[1] == "Key Info") then
			(				
				clearListener()
				UIAccessor.PressButton WindowKeyInfoChildren[21]
				-- 15 - SetKey Button
				-- 17 - DeleteKey Button
				-- 19 - SetPlantedKey Button
				-- 21 - SetSlidingKey Button
				-- 23 - SetFreeKey Button
				-- 25 - Trajectories Button
				print "Set Sliding Key at current time."
				break
			)
		)
	)
	true
)

testfunc()


Page 2 / 2