davo opened this issue on Jan 15, 2023 ยท 16 posts
davo posted Sun, 15 January 2023 at 12:06 PM
Daz Studio can have a dialog box with text open up when you click on an icon in their library. I would like to do the same with Poser, is that possible? How can you set up an icon in the library to open a text file in poser?
Cheers,
Davo
hborre posted Sun, 15 January 2023 at 12:40 PM Online Now!
Do you mean showing the metadata of an associated icon?
davo posted Sun, 15 January 2023 at 1:27 PM
No, I mean you click on an icon in the library and a pop up window will have something like some notes in it. For example see image I attached. This is what you can do in Daz Studio..
hborre posted Sun, 15 January 2023 at 1:36 PM Online Now!
AH! I haven't seen anything that is built into Poser for text files. I don't know if it could be possible with a Python Script.
davo posted Sun, 15 January 2023 at 1:48 PM
It would be reaaallly useful to have a feature like this so you can open notes pertaining to a specific folder with some special instructions so people don't have to dig up the readme files.
RedPhantom posted Sun, 15 January 2023 at 2:19 PM Site Admin
the .xmp files that are created with the poser files can be used in this manner and you would see it at the bottom of your library. Unfortunately, most creators don't bother. You can edit them yourself if you desire. I know it's a big task if you have a large runtime. To get that to show in your runtime, click on the 3 dots at the bottom of the library panel to show the settings and check the extended details box.
Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage
Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10
davo posted Sun, 15 January 2023 at 2:37 PM
the xmp way is a possibility, but there is a lot of info in my readme that I want to give for a specific folder, plus I'm betting most people don't show the xmp info in their libraries, it's kind of a dig for them. The simple popup is what I'd like to achieve. I posted this request over in the python forum, maybe this is a new idea for scripter.
hborre posted Sun, 15 January 2023 at 2:41 PM Online Now!
There is a Metadata Builder that is built in under Scripts. It is more in-depth than what is available in the Library but whatever data is entered there will appear in the .XML file. But, as RedPhantom alluded to, it is vastly underused by most vendors.
nerd posted Sun, 15 January 2023 at 3:35 PM Forum Moderator
This requires 2 parts. The actual library file that's very simple put this in your CR2, Pose or what ever:
{
version
{
number 12
}
runPythonScript "WhateverYouCalledTheReadme.py"
}
The second part can be as fancy or simple as you like. The easiest is to just use Poser's "Simple dialog" for the text thus:
import poser
poser.DialogSimple.MessageBox("This is my super interesting description")
Put the python that contains your text in the came library folder as the actual library file. Like this ...
Now if that's not fancy enough for you can open a web browser the same way ...
import poser
try:
import webbrowser
webbrowser.open_new("http://www.mycoolwebsite.com/MyAwesomeReadme.html")
except:
MessageBox("There's a problem, please visit http://www.mycoolwebsite.com/MyAwesomeReadme.html")
The web page can be anything the browser can display.
P.S. This is how the vendor links that are in some products work. They just link to the vendors store page instead of a readme.
donnena posted Sun, 15 January 2023 at 3:36 PM
I have seen this with poser, but I don't remember with which product. Pretty sure it's a python script.
;>
Andy!
Richard60 posted Sun, 15 January 2023 at 3:40 PM Online Now!
Also remember the web page can be located on the computer so you don't need to have a website in the cloud.
Poser 5, 6, 7, 8, Poser Pro 9 (2012), 10 (2014), 11, 12, 13
davo posted Sun, 15 January 2023 at 5:17 PM
nerd posted at 3:35 PM Sun, 15 January 2023 - #4453982
This requires 2 parts. The actual library file that's very simple put this in your CR2, Pose or what ever:
{
version
{
number 12
}
runPythonScript "WhateverYouCalledTheReadme.py"
}
The second part can be as fancy or simple as you like. The easiest is to just use Poser's "Simple dialog" for the text thus:
import poser
poser.DialogSimple.MessageBox("This is my super interesting description")
Put the python that contains your text in the came library folder as the actual library file. Like this ...
Now if that's not fancy enough for you can open a web browser the same way ...
import poser
try:
import webbrowser
webbrowser.open_new("http://www.mycoolwebsite.com/MyAwesomeReadme.html")
except:
MessageBox("There's a problem, please visit http://www.mycoolwebsite.com/MyAwesomeReadme.html")
The web page can be anything the browser can display.
P.S. This is how the vendor links that are in some products work. They just link to the vendors store page instead of a readme.
Nerd! thank you, this is going in the right direction, no knowing any python, I'm just guessing at how to enter sytax and here is what I'm experiencing so far.
If this is possible to have paragraphs, can you provide an example syntax? Thanks!
Davo
nerd posted Sun, 15 January 2023 at 7:26 PM Forum Moderator
If you want formatting beyond just text use the HTML solution. And as pointed out above the HTML doesn't have to be on the web. It can be in a local folder. It can be a PDF too.
webbrowser.open_new("http://www.mycoolwebsite.com/MyAwesomeReadme.PDF")
nerd posted Sun, 15 January 2023 at 7:31 PM Forum Moderator
Oh and I almost forgot yes you can do some tiny formatting in the simple dialog ...
import poser
poser.DialogSimple.MessageBox("1. This is my super interesting\n2. There's even more!")
But the simple dialog won't expand if theres more than will fit. That's why the web link is probably the better solution.
nerd posted Sun, 15 January 2023 at 7:33 PM Forum Moderator
davo posted Wed, 18 January 2023 at 5:05 PM
I've just had an amazing conversation over in the python forum where HartyBart and Y-Phil came up with some solutions. Y-Phils dynamic dialog box works wonders as you can see...
Now these readme popups can let me add more info to a specific folder rather than the tiny 91x91 png files I used to use to add notes on how/what to parent figures to in each folder. woo-hoo!
Here is a link to the thread:
https://www.renderosity.com/forums/threads/2976665/text-window-that-pops-up-from-an-icon-in-a-library
Thanks for all your input guys!