Building GUIs With Fusion's UI Manager

User avatar
AndrewHazelden
Fusionator
Posts: 1271
Joined: Fri Apr 03, 2015 3:20 pm
Answers: 1
Location: West Dover, Nova Scotia, Canada
Been thanked: 29 times
Contact:

Re: Building GUIs With Fusion's UI Manager

#181

Post by AndrewHazelden » Mon Feb 11, 2019 8:59 am

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.

Tags:

pixelstuff
Posts: 41
Joined: Sun Jul 15, 2018 11:50 am
Been thanked: 1 time

Re: Building GUIs With Fusion's UI Manager

#182

Post by pixelstuff » Mon Feb 11, 2019 9:47 am

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 :)

User avatar
miaz3
Fusioneer
Posts: 204
Joined: Sat Jan 03, 2015 1:43 am
Location: Angoulême / France
Been thanked: 1 time
Contact:

Re: Building GUIs With Fusion's UI Manager

#183

Post by miaz3 » Fri Mar 01, 2019 12:48 pm

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 ?

User avatar
AndrewHazelden
Fusionator
Posts: 1271
Joined: Fri Apr 03, 2015 3:20 pm
Answers: 1
Location: West Dover, Nova Scotia, Canada
Been thanked: 29 times
Contact:

Re: Building GUIs With Fusion's UI Manager

#184

Post by AndrewHazelden » Mon Apr 08, 2019 6:55 am

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

pixelstuff
Posts: 41
Joined: Sun Jul 15, 2018 11:50 am
Been thanked: 1 time

Re: Building GUIs With Fusion's UI Manager

#185

Post by pixelstuff » Sun Apr 14, 2019 2:45 pm

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 :)