28 threads found!
Thread | Author | Replies | Views | Last Reply |
---|---|---|---|---|
Dizzi | 1 | 105 | ||
Dizzi | 2 | 59 | ||
Dizzi | 2 | 107 | ||
Dizzi | 36 | 738 | ||
Dizzi | 10 | 228 | ||
Dizzi | 1 | 85 | ||
Dizzi | 1 | 44 | ||
Dizzi | 8 | 326 | ||
Dizzi | 1 | 37 | ||
Dizzi | 1 | 51 | ||
Dizzi | 0 | 60 |
(none)
|
|
Dizzi | 3 | 80 | ||
Dizzi | 4 | 56 | ||
Dizzi | 4 | 94 | ||
Dizzi | 4 | 189 |
1,383 comments found!
Thread: Is there a way to support Undo with LoadLibraryPose | Forum: Poser Python Scripting
you can try, if loading files from outside poser still works (that was how the air library from Poser 8 communicated with Poser). Here' some C# code for loading and saving, port should be the one from the poser.ini:
load:
System.Net.WebClient Client = new System.Net.WebClient();
Client.Encoding = Encoding.UTF8;
Client.QueryString.Add("id", Util.EncodeUtfUriComponent(filename));
Client.QueryString.Add("op", "addItem");
Stream strm = Client.OpenRead(new Uri("http://localhost:11530/apps/lms/api.py"));
StreamReader sr = new StreamReader(strm);
string line;
do {
line = sr.ReadLine();
Console.WriteLine(line);
}
while (line != null);
strm.Close();
save:
string Path = SaveDialog.GetSavePath(); if (Path == null) return; System.Net.WebClient Client = new System.Net.WebClient(); Client.Encoding = Encoding.UTF8; Client.QueryString.Add("op", "saveItem"); Client.QueryString.Add("categoryId", Category); Client.QueryString.Add("folderId", Util.EncodeUtfUriComponent(Path));
//Stream strm =
IntPtr poserHandle = Util.GetPoserWindowHandle(this);
if (poserHandle != IntPtr.Zero)
SetForegroundWindow(poserHandle);
try {
Client.OpenRead(new Uri("http://localhost:11530/apps/lms/api.py"));
Thread: Is there a way to support Undo with LoadLibraryPose | Forum: Poser Python Scripting
Are you just loading a regular pose? At least for poser 7 to 11 you could then just call the poser library interface via a http get request (would have to look that up).
Thread: Subject: 'BitmapButton' object has no attribute 'SetBitmapHover | Forum: Poser Python Scripting
Thread: Py2 to Py3 conversions | Forum: Poser Python Scripting
If you saved objects with pickel in older poser versions and want to load them in Poser 12 you will have to do something like that:
with open(filename, "r") as fd:
lines = [line.rstrip("rn") for line in fd.readlines()]
result = pickle.loads(bytes("n".join(lines), encoding='Latin 1'))
Thread: Py2 to Py3 conversions | Forum: Poser Python Scripting
https://wxpython.org/Phoenix/docs/html/MigrationGuide.html https://docs.python.org/3/howto/pyporting.html
Thread: Writing temporary pose/mat/etc files from script. Any access permission issues? | Forum: Poser Python Scripting
Thread: UAC and scripted Poser Library saves? | Forum: Poser Python Scripting
Attached Link: http://docs.python.org/2.6/library/tempfile.html
UAC should not prevent a program from saving anywhere and reloading the saved file from that location. the file may just not be visible to another program at the location.Anyway, there are regular methods to create temp files, no need to use poser specific methods (see link).
Thread: wxPython remember dock location | Forum: Poser Python Scripting
Have a look at my "MorphScale" script in freestuff. It does load and save its position.
But you cannot force a docked position, easily (and I don't to that). The only way to do that easily is to use the UI dots. They store and restore the whole UI for each room including the wxPython windows.
Thread: remote rotation (dial) body part with keyboard | Forum: Poser Python Scripting
I'd need to know what you intend to do: Change only the current actor? Do you want to record the change in any way?
If you just want to be able to control the changes of a figure with the keyboard, you can have a look at my Hampelmann script. It already has that functionality built in (http://neocron.webspaceforme.net/hampelmann/detail/)
Thread: remote rotation (dial) body part with keyboard | Forum: Poser Python Scripting
Yes, you can either create a WxPanel and then catch keyboard events and change the rotation values of the selected actors accordingly or probably also catch keyboard events from the main view if you want (have a look at my camera script on how to do that).
Thread: Has anyone seen a "visible in camera" script? | Forum: Poser Python Scripting
Well, how's "Visible", "Visible in Raytrace", "Visible in Render" from the link I posted above?
Thread: Has anyone seen a "visible in camera" script? | Forum: Poser Python Scripting
I've created a script which allows to select and pose multiple actors, it also has an option to check/uncheck visibility (for Poser 8 and later): http://neocron.webspaceforme.net/alforum/index.php?topic=1511.msg2447#msg2447
Thread: Setting "shadow " parameter if a light | Forum: Poser Python Scripting
Thread: Remember floating-docked and position | Forum: Poser Python Scripting
Yes, Poser has a way: UI dots ;-) They save script positions, too, but you'll have to click the stored UI dot after loading the script of course ;-)
You don't need any parsing, if you use pickle.dump() and pickle.load() to store your data.
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.
Thread: Detect if a Poser UI panel is closed, and open it | Forum: Poser Python Scripting