YOUR ACCOUNT

Login or Register to post new topics or replies
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Hello, I hace seen many examples of rendering using the command líne renderer but regrettably I still do not understand how to build the Code to make It work

Please, someone that already knows can be so kind to make a xlm script to be able to batch render all the available presets of a custom filter ?

I have a filter with 99 presets and would to render them all separately at 1200 x 1200 pixels

Thanks very much for any possible help
  Details E-Mail
einfach Alberto
Posts: 15
Filters: 1
Hello, maybe i can help further. I am learning to use the command line renderer (on Windows 10) and managed to get it to work. I would try to create an xml file for you and assume that you mean a texture filter, not an effect filter.
The following info is still missing:
- desired image format (if necessary also bit depth/quality)
- complete export path
- complete path with name of your filter

First of all, i don't know if managing 99 presets is possible at all. That remains to be seen. So far i have only applied one preset to several hundred images.
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Thanks very much for your possible help and is much appreciated and very good that you are able to understand how to use the command líne renderer

Yes, It is a texture filter
Spago Rebirth by Ramlyn

The filter has 2.4 Mb so I can not upload It here but I can send you by email if you want and need

EXPORT FORMAT - PNG 8 bit with transparency

The export path can be directly in the filter forge folder

Export of filter and name Will put later

Quote
einfach Alberto wrote:
First of all, i don't know if managing 99 presets is possible at all. That remains to be seen. So far i have only applied one preset to several hundred images.


Yes, this is exactly the problem, this is the reason why I am asking, because I do not know how to specify the presets and I do not know if there is ALL presets or you have to specify one by one each preset

If you have to specify one by one, I can write myself the 99 presets so you do not bother and worry with this
  Details E-Mail
einfach Alberto
Posts: 15
Filters: 1
As far as i understand, you know how to write an xml file, but not how to ins ert the different presets.

I use a kind of construction kit system with notes to create. With it, at least simple tasks can be accomplished with relatively little effort, as in your case.

I have successfully tested the mentioned filter. In png format with 8 bit. It is very CPU intensive. Per image with a resolution of 1200x1200 pixels it took sometimes over 3, 4 minutes. Because you wanted transparency enabled - it should be mentioned that the original presets have no transparency, so the results had full opacity. The original filter fr om Ramlyn has only 20 presets. After that, the renderer started all over again. Here i stopped rendering prematurely after more than an hour.

Edit: I added a custom (21st) preset, but the renderer ignores it and starts over. This probably means that 99 pieces are not possible. To test, i copied the filter to its own folder and tried again. Again without success. As a workaround you could copy the filter until you have 5 pieces with 20 presets each.

Attached is an xml file wh ere you only have to replace the paths (Result path and Filter value).

[ SpaceRayBatch.xml ]
  Details E-Mail
einfach Alberto
Posts: 15
Filters: 1
Here is a workaround:
1. copy the filter until you have 5 pieces and name them version 1 to version 5 (with spaces)
2. divide the presets: delete the last 80 for version 1. with the shift key this works fast. For version 2, delete the first 20, keep the next 20 and delete the rest. Repeat the same steps until version 5.
3. Now you have 5 versions with different presets and only need to adjust the paths in the xml file by search and replace. The corresponding places are marked.
4. Start the command line renderer with the 'SpaceRayBatch V2 5x20 presets' file.

[ SpacerayBatch V2 5x20 Presets.xml ]
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Thanks very much for taking the time and try to help with this and is much appreciated and will now ttry to do it as you have suggested with 5 filter copies and will see if it works

Quote
einfach Alberto wrote:
In png format with 8 bit. It is very CPU intensive. Per image with a resolution of 1200x1200 pixels it took sometimes over 3, 4 minutes. Because you wanted transparency enabled - it should be mentioned that the original presets have no transparency, so the results had full opacity.


Yes, I know that it is not fast, and this is why I want to do it with batch rendering so I leave it rendering until it finishes whenever it could be by night

Yes, it is needed transparency to be able to combine multiple parts together and thta that you can be able to see through them as it happens already in the filter but removing the background using alpha instead of a color

I will have to rebuild all the 99 presets because all of them have black background so I can not render it with background

Thanks very much for your help and wish you all the best
  Details E-Mail
einfach Alberto
Posts: 15
Filters: 1
For testing i had tried again to use more than 20 presets in an xml file with the command line renderer. Additionally i added 20 presets. To my amazement it worked. It rendered 40 (20 original + 20 custom) presets without skipping. Otherwise there was a message "Preset '20', '21', ... could not be found. Default preset will rendered instead."

At the moment it is a mystery to me why it works now. The only thing i noticed is that despite new presets, the file in the System\Library folder is not changed and thus the command line renderer naturally cannot find any additional presets. As written in the previous post, however, i remember also test a custom folder. Maybe i made a mistake somewhere or overlooked something.

So it would be worth trying the first uploaded 99 presets xml file. Before that you should check if the filter file you want to use is stored in a custom folder and up to date.
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 3491
Quote
einfach Alberto wrote:
To my amazement it worked. It rendered 40 (20 original + 20 custom) presets without skipping.


I'm surprised that it worked smile:) The recommended workflow is to create an editable copy (a custom filter) and specify it in the batch task.
  Details E-Mail
einfach Alberto
Posts: 15
Filters: 1
Quote
I'm surprised that it worked smile:) The recommended workflow is to create an editable copy (a custom filter) and specify it in the batch task.


That's what i meant, in the custom folder it works. What i still wanted to test, to leave the original presets at 20 pieces, but to overwrite them. Then i noticed that an overwrite (in the system folder) is not possible. At least not via Filter Forge.

Furthermore i tried to use my own HDRI environments. 1 filter in the user defined folder with several presets, one of them with own HDRI environment. As soon as a preset contains such one the message appears in all tasks:
"Some of lighting enviroments required for this filter are missing. The default enviroment will be used instead." in the command line renderer. This could be solved by copying the custom HDRI environment to the folder C:Program Files\Filter Forge 11\Enviroments.

It would be helpful if you could point out in the help page of the command line renderer that
- when using custom presets, the filter should first be copied to a custom folder and the corresponding path must be written to the XML file
- when using custom HDRI environments, copy them to the Program Files folder.

This would save us users time to experiment.
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Quote
einfach Alberto wrote:
It would be helpful if you could point out in the help page of the command line renderer that
- when using custom presets, the filter should first be copied to a custom folder and the corresponding path must be written to the XML file
- when using custom HDRI environments, copy them to the Program Files folder.

This would save us users time to experiment.


Thanks for testing and for this suggestion, so then it is better that you use the command line renderer with custom presets it should not be with the original from library, and must be used with a copy of it in custom folder, and it would need to use the corresponding path to this copy of the filter
  Details E-Mail
patrizza
Posts: 12
It's possible to do it with FFEasyRender without much hassle. Do you have the tool? The website is not functioning anymore.
FFEasyRender 3.0 Beta 1 is the one I have along with FFEasyMorph
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

22 unregistered users.