Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
Sorry for not being specific. Here is a link to what I'm making.
And also thank you for the example.
I'm going to use the unused keys that are in Windows but are not on a standard keyboard and set them to select and control the figure.
Here's an example of how I'm going to set the keys.
Set key F13 to select the right hand Set key F14 to move Zrotate 1 Set key F15 to move Zrotate -1
Also, the F14 and F15 will be on a rotary encoder dial, not actual keys or buttons.
I hope all this makes since
Win10 - AMD 2nd Gen Ryzen Threadripper 2950X, 16-Core, 32 Thread 4.4 GHz - 128GB Ram - X2 GeForce RTX 3060 Ti - 3D-connexion
Poser 12 | Octane Render | Real-Flow | 3DCoat | Speed Tree | Adobe Premiere | Adobe After Effects | Adobe Audition | Adobe Photoshop
Yes, If I have a script for each command. Let's say 20. So in total, I will have 20 scripts and poser. Is there a way to set those scripts shortcuts quickly? Or will I have to still put in the script shortcut individually? One by one.Thank you for explaining. I see you have some excellent examples already from a previous version.
Is there anything i can still help you with?
Win10 - AMD 2nd Gen Ryzen Threadripper 2950X, 16-Core, 32 Thread 4.4 GHz - 128GB Ram - X2 GeForce RTX 3060 Ti - 3D-connexion
Poser 12 | Octane Render | Real-Flow | 3DCoat | Speed Tree | Adobe Premiere | Adobe After Effects | Adobe Audition | Adobe Photoshop
The links may be in some file somewhere and you may be able to hack it but I think it will be hard to beat double-clicking the line and making the shortcut combination in the editor.
Win10 - AMD 2nd Gen Ryzen Threadripper 2950X, 16-Core, 32 Thread 4.4 GHz - 128GB Ram - X2 GeForce RTX 3060 Ti - 3D-connexion
Poser 12 | Octane Render | Real-Flow | 3DCoat | Speed Tree | Adobe Premiere | Adobe After Effects | Adobe Audition | Adobe Photoshop
You may want to try the below.
I have set the increment to 15 degrees: (par.SetValue(val+15.0) so you see more easily the effect. Trust you can change this to your liking.
note this approach does not respect limits.
sc = poser.Scene()
try:
act = sc.CurrentActor()
try:
par = act.Parameter('yRotate')
try:
val = par.Value()
par.SetValue(val+15.0)
sc.DrawAll()
except:
pass
except:
pass
except:
pass
You may want to try the below.
I have set the increment to 15 degrees: (par.SetValue(val+15.0) so you see more easily the effect. Trust you can change this to your liking.
note this approach does not respect limits.sc = poser.Scene()
try:
act = sc.CurrentActor()
try:
par = act.Parameter('yRotate')
try:
val = par.Value()
par.SetValue(val+15.0)
sc.DrawAll()
except:
pass
except:
pass
except:
pass
Thank you. this is perfect.
Is there a document with all the python script command that poser uses?
Win10 - AMD 2nd Gen Ryzen Threadripper 2950X, 16-Core, 32 Thread 4.4 GHz - 128GB Ram - X2 GeForce RTX 3060 Ti - 3D-connexion
Poser 12 | Octane Render | Real-Flow | 3DCoat | Speed Tree | Adobe Premiere | Adobe After Effects | Adobe Audition | Adobe Photoshop
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.
Hello, I'm new to programming. But I would like to write a code for poser.
I'm a complete noob who doesn't know the basics. But I was wondering if somebody could give me an example code for a shortcut imposer.
I would like a script so I can press a key to select a body part on a figure.
Is there somebody that can give me an example that I will really appreciate?
Thank
Win10 - AMD 2nd Gen Ryzen Threadripper 2950X, 16-Core, 32 Thread 4.4 GHz - 128GB Ram - X2 GeForce RTX 3060 Ti - 3D-connexion
Poser 12 | Octane Render | Real-Flow | 3DCoat | Speed Tree | Adobe Premiere | Adobe After Effects | Adobe Audition | Adobe Photoshop