Is it possible to script "Source-Set settings" to reference an external file? #731
-
Greetings! I must preface I am no programmer of sort and all I do is fiddle around stuff until stuff eventually works. I now unfortunately face an issue that requires better knowledge than what I currently have. My problem: I can set the condition properly. "If file content change, then". That works flawlessly. I see that "source" menu allows to set settings. { I would like to add to the "speed_percent" value something like "(X/120)*100" and then round the number to closest full digit, where X is an outsourced dynamic value from a different file (120 is the standard visual BPM my video is running at). Thank you kindly for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
What you are trying to achieve should be possible by using variables. First you need to set up a macro that assigns the contents of the file of interest to a given variable. Next you can simply reference this variable in your macro that controls the settings of the given source by using this pattern: So to follow the example from above a macro, that controls the speed of a media source based on the contents of a given file, could look like this: I hope that helps! :) |
Beta Was this translation helpful? Give feedback.
-
Greetings! Your explanation worked very well and it partially performs what I want! Thank you so much for this. ^^ By partially I mean two issues:
Thank you so much for this! :D |
Beta Was this translation helpful? Give feedback.
-
Nevermind for the math formula! Within the variables I found what I needed and I followed the same principles you mentioned to make it work. Thank you! |
Beta Was this translation helpful? Give feedback.
What you are trying to achieve should be possible by using variables.
First you need to set up a macro that assigns the contents of the file of interest to a given variable.
This can be done using a macro similar to this:
Next you can simply reference this variable in your macro that controls the settings of the given source by using this pattern:
${variable name here}
So to follow the example from above a macro, that controls the speed of a media source based on the contents of a given file, could look like this:
I hope that helps! :)
Let me know if you have any questions!