|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello all. I am working on a modell of a character that can be either naked
or wear a bathingsuit. The coding for the suit is in three separate
sections ( Torso, LeftLeg, and RightLeg) do to the limbs being movable.
Now to remove the bathingsuit I have been remarking out the sections ( I.E.
/* */ ) but this is becoming rather tedius. Is there a way to code a
switch that can have those sections bypassed, say, depending on the value
of a variable I #declare at the top of the INC file?
(like #declare removebathingsuit = 1;)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Barehunter nous apporta ses lumieres en ce 2005-06-29 20:30:
> Hello all. I am working on a modell of a character that can be either naked
> or wear a bathingsuit. The coding for the suit is in three separate
> sections ( Torso, LeftLeg, and RightLeg) do to the limbs being movable.
>
> Now to remove the bathingsuit I have been remarking out the sections ( I.E.
> /* */ ) but this is becoming rather tedius. Is there a way to code a
> switch that can have those sections bypassed, say, depending on the value
> of a variable I #declare at the top of the INC file?
> (like #declare removebathingsuit = 1;)
>
>
>
>
You are on the right track. You can have #declare putbathingsuit = 1; in the main
scene where it's
usualy more accessible. Put the swimsuit in an #if(putbathingsuit )...#end block. One
such block per
places where the swuimsuit get used.
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Alain <ele### [at] netscapenet> wrote:
> You are on the right track. You can have #declare putbathingsuit = 1; in the main
scene where it's
> usualy more accessible. Put the swimsuit in an #if(putbathingsuit )...#end block.
One such block per
> places where the swuimsuit get used.
>
> Alain
ok 2 questions so I understand this better.
1: In this case the only possible answers for the variable is 1 or 0?
2: and this would be typed as..
#if(putbathingsuit)
// my coding here//
#end block
is that right?
btw the reason I would keep it in the INc file as my current project is a
commision in which I am converting a certain webartist's webcomic into 3D
episode by episode. each character is in it's own INC to better control
them. all characters are fully movable and in some cases have separate
emotions visible on ther faces.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Barehunter" <nomail@nomail> wrote:
> ok 2 questions so I understand this better.
>
> 1: In this case the only possible answers for the variable is 1 or 0?
> 2: and this would be typed as..
>
> #if(putbathingsuit)
>
> // my coding here//
>
> #end block
>
> is that right?
>
ok I tried it and figured out not to include the word "block" other then
that yes that's how it works. I love learning new things about this
software.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Barehunter nous apporta ses lumieres en ce 2005-06-30 00:22:
> "Barehunter" <nomail@nomail> wrote:
>
>>ok 2 questions so I understand this better.
>>
>>1: In this case the only possible answers for the variable is 1 or 0?
>>2: and this would be typed as..
>>
>> #if(putbathingsuit)
>>
>> // my coding here//
>>
>>#end block
>>
>>is that right?
>>
>
>
> ok I tried it and figured out not to include the word "block" other then
> that yes that's how it works. I love learning new things about this
> software.
>
>
When usonf an #if, 0=don't use what follows. NOT 0 = execute the folloing.
If you want to be able to use several values, you should use the
#switch(variable)
#case(value 1)[code]#breack
#case(value 2)[code]#breack
.
.
.
#case(value x)[code]#breack
#end
structure. In your case, you can have a veriety of suits changed by a single
variable.
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
news:42c3cd40$1@news.povray.org...
> When usonf an #if, 0=don't use what follows. NOT 0 = execute the folloing.
> If you want to be able to use several values, you should use the
> #switch(variable)
> #case(value 1)[code]#breack
> #case(value 2)[code]#breack
> .
> .
> .
> #case(value x)[code]#breack
> #end
> structure. In your case, you can have a veriety of suits changed by a
> single variable.
>
> Alain
It is #break, not #breack. :)
My usual mistake is to write finnaly instead of finally (I never remember
which letter is doubled) and to write #declaer when I write it too fast.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |