Forum: Poser 11 / Poser Pro 11 OFFICIAL Technical


Subject: Creating a new master parameter that works modulo 360 - can it be done ?

3dcheapskate opened this issue on Sep 13, 2021 ยท 20 posts


3dcheapskate posted Mon, 13 September 2021 at 12:10 PM

Reading up a bit (but not much) on spline interpolation it seems that providing more key values near the angular bits of the sawtooth that I want might enable me to do a modulo 360 valueOpKey lookup table for a limited range - especially if Poser's using cubic spline interpolation (which it probably isn't).

Something like this perhaps ?

            valueOpKey
                Figure 6
                BODY:6
                angle 0 to 1440
                strength 1.000000
                beginValueKeys
                    valueKey 0 0
                    valueKey 1 1
                    valueKey 2 2
                    valueKey 358 358
                    valueKey 359 359
                    valueKey 360 360
                    valueKey 360.002777777778 0.00277777777777778
                    valueKey 360.005555555556 0.00555555555555556
                    valueKey 360.994444444444 0.716666666666667
                    valueKey 360.997222222222 0.719444444444444
                    valueKey 361 1
                    valueKey 362 2
                    valueKey 363 3
                    valueKey 718 358
                    valueKey 719 359
                    valueKey 720 360
                    valueKey 720.002777777778 0.00277777777777778
                    valueKey 720.005555555556 0.00555555555555556
                    valueKey 720.994444444444 0.716666666666667
                    valueKey 720.997222222222 0.719444444444444
                    valueKey 721 1
                    valueKey 722 2
                    valueKey 723 3
                    valueKey 1078 358
                    valueKey 1079 359
                    valueKey 1080 360
                    valueKey 1080.00277777778 0.00277777777777778
                    valueKey 1080.00555555556 0.00555555555555556
                    valueKey 1080.99444444444 0.716666666666667
                    valueKey 1080.99722222222 0.719444444444444
                    valueKey 1081 1
                    valueKey 1082 2
                    valueKey 1083 3
                    valueKey 1438 358
                    valueKey 1439 359
                    valueKey 1440 360
                endValueKeys

Trying that out, the result doesn't go quite as wild as my previous attempt, but it still goes fairly wild, getting up to 600 at certain points.


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).