50 threads found!
Thread | Author | Replies | Views | Last Reply |
---|---|---|---|---|
semidieu | 39 | 539 | ||
semidieu | 15 | 208 | ||
semidieu | 10 | 134 | ||
semidieu | 7 | 174 | ||
semidieu | 7 | 175 | ||
semidieu | 8 | 266 | ||
semidieu | 15 | 485 | ||
semidieu | 0 | 27 |
(none)
|
|
semidieu | 2 | 68 | ||
semidieu | 1 | 51 | ||
semidieu | 6 | 196 | ||
semidieu | 3 | 147 | ||
semidieu | 9 | 259 | ||
semidieu | 12 | 342 | ||
semidieu | 9 | 189 |
940 comments found!
Thread: Display problems with wx.SpinCtrl on Mac OSX? | Forum: Poser Python Scripting
Thread: Display problems with wx.SpinCtrl on Mac OSX? | Forum: Poser Python Scripting
Having some more Poser specific objects might be a good idea. The main problem will then to have a 'basic guide line' to make the objects 'similar' in the use.
Quote - So I'm going to jump in and talk about this spin control. I do not like the buttons on the side, even when they appear in the correct location. They clutter the screen, and I never bother to push them. I want to use the mouse wheel.
The other thing I don't like is that they increment and decrement by a fixed amount. This is not the best approach for a Poser-related control. Whether it's the thickness of a prop, or the amount of bump in a shader, I like the click amount to be related to what's there already.
I have been working on my own custom control that does float numbers in increments that are self adjusting. It has no visible click buttons. It works with the wheel or the mouse pointer movement.
If your value is .004, a click up will add .001 and make .005.
If your value is 400, a click up will add 100 and make 500.
If you hold control, then the click amount is 1/10th the usual.
If you hold shift, the click amount is 2 times the usual.
I also made it so if you mouse down over the control and move your mouse up or down, that does the clicks as well. (Like an invisible vertical slider bar.)
I think it is a much better experience.
I am not completely done with debugging my implementation, but if you guys wanted to share and refine it with me, I'd be happy to work together with you and we all benefit from having a superior number editor for Poser work.
Maybe we could make some other specialty widgets as well.
Thread: Display problems with wx.SpinCtrl on Mac OSX? | Forum: Poser Python Scripting
import poser
import wx
class test_dialog(wx.Dialog):
def init(self):
wx.Dialog.init(self, None)
sizer = wx.BoxSizer()
self.SetSizer(sizer)
self.Fit()
sctrl = wx.SpinCtrl(self, value="64", min=35, max=75, initial = 64)
sctrl.SetMinSize((150, -1))
sizer.Add(sctrl)
dlg = test_dialog()
dlg.ShowModal()
Thread: WorldToScreen()? | Forum: Poser Python Scripting
I used this function in my 'Advanced Render Settings 2" script, to create the depth of field.
I have to grab the most "in front" vertex and the most "back" vertex. But I only want the one visible in the render. So I'm using WorldToScreen to check if the vertex is in the preview/render window.
I tried once to use it in another script (don't remember which one - maybe something related with the Art Materials), but came to a problem about the Z coordinate output which seems to be 'strange' (but this was a looooong time ago, maybe they changed something in this one).
Thread: Display problems with wx.SpinCtrl on Mac OSX? | Forum: Poser Python Scripting
I don't use often the spinctrl - I prefer using a wx.textctrl with a "charvalidator" function...
And I'm using a Windows OS most of the time... I have an iMac for testing. I'll take a look if I can reproduce this kind of error and if there is a soution for this :)
Thread: wxPython remember dock location | Forum: Poser Python Scripting
I think the biggest problem here is the use of the wxFrame. You should use wxPanel instead.
Thread: wxPython remember dock location | Forum: Poser Python Scripting
With Poser 9+, this is working if you use the new 'addons' system.
If you don't use the addons system, I was able to make it work to something similar to what PhilC did.
Saving dock info:
Read the pane settings.
Save it in a .ini file.
Restoring dock info:
Read the .ini file.
Create the pane with the settings from the .ini file.
There are some strange things happening... And the position must be adjusted...
When I load a new pange, I'm using a function that read the ini file, the the position (xp, yp), the size (xs, ys), the dock/float status (DOCK), the various docking information (D - Direction, L - layer, P - position and R - row) and the dockable/floatable status.
Getting the docking information:
pane.dock_direction,pane.dock_layer,pane.dock_pos,pane.dock_row
Then to restore the settings, I read the ini file and get the informations:
(xp,yp,xs,ys,DOCK, D, L, P, R, DOCKABLE) =
SWPC_SizeAndPosInstances()
Finally, I'm loading all using this:
if DOCK:<br></br>
pane.Dock()<br></br>
else:<br></br>
pane.Float()<br></br>
pane.Dockable(DOCKABLE)<br></br>
pane.Floatable(DOCKABLE)<br></br>
pane.Caption(name).CaptionVisible()<br></br>
pane.Resizable()<br></br>
pane.Direction(D).Layer(L).Position(P-1).Row(R)<br></br>
pane.FloatingSize(wx.Size(xs-16, ys-34))<br></br>
pane.FloatingPosition(wx.Point(xp+8, yp+26))<br></br>
pane.BestSize(wx.Size(100,100))<br></br>
pane.MinSize(wx.Size(100,100))<br></br>
pane.CloseButton(True)<br></br>
pane.MinimizeButton(True)<br></br>
pane.DestroyOnClose(True)
Notice the Position(P-1) which adjust the docking position - don't know why it's necessary but this was working for me.
Now... this is an old code and certainly might be better :) Last thing, don't forget the addons if you're developing for the latest version of Poser. It's much better and offers other nice uses :)
Thread: Shader program from Run Time dna | Forum: Poser Python Scripting
In your account, you should have two zip files:
one is for Poser 8
one is for Poser 9 (should ends with P9)
You will have to install only the one designed for your Poser's version!
Let me know!
Basil
PS. I did create it :)
Thread: Add lights to a scene lt2-not replace via script | Forum: Poser Python Scripting
Thread: Add lights to a scene lt2-not replace via script | Forum: Poser Python Scripting
Adding a light isn't that easy... I made it possible by saving the current light settings in a temporary file, merge the new ligh lt2 file with the temporary version (there are things to take care of...) and then load the merged file...
If someone has a better verison - let me know!
Thread: How do you Dirty Up Texture Maps and Procedurals for realism.txt | Forum: Poser - OFFICIAL
Hi!
The script will be made for Poser 9. In fact, it is ready and should be available soon... It is a plugin for Advanced Shaders and Advanced Shaders Launcher.
Going to check and make sure it is released this week :)
Thread: Toon ID# | Forum: Poser Python Scripting
Fine tunning materials? Ok! As soon I'm back home, I'll do the script for materials level :)
Thread: Toon ID# | Forum: Poser Python Scripting
You're welcome :) And Advanced Shaders could do this... But I think the attached script above is more easy to use... :)
Thread: Toon ID# | Forum: Poser Python Scripting
Attached Link: Simple ToonID Color
Here is a simple version :)
(Hope it's ok to post to a freebie somewhere else)
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: Python Collada export? | Forum: Poser Python Scripting