Character Or Pixel Counter

Moderator: Moderator Group

Character Or Pixel Counter

Postby JustynR » Tue Dec 17, 2013 4:40 am

I've got a show coming up where I have 7 or 8 different users using a section of a long video wall - like a ticker in a stadium - very wide but very short.

I have built (am building) a Widget where the individual users can type in custom lines of text - up to 3 - and also change how long each line of text is up for.
I am using the "WDTextboxConvertToHorizontalScrolltextPNG" script the and "ResourceReloadMedia" to scroll and update the text in PB.
I have set all of the layers that these will be on to Vertical Fit so that the size will always be the same... but the scroll speed will be different all the time.

I would love either (or both) the ability to count the characters of a text box, and / or the total pixels in WD to be able to adjust the speed using a range node and so on.

Cheers,
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 560
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: Character Or Pixel Counter

Postby Dennis Kuypers » Wed Dec 18, 2013 10:44 am

Hi,

Are these available to you?

Code: Select all
VGetStringLength,VarName,String
VGetAssetMediaWidthByID,VarName,FolderID,FileID
VGetAssetMediaWidthByName,VarName,AssetName

When using the VGetAssetMedia* functions you might call "PBProjectRefresh" before retrieving values.

Best regards
Dennis
Dennis Kuypers
(former Product Developer, Software)
Dennis Kuypers
coolux Germany
 
Posts: 771
Joined: Thu Jul 05, 2012 12:18 pm

Re: Character Or Pixel Counter

Postby JustynR » Wed Dec 18, 2013 3:43 pm

Exactly what I needed...

I can amend these to work!

Thank you very much, I knew it had to already be possible!
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 560
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: Character Or Pixel Counter

Postby djrappa » Wed Jan 08, 2014 6:41 pm

I'd be interested to see the finish result with your scrips and nodes to make it all work if you wouldn't mind sharing...
Cheers
Clint Dulieu
Dulio Design
djrappa
 
Posts: 183
Joined: Wed Jul 01, 2009 10:46 am


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 26 guests

cron