Forum: Poser - OFFICIAL


Subject: CR2 Code question

Propschick opened this issue on Feb 24, 2010 · 14 posts


Propschick posted Wed, 24 February 2010 at 10:14 AM

Ok, Say I have an adjustment morph in an article of clothing that I'm gonna hide, and I want this morph to be set to 'on' at all times...in other words if it wasnt hidden, I'd want it always dialed to 1.000000.

What piece of code in the cr2 do I change to make this happen ? ( I already know hidden )

Ever stop to think, and forget to start again?

 


lkendall posted Wed, 24 February 2010 at 10:18 AM

You can right click the arrow beside the dial in the properties pannel, and change the settings of the dial to always be one. Then save the CR2. You do not need to edit the CR2 directly with this method.

I am at work, could some one show a screen shot of that?

LMK

Probably edited for spelling, grammer, punctuation, or typos.


Propschick posted Wed, 24 February 2010 at 10:20 AM

Ahh yeah this is for a product I'm selling actually...because i've already coded some jcms and have done crosstalk, I was hoping not to have to resave it to figures again LOL - don't suppose there's a way to do this in the cr2's coding huh ?

Ever stop to think, and forget to start again?

 


lkendall posted Wed, 24 February 2010 at 10:34 AM

Well, you could make the change in the dial settings, save it to a CR2, look to see how the new settings change the new CR2 and then copy thos settings to the original CR2.

Or, someone may come along that knows what to change, and save you the trouble.

LMK

Probably edited for spelling, grammer, punctuation, or typos.


Propschick posted Wed, 24 February 2010 at 10:36 AM

Yeah, think I figured it out actually...looks to be initValue under each morph to be set to 1.000000

Ever stop to think, and forget to start again?

 


lkendall posted Wed, 24 February 2010 at 10:47 AM

You can set that, load it, and look to see if it shows up in the dail setting. But, if it works, I gues it doesn't matter if it shows up or not.

lmk

Probably edited for spelling, grammer, punctuation, or typos.


BloodRoseDesign posted Wed, 24 February 2010 at 11:12 AM

Yes you found it with initValue, you may also have to change the key value too. For whatever reason I end up changing that as well. 😄


Propschick posted Wed, 24 February 2010 at 11:16 AM

Yeah I just found that too LOL ty

Ever stop to think, and forget to start again?

 


BloodRoseDesign posted Wed, 24 February 2010 at 12:25 PM

Propschick, when you coded your jcm's did you use custom morphs or did you use another method?


Propschick posted Wed, 24 February 2010 at 12:26 PM

custom morphs then i added my codes....Yeah i had to go back and make some adjustments to them anyways

No no this thread here...I wasn't asking about jcms on this

Ever stop to think, and forget to start again?

 


Touchwood posted Wed, 24 February 2010 at 1:09 PM

 Have you tried setting forceLimits to 1 and setting the min and max values to 1? That should stop the dial from moving.


Propschick posted Wed, 24 February 2010 at 1:12 PM

Yep- said I already got it- thanks =)

Ever stop to think, and forget to start again?

 


lesbentley posted Wed, 24 February 2010 at 5:46 PM

Quote - ... I want this morph to be set to 'on' at all times...

In the relevant targetGeom channel:

                        forceLimits 1
                        min 1
                        max 1

"forceLimits 1" tells Poser to respect the limits set in the two lines below. "min" and "max" are the actual minimum and maximum values the channel is allowed to have. "initValue" is the value that the channel will be set to when you use the Restore command, but this will not override forced limits, and so is not relevant in this case.


Propschick posted Wed, 24 February 2010 at 5:57 PM

Yep, see above- got it =) thank you

Ever stop to think, and forget to start again?