Fri, Dec 13, 3:56 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 13 7:48 am)



Subject: A script to change sensitivity values in all translation parameters for an entir


SkiddlyMcZ ( ) posted Fri, 27 September 2013 at 1:26 PM · edited Fri, 13 December 2024 at 3:49 PM

I couldn't think of a good descriptive short title for this thread. ;-)

Basically I'm hoping someone could point me to a script that can change all the slider sensitivity values in a figure, the X, Y and Z rotate and translate values that is, to a number I input, for all the body parts in a figure at once.

I scale my Poser people up and down all the time depending on my needs and when you have a Poser figure at 1000% size, suddenly that default 1.000 sensitivity on a parameter slider is way too much. .1 is more like it, but obviously it takes a good while to change them all manually, not to mention changing them to something else when I change scale again.

I'm kind of doubting such a script exists, but I figue it's worth a shot. Better yet, some multi-purpose utility that can change valuse in a figure en mass could be very useful.

But if there is something like that out there, free or otherwise, I need it.

Thanks. :D


MistyLaraCarrara ( ) posted Fri, 27 September 2013 at 2:30 PM

if you save the figure to your library, you should be able to do a search and replace with wordpad or notepad++ on the .cr2.

i imagine, you'll need to change it on clothes it's wearing too.

you could save the figure with it's clothes to a single cr2.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


SkiddlyMcZ ( ) posted Fri, 27 September 2013 at 3:38 PM · edited Fri, 27 September 2013 at 3:39 PM

Thank you Misty Lara Princess. :-)

 

I actually have done that before, and it certainly works, but I'd love to be able to make these broad sweeping changes on the fly while working on my scene, when the need arises.

I really have no idea what causes it, but sometimes sensitivity settings in Poser get kind of weird. One minute a .5 might be fine, then a little later it needs to be lowered to .1.

The only thing I know for sure is scene scale and figure scale male a huge difference in this sort of thing.

I've been using Poser for several years and I keep telling myself one of these years I'm gonna take some time and learn Python  scripting and do these things myself... but, well it's almost 2014, maybe that will be the year. :D

 

Then again, I don't even know if such a thing is possible within Poser with Python. It seems to me it should be, but I just don't know.


markschum ( ) posted Fri, 27 September 2013 at 5:13 PM

file_498539.txt

This might work , I have not tested it. works on current figure in scene

newval is the sensitivity value desired.

download file and rename to a py extension, run from anywhere using File>run python


SkiddlyMcZ ( ) posted Fri, 27 September 2013 at 7:51 PM

Quote -
This might work , I have not tested it. works on current figure in scene

newval is the sensitivity value desired.

download file and rename to a py extension, run from anywhere using File>run python

 

Wow thank you!

I wish I had seen this earlier when I still had time left today.

I'll dig into it some time this weekend and get back to you but I wanted to make sure I got a "thank you" in here on time. :D


markschum ( ) posted Fri, 27 September 2013 at 8:27 PM

;-)  yur welcome


SkiddlyMcZ ( ) posted Sun, 29 September 2013 at 5:41 AM

Well it seems to work, so thanks again!

Only on rigged figures though, no props or hair, although that's a surprisingly simple script and I think I can figure it out.


markschum ( ) posted Sun, 29 September 2013 at 3:19 PM · edited Sun, 29 September 2013 at 3:20 PM

I can amend it to do anything conformed or parented to the current figure or even everything in the scene. 

A prop is just an actor so you just need to change the bit that loops through actors.

like this

script set sensitivity for prop

import  poser
newval = 0.1
xt = poser.kParmCodeXTRAN
yt = poser.kParmCodeYTRAN
zt = poser.kParmCodeZTRAN
xr = poser.kParmCodeXROT
yr = poser.kParmCodeYROT
zr = poser.kParmCodeZROT
myparm = [xt,yt,zt,xr,yr,zr]
act = poser.Scene().CurrentActor()
print act.Name()
for p in myparm:
    cp = act.ParameterByCode(p)
    cp.SetSensitivity(newval)
print "Done"

this will crash if the current actor does not have tran and rotate parameters.


taoz ( ) posted Sun, 29 September 2013 at 7:36 PM

Wonder why they haven't made it so that you can change the sensitivity value for whatever dial you're using to something user defined by pressing a key while dialing. E.g. multiply by 10 pressing ctrl or divide by 10 by pressing alt. 


SkiddlyMcZ ( ) posted Mon, 30 September 2013 at 6:04 PM

Quote - I can amend it to do anything conformed or parented to the current figure or even everything in the scene. 

A prop is just an actor so you just need to change the bit that loops through actors.

like this

script set sensitivity for prop

import  poser
newval = 0.1
xt = poser.kParmCodeXTRAN
yt = poser.kParmCodeYTRAN
zt = poser.kParmCodeZTRAN
xr = poser.kParmCodeXROT
yr = poser.kParmCodeYROT
zr = poser.kParmCodeZROT
myparm = [xt,yt,zt,xr,yr,zr]
act = poser.Scene().CurrentActor()
print act.Name()
for p in myparm:
    cp = act.ParameterByCode(p)
    cp.SetSensitivity(newval)
print "Done"

this will crash if the current actor does not have tran and rotate parameters.

 

Thanks again man, very very useful! :D


markschum ( ) posted Mon, 30 September 2013 at 6:23 PM

Thi is why you should learn a little bit of python coding ;-)


Privacy Notice

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.