davo opened this issue on Jan 15, 2023 ยท 16 posts
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