editing project labels and numbers
editing project labels and numbers
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??
Re: editing project labels and numbers
Use the small expand icon - bottom right of the menu, which gives you more options (for many menus)
Re: editing project labels and numbers
DOH!
thanks sorted!
thanks sorted!
Re: editing project labels and numbers
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?
Re: editing project labels and numbers
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.
[/]60
You can either use a new number variable to do this, or use the same one, just after you set it in seconds.
Re: editing project labels and numbers
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?
"runtime":(.*),"season"
where would I add (/)60 in this?
Re: editing project labels and numbers
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
[/]60
then assign your label equal to :
[thenameofthenumbervariable]
to display it
Re: editing project labels and numbers
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!

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!

Re: editing project labels and numbers
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.
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.
Re: editing project labels and numbers
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?
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?
Re: editing project labels and numbers
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....
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....
Re: editing project labels and numbers
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
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