How count image

Moderator: Moderator Group

How count image

Postby alverman » Sun May 27, 2012 11:51 am

Is possible count images in a folder on manager?
Thanks. Alberto
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby Markus Zeppenfeld » Tue May 29, 2012 8:43 am

Hi Alberto,

at the moment it is not possible to count files within the GUI.
What are you trying to reach? Would you only need a specific file type to count like images, or would you need the complete amount of files within your project?

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How count image

Postby alverman » Tue May 29, 2012 9:41 am

My need would be to make a fade between two images automatically adding layer on layer 1 and layer 2.
So I need to know how many images I have in the folder.
The images are numbered sequentially
1.jpg
2.jpg
3.jpg
....
....
10.jpg
Theoretically I know how many images are there in a folder with the Watch folder node
Starting at the beginning I would 1.jpg opacity 255 on layer 1 and layer 2 opacity 0 without any image.
At the push of a button I assign an image to layer 2 and then fadein layer 2 and fadeout layer 1 and so on of the following.

How can I make this automatic?
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby alverman » Tue May 29, 2012 2:27 pm

How I can increment a variable ?
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby alverman » Tue May 29, 2012 4:37 pm

If I assign the path of a watch folder node in a string var and save the projet it fail the save and crash WD!!
When I reload the project say varius error and lost half code
When I find a solution WD dont help me :evil:

Alberto

In variable list I see on the var value: System.String[]

This is the error:
System.InvalidCastException: Cast non valido dal tipo 'String()' al tipo 'String'.
in Microsoft.VisualBasic.CompilerServices.Conversion.ToString(ObjectValue)
in PB_Widget_Designer.SaveConfig.SaveData(String sfile, Boolean overwrite,Boolean IsNewFile)
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby Markus Zeppenfeld » Tue May 29, 2012 4:58 pm

Hi Alberto,

first of all: within the new release Rev249 of the Widget Designer PRO, the playlist feature is included. This way you transfer the project tree inside the WD and you can assign all of your images to the playlist. This will automatically be played back on two assigned layers.

If you want to increase an integer variable take your variable and the command vadd.
e.g. "vadd,vcounter,vcounter,1" - This way you add into variable vcounter the value from itself (vcounter) and value "1".

I will have to check if I can reproduce your issue with the string variable.

Have fun
Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How count image

Postby alverman » Tue May 29, 2012 5:49 pm

I am using 249 but it is not convenient playlist control for the purpose of my next job.
Then playlists has the default times while I need a control that I change the slide by pressing a button, maybe a big button.
Another thing wrong with the playlist control, at least to me, is that the fade you can not change, and then I abandoned the idea of ​​using this control
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby Markus Zeppenfeld » Wed May 30, 2012 2:27 pm

Hi!

Type in a different time for the fade an go ahead...
If you just need to crossfade the layers, what about easily programming all on the timeline and just triggering a go with the widget. Just another idea.
I could reproduce your issue with saving the variable path. We will have a look at that. Thanks for reporting.

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How count image

Postby alverman » Wed May 30, 2012 9:10 pm

Another Watch folder bug !!!!!!
When I use the watch folder in a project and make empty WD crash forever
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby Markus Zeppenfeld » Thu May 31, 2012 9:10 am

Thanks for the tip!

We already had a look inside the watch folder and will solve these issues...

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How count image

Postby Markus Zeppenfeld » Thu May 31, 2012 4:01 pm

Hi again,

what about the script VGetFileCount,'VarName','Folder'?
I totally forgot about this script.

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How count image

Postby alverman » Thu May 31, 2012 11:34 pm

Markus Zeppenfeld wrote:Hi again,
what about the script VGetFileCount,'VarName','Folder'?
I totally forgot about this script.
Markus


For me it is essential to know the number of files in a folder and this script has problems because it does not produce results !!
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby Markus Zeppenfeld » Fri Jun 01, 2012 8:18 am

Hi!

I cannot reproduce any kind of problem at the moment.
I created an integer variable and used the script:

VGetFileCount,Variablename,C:\coolux\content

and the script returned a value to the variable.

Maybe you mistyped something? Or did you use a string variable to fill the number in?

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: How count image

Postby alverman » Sat Jun 02, 2012 1:39 pm

It works if you put the path directly in the script ...... and this makes little sense!
But if the path assigning it to a variable 'path' and assign it the result to a variable 'test' and do:

VGetFileCount,test,path

do not return anything !!

Alberto
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: How count image

Postby Markus Zeppenfeld » Mon Jun 04, 2012 9:54 am

Hi again,

I can confirm this. This will be fixed as well within the next release.

***Edit: No bug, see next post...***

Sorry again
Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Next

Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 15 guests

cron