Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Isadora: User Patches, Tips & Tricks:
Movie counter actor

 

 


hartsteins
Novice

Apr 12, 2008, 12:48 AM

Post #1 of 4 (663 views)
Shortcut
Movie counter actor Can't Post

I made a handy actor that translates movie player position into minutes & seconds. I didn't need it to calculate hours, but it would be easy to adapt.

input parameters are:
Position = movie position
Count Dir = counter direction (count up or count down)
Movie Select = movie selection

output parameters are:
Minutes
Seconds

- Greg


(This post was edited by hartsteins on Apr 12, 2008, 1:42 AM)
Attachments: Movie Counter.iua (20.4 KB)


skulpture
User


Apr 12, 2008, 3:42 AM

Post #2 of 4 (650 views)
Shortcut
Re: [hartsteins] Movie counter actor [In reply to] Can't Post

Cheers thanks for sharing.


An instant without duration....

www.grahamthorne.co.uk


Mark Coniglio
TroikaTronix / Moderator

Apr 15, 2008, 10:17 AM

Post #3 of 4 (627 views)
Shortcut
Re: [hartsteins] Movie counter actor [In reply to] Can't Post

Thanks for the actor... but wouldn't you want these values as numbers not strings? I think you're using the String Formatter actor to ensure that the numbers with decimal points get turned into integers. You can also do this by making a simple user actor with a float type input, and an integer type output. That way you can drop the decimal points easily.

Maybe that's useful...

Best,
Mark

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Mark Coniglio / TroikaTronix
Creator of Isadora


hartsteins
Novice

Apr 15, 2008, 10:48 AM

Post #4 of 4 (624 views)
Shortcut
Re: [Mark Coniglio] Movie counter actor [In reply to] Can't Post

Mark -

From a calculation point of view you are completely correct - keeping the data in number form would be more useful. The reason I have them as strings is that I use this actor solely as movie timer feedback to my control panel and feed the data into "edit Text" controls.

I have had 2 problems using number controls for this application. Primarily they truncate the initial "0" needed to make time display as i need (01:23 instead of 1:23). In addition, the control doesn't have the format options that the editText control does (alignments...etc).

BUT - the editText had it's own bunch of oddities - It always seems to remain above the comment fields regardless of how I layer them. Also is there a way to toggle editabiilty of the text field (this may be a future request, but it would be great to be able to have a text field that was only editable programmatically blocking control panel input - even turn edit on & off programmatically as well).

Thanks as always for a great product. It's insane how quickly iSadora allows me to create media solutions. Cheers!

Greg

 
 
 


Search for (options) copyright © TroikaTronix 2007