Page 13 of 13

Re: Building GUIs With Fusion's UI Manager

Posted: Mon Feb 11, 2019 8:59 am
by AndrewHazelden
pixelstuff wrote:
Mon Feb 11, 2019 8:33 am
I can't seem to find a solution to this and thought maybe its a bug or something else that I have installed that's causing it. The trouble is I don't know how to troubleshoot it.

Hi @pixelstuff.

When things go wrong with UI Manager there isn't a lot of ways to troubleshoot things since all users have to work with, are small fragments of details and scraps of information. :-|

If you want to see scripting functionality and API documentation improved in Resolve 15 and in Fusion Standalone 9 you need to reach out to BMD and let them know its a priority for you. The lack of official *modern* scripting documentation on features like UI Manager, Actions, and Events makes Lua and Python scripting a process of trial and error for end users that make things harder than necessary.

Re: Building GUIs With Fusion's UI Manager

Posted: Mon Feb 11, 2019 9:47 am
by pixelstuff
Thanks, I'll contact them directly as its an issue with Fusion 9 and the same happens in Resolve 15, maybe they can track the cause of the problem down :)

Re: Building GUIs With Fusion's UI Manager

Posted: Fri Mar 01, 2019 12:48 pm
by miaz3
Thanks @PeterLoveday for the tab bar, didn't know !
Thanks @AndrewHazelden i'didnt' know it...i made a func to use uuid...i will integrate it directly into my script :)
  1. function uuid()
  2.     math.randomseed(os.time())
  3.     local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
  4.     return string.gsub(template, '[xy]', function (c)
  5.         local v = (c == 'x') and math.random(0, 0xf) or math.random(8, 0xb)
  6.         return string.format('%x', v)
  7.     end)
  8. end
Added in 36 minutes 4 seconds:
I thought, we could call (since bmd.scriptapp ()) another module that 'Fusion', ip, timeout, uuid, subtype ?

Re: Building GUIs With Fusion's UI Manager

Posted: Mon Apr 08, 2019 6:55 am
by AndrewHazelden
pixelstuff wrote:
Sun Feb 03, 2019 4:14 am
A problem I'm running into is for some reason the action detection stops(see gif) after a period of time or number of iterations(both time and inputs). Would you have any idea what could possibly be causing this, as I also checked the UI Manager "List input control names" examples in Reactor and it seems to do the same in Win10 and Mac OSX.

The console "time changed" is within the function below.

Code: Select all

ui:AddNotify('Time_Set', comp)

function disp.On.Time_Set(ev)
	print('time changed')
end


There is a possibility that garbage collection in Lua is disposing of the AddNotify action after a while. If you store the pointer returned by the ui:AddNotify() function in a variable it might potentially solve your issue:

Code: Select all

notify = ui:AddNotify('Time_Set', comp)

function disp.On.Time_Set(ev)
	print('time changed')
end

Re: Building GUIs With Fusion's UI Manager

Posted: Sun Apr 14, 2019 2:45 pm
by pixelstuff
thanks @AndrewHazelden BMD confirmed this as a bug, and unfortunately it's still there currently with 16, but hopefully it will be fixed soon.

That makes sense what you have suggested I'll give it a try :)