editing project labels and numbers

Forum to ask for any help
Post Reply
tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

editing project labels and numbers

Post by tytherman » Wed Oct 23, 2013 4:02 pm

I cannot seem to find a way to edit a project label or project number once I have set it up. even deleting and starting again would be an idea but I cannot find how to do this either??

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: editing project labels and numbers

Post by DemoPad » Wed Oct 23, 2013 4:12 pm

Use the small expand icon - bottom right of the menu, which gives you more options (for many menus)

tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

Re: editing project labels and numbers

Post by tytherman » Wed Oct 23, 2013 4:23 pm

DOH!

thanks sorted!

tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

Re: editing project labels and numbers

Post by tytherman » Wed Oct 23, 2013 4:44 pm

is there a simple way with project numbers to convert seconds into minutes? i.e. 60 secs = 1, am trying to get movie duration to show in minutes using the xbmc example project?

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: editing project labels and numbers

Post by DemoPad » Wed Oct 23, 2013 4:57 pm

You can convert seconds to minutes simply by setting a number equal to:

[/]60

You can either use a new number variable to do this, or use the same one, just after you set it in seconds.

tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

Re: editing project labels and numbers

Post by tytherman » Wed Oct 23, 2013 5:13 pm

ok I am using a dynamic label - named film duration which retrieves its info from the following 2 way output:

"runtime":(.*),"season"

where would I add (/)60 in this?

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: editing project labels and numbers

Post by DemoPad » Wed Oct 23, 2013 5:27 pm

You can only perform those operations on numbers, not labels - so assign that feedback to a number first, then set the number to:

[/]60

then assign your label equal to :

[thenameofthenumbervariable]

to display it

tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

Re: editing project labels and numbers

Post by tytherman » Wed Oct 23, 2013 6:51 pm

I am sure to many that sounds really obvious... but I must confess it doesn't to me! :?

I have created a project number range from 0 to 10,000 and called it "duration", then the feedback from xbmc i pointed to the number range "duration". now I cannot see where I would add the (/)60?? now the only choice I have for labels is to pick one from a list I cannot add one, so if I add a label called duration, how do i associate it to this number?

beginning to think seconds isn't that bad! ;)

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: editing project labels and numbers

Post by DemoPad » Wed Oct 23, 2013 7:47 pm

Ok- create a label called 'TimeInMinutes', and a number called 'TimeInSeconds'

In the 2-way feedback routine, assign your pattern to the number 'TimeInSeconds'. Then you will notice it says '0 actions double click to edit' - double click that rule and add some extra actions. These will occur after 'TimeInSeconds' is set to the pattern match.

1st Action: Set a Number - 'TimeInSeconds'
Data: [/]60

TimeInSeconds now contains a new number, what is was divided by 60.

2nd Action: Set a label - 'TimeInMinutes'
Data: [TimeInSeconds]

Now if you assign the TimeInMinutes label to something on the GUI, you will see it.

tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

Re: editing project labels and numbers

Post by tytherman » Wed Oct 23, 2013 9:27 pm

great that was a big help.... works perfectly!

Using the same logic if I want to display the number within range - specifically an onkyo amp volume - is there a way of actually showing the value of the volume above the guage?

I have volume as a number and the guage works fine, if I now want to add a label with the actual value do I need go into every feedback as they required one per feedback and set the label or is there an easier way?

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: editing project labels and numbers

Post by DemoPad » Wed Oct 23, 2013 9:41 pm

You'd need to go in to each feedback rule & add a single action: set a label to the appropriate volume text. Unfortunately, because of the nature of the Onkyo feedback (hex values), there is no easy way. If it was a Yamaha amp for example, you'd have a single pattern match:

Vol=(.*)

and a single assign to a label:

[AmpVolume]

which would do it all - rather than having to do it for each possible value individually....

tytherman
Posts: 64
Joined: Fri Dec 28, 2012 4:41 pm

Re: editing project labels and numbers

Post by tytherman » Sun Oct 27, 2013 2:50 pm

thanks for all the pointers everything is looking good now, but I would like to know is there a way to carry out a more complex equation to generate a number?

I would like to calculate the time remaining for a video in XBMC. as I see it I now have the duration in minutes and the percentage of the video completed, I can also get the "time" but the response is in hours milliseconds minutes and seconds. so assuming I know the length is X minutes and it is Y% of the ay through I would like to calculate the following and then display it:

"X" minus ("X" multipliled by "Y")

of course if anyone knows a simpler way like how to query the time remaining and display that - then that would be better.

thanks

Post Reply