Sat, Nov 9, 8:02 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 09 6:42 pm)



Subject: Rendering Preset File Location


ThunderStone ( ) posted Thu, 12 March 2020 at 1:00 PM · edited Fri, 08 November 2024 at 12:29 AM

OR: How the heck do I load my collection of Poser Render Presets into Poser 11???

I have a nice collection of rendering presets that I used in previous versions of Poser. These were tested, tried and true presets. In the Render Tab, the** Load Presets** button is grayed out.

HELP!!!LoadPresetButtonismissing.png


===========================================================

OS: Windows 11 64-bit
Poser: Poser 11.3 ...... Units: inches or meters depends on mood
Bryce: Bryce Pro 7.1.074
Image Editing: Corel Paintshop Pro
Renderer: Superfly, Firefly

9/11/2001: Never forget...

Smiles are contagious... Pass it on!

Today is the tomorrow you worried about yesterday

 


Miss B ( ) posted Thu, 12 March 2020 at 2:34 PM

Hey ThunderStone, I always save a bunch of items, including Render Presets before updating to a new version. I went through this when I first upgraded to PP11, and I finally located all the presets I had saved in the following folder:

AppData > Roaming > Poser Pro > 11 > RenderPresets. I have a subfolder for my SuperFly presets in that folder as well.

The built in SuperFly Render Presets that come with PP11.x can be found in Runtime > prefs > RenderPresents > SuperFly.

Hope this helps.

_______________

OK . . . Where's my chocolate?

Butterfly Dezignz


ThunderStone ( ) posted Thu, 12 March 2020 at 5:02 PM

Yeah, I got that but it's not loading. I have it in the appData > Roaming Poser Pro >11 > RenderPresets How do I get Poser to load it.? I have it also in the same pref >RenderPresets folder as SuperFly but in a folder named "FireFly". It still won't load.


===========================================================

OS: Windows 11 64-bit
Poser: Poser 11.3 ...... Units: inches or meters depends on mood
Bryce: Bryce Pro 7.1.074
Image Editing: Corel Paintshop Pro
Renderer: Superfly, Firefly

9/11/2001: Never forget...

Smiles are contagious... Pass it on!

Today is the tomorrow you worried about yesterday

 


Miss B ( ) posted Thu, 12 March 2020 at 5:31 PM

Hmmmm, then I'm not sure. There may be a setting that needs to be tweaked, but I can't think of what it could be off-hand. If I do recall what it is, I'll let you know.

_______________

OK . . . Where's my chocolate?

Butterfly Dezignz


hborre ( ) posted Thu, 12 March 2020 at 5:51 PM

My only suggestion is to save a dummy preset to activate or create the folder then place the custom presets within. That might work given that only a Superfly folder with content exists.


ThunderStone ( ) posted Thu, 12 March 2020 at 5:54 PM

hborre, Done that . Created a folder for the custom presets but it still will not load./


===========================================================

OS: Windows 11 64-bit
Poser: Poser 11.3 ...... Units: inches or meters depends on mood
Bryce: Bryce Pro 7.1.074
Image Editing: Corel Paintshop Pro
Renderer: Superfly, Firefly

9/11/2001: Never forget...

Smiles are contagious... Pass it on!

Today is the tomorrow you worried about yesterday

 


hborre ( ) posted Thu, 12 March 2020 at 6:38 PM · edited Thu, 12 March 2020 at 6:44 PM

But did you create the folder through saving a dummy preset in Poser?

Edit: I saved a dummy preset through Poser and it appears in the folder pathway Miss B mentions except for the preset file is outside the Superfly folder.


hborre ( ) posted Thu, 12 March 2020 at 6:46 PM

image.png

Try placing your customs there and check Poser after a reboot.


ThunderStone ( ) posted Thu, 12 March 2020 at 7:23 PM

Yes, I got it to work. It has to be outside the subfolder for it to load in the render tab.


===========================================================

OS: Windows 11 64-bit
Poser: Poser 11.3 ...... Units: inches or meters depends on mood
Bryce: Bryce Pro 7.1.074
Image Editing: Corel Paintshop Pro
Renderer: Superfly, Firefly

9/11/2001: Never forget...

Smiles are contagious... Pass it on!

Today is the tomorrow you worried about yesterday

 


hborre ( ) posted Thu, 12 March 2020 at 8:01 PM

YAY!!!


Miss B ( ) posted Thu, 12 March 2020 at 8:36 PM

Excellent news. I'm glad you got it to work.

Thanks for the help hborre, as I couldn't remember what else had to be done, other than where the presets could be found. Earlier I thought there might have been a setting somewhere that needed to be tweaked, and I did check the Poser.ini file, but there's nothing in there about render presets, so I was pretty much at a loss.

_______________

OK . . . Where's my chocolate?

Butterfly Dezignz


hborre ( ) posted Thu, 12 March 2020 at 8:45 PM

There are actually 2 places where those presets can exist; one, in the folder you suggested and the other in a preset folder in the main Poser runtime. It is apparent that previous versions of Poser running just Firefly had the folder all to itself, no need for a secondary, identifying folder like Superfly.


Miss B ( ) posted Thu, 12 March 2020 at 9:55 PM

Very true, and I don't have my old Poser 9 installed on this fairly new laptop, so I can't check to see where the presets were located in that version. I didn't have as many saved presets back then, so never considered it was different from where I have them saved in PP11.2.

_______________

OK . . . Where's my chocolate?

Butterfly Dezignz


HartyBart ( ) posted Fri, 13 March 2020 at 8:03 PM · edited Fri, 13 March 2020 at 8:04 PM

" It has to be outside the subfolder for it to load in the render tab"

Yes, that's something that would be nice to see fixed in Poser 12. So that, for instance, the user's custom Sketch render presets can be logically organised in named folders. Rather than having a huge list to scroll down, which is what Poser 11 currently offers.



Learn the Secrets of Poser 11 and Line-art Filters.


structure ( ) posted Sat, 14 March 2020 at 9:27 AM · edited Sun, 15 March 2020 at 1:00 AM
Forum Coordinator

This script will allow you to store your presets anywhere you like.

it allows you to save and load from any location and stores the

last folder you used as it's default open / save location next time.

# -*- coding: utf-8 -*- 
# ©copyright structure 2001 - 2020
# Firefly Preset Manager
# ================================

import os
import os.path
import poser
import wx

types = "Render Presets (*.prp )|*.prp|"
options = ["Load Preset", "Save Preset", "Delete Preset"]
pref = poser.PrefsLocation()
folder = os.path.join( pref, "structure","rpm" )
file = "lastpath.pth"
start = os.path.join( pref, "RenderPresets" )

def checkprefs( folder, file, lastpath = None ):
    if not os.path.exists( folder ):
        os.makedirs( folder )

    if not os.path.isfile( os.path.join( folder, file) ):
        with open( os.path.join( folder, file), "w" ) as outfile:
            outfile.write( start )

    return True

def choose( title = '' , prompt = '' , OptionList = [] ):
    dialog = wx.SingleChoiceDialog( None, prompt, title, OptionList  )                  # prepare the dialog
    
    if not OptionList == []:                                                            # ensure the list is not empty

        return dialog.GetStringSelection() if dialog.ShowModal() == wx.ID_OK else None  # check the dialog response

def getlastfolder( folder, file ):
    with open( os.path.join( folder, file), "r" ) as infile:
         data = infile.read()
    return data

def managefile( types, start, op = 0 ):
    if not op == 1 and not op == 2:
        return False
    elif op == 1:
        style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST
    else:
        style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT

    dialog = wx.FileDialog(None, "Save a RenderPreset file", start , "" ,  types , style )

    return dialog.GetPath() if dialog.ShowModal() == wx.ID_OK else False

def okcancel( title = None , alertmessage = None, okonly = False ):

    if okonly:
        style = ( wx.OK|wx.ICON_INFORMATION|wx.STAY_ON_TOP )                # test if the dialog requires only an ok button
    else:
        style = ( wx.OK|wx.CANCEL|wx.ICON_INFORMATION|wx.STAY_ON_TOP )      

    ok_dialog = wx.MessageDialog(None, alertmessage, title, style)          # prepare the dialog
    
    return True if ok_dialog.ShowModal() == wx.ID_OK else False             # test dialog response

def putlastfolder( folder, file, path = None ):
    if path == None:
        path = start
    with open( os.path.join( folder, file), "w" ) as outfile:
         outfile.write( path )

def yesno( title = "" , message = "" ):
    # get working folder
    YN_dialog = wx.MessageDialog(None, message, style=wx.YES|wx.NO )

    return True if YN_dialog.ShowModal() == wx.ID_YES else False

scene = poser.Scene()
option = choose("Firefly Preset Manager","Select an option", options )

prefsfile = checkprefs( folder, file )
lastfolder = getlastfolder( folder, file )
start = lastfolder
os.startfile( lastfolder )

if option:
    if option == "Load Preset":
        preset = scene.CurrentFireFlyOptions().LoadPreset
        load = managefile( types, start, 1 )
        save = None
        if load:
            okcancel ("Render Preset Manager","%s has been Loaded" %load, True )
            preset( load )

    elif option == "Save Preset":
        preset = scene.CurrentFireFlyOptions().SavePreset
        save = managefile( types, start, 2 )
        load = None
        if save:
            okcancel ("Render Preset Manager","%s has been Saved" %save, True )
            preset( save )
            putlastfolder( folder, file, os.path.dirname(save) )

    else:
        deletefile = managefile( types, start, 1 )
        if deletefile:
            deletefileok = yesno("Render Preset Manager", "Delete %s are you sure?" %deletefile )
            if deletefileok:
                os.remove( deletefile )
                okcancel( "Render Preset Manager", "%s Deleted" %deletefile, True )
            else:
                okcancel( "Render Preset Manager", "Deletion of %s Aborted!" %deletefile, True )

A copy is available from freestuff

Locked Out


Kerya ( ) posted Sun, 15 March 2020 at 3:47 AM

Thank you so, so much! You are a wonderful person!


HartyBart ( ) posted Sun, 15 March 2020 at 8:50 AM · edited Sun, 15 March 2020 at 8:51 AM

Wonderful, many thanks Structure! It works for Poser's Sketch too, with a few minor tweaks.

To tweak, first unzip again and rename the script file to sketchrenderpresetmanager.py and open it with Notepad++

LINE 11: Change to .pzs for both instances on this line. This .pzs is the custom Sketch preset extension type.

LINE 16: Change to SketchPresets

LINE 75: Under scene = poser.Scene() add the line...

scene.SetCurrentRenderEngine(poser.kRenderEngineCodeSKETCH)

... to have the script automatically set Sketch as the current render engine.

NOW LINE 77: Change to "Poser Sketch Preset Manager".

NOW LINE 85: scene.CurrentFireFlyOptions - note that this does NOT need to be changed. It appears that the preset is loaded for Sketch, even though the script is working on the assumption of FireFly being the current render setting. This must be why there is no scene.CurrentSketchOptions PoserPython method - it's not needed for such things.

AT THE VERY END: Add a new line with...

poser.ProcessCommand(1465)

This will launch Poser's Sketch Designer module on script exit, so you can get a live Preview of your chosen Sketch preset in action.

You'd then make a backup .zip copy of your C:|Users|YOUR_USER_NAME|AppData|Roaming|Poser Pro11|SketchPresets - and then make a new set of sorted and nested folders by Sketch preset type (e.g. Painterly, Charcoals, Gothic, VeryFast etc). You'll still want to be naming your saved presets with meaningful names, such as 1800px_painterly_goo_on_smooth_shaded_fast.pzs



Learn the Secrets of Poser 11 and Line-art Filters.


structure ( ) posted Sun, 15 March 2020 at 9:46 AM
Forum Coordinator

You're welcome guys, hope it's useful enough :) and thanks for the extra info Harty, if you could make that amended script available for people in freestuff that would be cool,

Locked Out


HartyBart ( ) posted Wed, 18 March 2020 at 3:37 AM

Many thanks for the permission, Structure. I've just uploaded it to the Freestuff and it should show up there within 24 hours. I've kept my Sketch version as non-commercial, as yours is, though personally I'd have no worries about its use in a studio pipeline.

Changes:

  • New file-types for the file-selection windows. One of these is .JPG which enables visual previews, for which users would manually save screenshots with the same name as their new Sketch presets.

  • Silently auto-switch the user over to the Sketch rendering engine.

  • Auto-load Sketch Designer after the preset has been selected, for a live preview and tweaking.

  • New "Rename Presets (auto)" option. This uses glob to silently run through all Sketch folders and sub-folders looking for Firefly .PRP and renames them as Sketch .PZS. This workaround is needed because scene.CurrentFireFlyOptions().SavePreset only knows how to save .PRP files, and PoserPython has no scene.CurrentSketchOptions function.



Learn the Secrets of Poser 11 and Line-art Filters.


structure ( ) posted Wed, 18 March 2020 at 9:01 AM · edited Wed, 18 March 2020 at 9:04 AM
Forum Coordinator

HartyBart posted at 2:00PM Wed, 18 March 2020 - #4383891

Many thanks for the permission, Structure. I've just uploaded it to the Freestuff and it should show up there within 24 hours. I've kept my Sketch version as non-commercial, as yours is, though personally I'd have no worries about its use in a studio pipeline.

Changes:

  • New file-types for the file-selection windows. One of these is .JPG which enables visual previews, for which users would manually save screenshots with the same name as their new Sketch presets.

  • Silently auto-switch the user over to the Sketch rendering engine.

  • Auto-load Sketch Designer after the preset has been selected, for a live preview and tweaking.

  • New "Rename Presets (auto)" option. This uses glob to silently run through all Sketch folders and sub-folders looking for Firefly .PRP and renames them as Sketch .PZS. This workaround is needed because scene.CurrentFireFlyOptions().SavePreset only knows how to save .PRP files, and PoserPython has no scene.CurrentSketchOptions function.

you're welcome.

renaming the file could also be done with

                newext = os.path.splitext(save)[0] + ".pzs"
                os.rename(r"" + save, r'' + newext)

or some variation of that

Locked Out


structure ( ) posted Wed, 18 March 2020 at 9:23 AM
Forum Coordinator

This version loads and saves render and sketch presets : renaming the sketch presets to pzs as it goes

# -*- coding: utf-8 -*- 
# ©copyright structure 2001 - 2020
# Firefly Preset Manager
# ================================

import os
import os.path
import poser
import wx

Engines = ["FireFly Presets", "Sketch Presets"]
options = ["Load Preset", "Save Preset", "Delete Preset"]
pref = poser.PrefsLocation()
folder = os.path.join( pref, "structure","rpm" )
file = "lastpath.pth"


def checkprefs( folder, file, lastpath = None ):
    if not os.path.exists( folder ):
        os.makedirs( folder )

    if not os.path.isfile( os.path.join( folder, file) ):
        with open( os.path.join( folder, file), "w" ) as outfile:
            outfile.write( start )

    return True

def choose( title = '' , prompt = '' , OptionList = [] , response = None ):
    dialog = wx.SingleChoiceDialog( None, prompt, title, OptionList )                   # prepare the dialog
    
    if not OptionList == []:                                                            # ensure the list is not empty

        return dialog.GetStringSelection() if dialog.ShowModal() == wx.ID_OK else None  # check the dialog response

def getlastfolder( folder, file ):
    with open( os.path.join( folder, file), "r" ) as infile:
         data = infile.read()
    return data

def managefile( types, start, op = 0 ):
    if not op == 1 and not op == 2:
        return False
    elif op == 1:
        style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST
    else:
        style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT

    dialog = wx.FileDialog(None, "Save a RenderPreset file", start , "" ,  types , style )

    return dialog.GetPath() if dialog.ShowModal() == wx.ID_OK else False

def okcancel( title = None , alertmessage = None, okonly = False ):

    if okonly:
        style = ( wx.OK|wx.ICON_INFORMATION|wx.STAY_ON_TOP )                # test if the dialog requires only an ok button
    else:
        style = ( wx.OK|wx.CANCEL|wx.ICON_INFORMATION|wx.STAY_ON_TOP )      

    ok_dialog = wx.MessageDialog(None, alertmessage, title, style)          # prepare the dialog
    
    return True if ok_dialog.ShowModal() == wx.ID_OK else False             # test dialog response

def putlastfolder( folder, file, path = None ):
    if path == None:
        path = start
    with open( os.path.join( folder, file), "w" ) as outfile:
         outfile.write( path )

def yesno( title = "" , message = "" , answer = None ):
    # get working folder
    YN_dialog = wx.MessageDialog(None, message, style=wx.YES|wx.NO )

    return True if YN_dialog.ShowModal() == wx.ID_YES else False

scene = poser.Scene()
option = choose("Preset Manager","Select an option", options )
savetype = choose("Preset Manager", "Select an Engine", Engines )

if savetype == "FireFly Presets":
    start = os.path.join( pref, "RenderPresets" )
    types = "Render Presets (*.prp)|*.prp|" 
    scene.SetCurrentRenderEngine(poser.kRenderEngineCodeFIREFLY)
else:
    start = os.path.join( pref, "SketchPresets" )
    types = "Sketch Presets (*.pzs)|*.pzs|"
    scene.SetCurrentRenderEngine(poser.kRenderEngineCodeSKETCH)


prefsfile = checkprefs( folder, file )
lastfolder = getlastfolder( folder, file )
start = lastfolder

if option:
    if option == "Load Preset":
        preset = scene.CurrentFireFlyOptions().LoadPreset
        load = managefile( types, start, 1 )
        save = None
        if load:
            okcancel ("Render Preset Manager","%s has been Loaded" %load, True )
            preset( load )

    elif option == "Save Preset":
        preset = scene.CurrentFireFlyOptions().SavePreset
        save = managefile( types, start, 2 )
        load = None
        if save:
            okcancel ("Render Preset Manager","%s has been Saved" %save, True )
            preset( save )
            if types == "Sketch Presets (*.pzs)|*.pzs|":
                save = os.path.splitext(save)[0] + ".prp"
                newext = os.path.splitext(save)[0] + ".pzs"
                os.rename(r"" + save, r'' + newext)
            putlastfolder( folder, file, os.path.dirname(save) )

    else:
        deletefile = managefile( types, start, 1 )
        if deletefile:
            deletefileok = yesno("Render Preset Manager", "Delete %s are you sure?" %deletefile )
            if deletefileok:
                os.remove( deletefile )
                okcancel( "Render Preset Manager", "%s Deleted" %deletefile, True )
            else:
                okcancel( "Render Preset Manager", "Deletion of %s Aborted!" %deletefile, True )

Locked Out


maur_2005 ( ) posted Sat, 28 March 2020 at 10:21 PM

Thank you so much for the script, by the way... Is there a way to save the preview render settings and comic book preview options?


structure ( ) posted Sun, 29 March 2020 at 12:45 AM
Forum Coordinator

you're welcome, there is no way that I am aware of at this time.

Locked Out


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.