Profile

Ben Stahl

Contact Details

My Content

1 to 14 of 14 total
Posted By Ben Stahl 03-22-2021 02:14
Found In Egroup: Graphics
\ view thread
You can do this but be careful, some people will not have simple two word names. For example, if your guest is Tommy Lee Jones, the result probably won't be what you want. Separating it using the space before the last word can fail too (Tim Hardaway Jr., Rip Van Winkle, etc.). #XPression
Posted By Ben Stahl 09-24-2020 16:58
Found In Egroup: Graphics
\ view thread
Hi Simon, thank you for the reply and suggestion. It's funny you mention packing multiple data bits together in one string because that's exactly what we're doing for another show, we're even using the pipe character as a separator (unpacking into an array in a script using the VBScript split function). ...
Posted By Ben Stahl 09-23-2020 23:18
Found In Egroup: Graphics
\ view thread
I have the same question, where in the scripting interface can we know for sure that all Datalinq fields in the scene are done updating? We have a few scenes that need to script (in the scene scripting areas) on Datalinq fields and the updates need to happen before the script runs. They update correctly ...
Posted By Ben Stahl 09-22-2020 21:26
Found In Egroup: Graphics
\ view thread
We do something similar, but to make it easier on producers, they can just wrap whatever they want highlighted with curly braces. A script on the text field OnSetText does the replacement of "(" with "(FontHighlightName)" and ")" with "(FontNormalName)" (or whatever your font names are). Then they can ...
Posted By Ben Stahl 01-21-2020 21:33
Found In Egroup: Graphics
\ view thread
The VBScript trim() function only removes whitespace on the left and right of a string, so I don't think it will remove line breaks in the middle of other non-whitespace characters. Can you just use the Replace function on the string to get rid of them (replace line break characters with empty strings)? ...
Posted By Ben Stahl 01-21-2020 20:55
Found In Egroup: Graphics
\ view thread
Hi Brian, when I say "use elsewhere" I mean use elsewhere within the same scene, not in a different scene, sorry for not making that clear. What I'm trying to do is use a DataLinq key to switch some things in preview mode. So if putting the scene online is a requirement for the key to be set, that sounds ...
Posted By Ben Stahl 01-16-2020 21:01
Found In Egroup: Graphics
\ view thread
Hi, I am having a problem setting a scene Datalinq key from a text object in OnSetText. I have looked at many other posts with people trying to do the same, some say this works, some say it doesn't. I believe I am scripting it correctly, and inside the script, the key does appear to be set. However, ...
Posted By Ben Stahl 10-29-2019 23:29
Found In Egroup: Graphics
\ view thread
Do you have anything that can tell your script what type of stat it is? For example, if your stat label is in a text field then you could do something like if statLabel.text = "FG" then Full.text = first.text + "/" + second.text else Full.text = first.text end if Or if second.text ...
Posted By Ben Stahl 10-29-2019 23:16
Found In Egroup: Graphics
\ view thread
Where is your script running? If it's in OnPreviewRender, you'll want to duplicate it to OnBeforeOnline to see it live. #XPression
Posted By Ben Stahl 10-28-2019 20:11
Found In Egroup: Graphics
\ view thread
Yeah, depending on where your script is running, it could be that DataLinq is doing something to the text fields. I would verify the current contents of the text fields when the script runs using debugMonitor. It sounds like somehow your text fields are becoming non-empty when the script runs. Do you ...
Posted By Ben Stahl 10-28-2019 19:15
Found In Egroup: Graphics
\ view thread
Also, make sure your "empty" lines are actually empty, for example if they contain only a space or tab character, they may look empty in your preview, but won't be considered empty by the script. You can use the trim function to clean them up to be safe. if trim(Line1.text) <> "" then ... #XP ...
Posted By Ben Stahl 10-28-2019 18:57
Found In Egroup: Graphics
\ view thread
If you had much more than 3 then you want to do this in a loop so you're not duplicating code, but in this case I think it would be cleaner to evaluate each one separately. Just make a counter and increment it for each field that is not empty. Something like this: dim notEmptyCount as integer = 0 ...
Posted By Ben Stahl 10-23-2019 18:20
Found In Egroup: Graphics
\ view thread
I would suggest as a future feature an additional level of scripting that is "more global": available to ALL projects on that machine. Maybe Application Global Scripts or some such. This would be very useful for building up libraries of common functions you will re-use for many projects. Right now you ...
Posted By Ben Stahl 10-17-2019 21:53
Found In Egroup: Graphics
\ view thread
We had this problem on our Designer machine (unresponsive Debug Monitor) and I put in a ticket, a helpful Ross tech support dude TeamViewered into our machine and fixed it. Here's what he appears to have done on the command line (ie. Command Prompt app). Obviously adjust for the correct path where your ...