Colour to the pushhpull part
-
Hello,
With Ruby I have drawn a square and told it to extrude (pushpull)
Then I added colour to the face, and I also wan to colour the extruded part... How do I do that?
DN -
You can close this question...
face.material = "colour"
before you
face.pushpull "distance"It is just the order that things happen in...
Thanks
DNHG@dnhg said:
Hello,
With Ruby I have drawn a square and told it to extrude (pushpull)
Then I added colour to the face, and I also wan to colour the extruded part... How do I do that?
DN -
Yeah that sounds right.
Also (if your putting together some code) be aware that pushpulled_face = face.pushpull "distance" will return nil.
So to get newly pushpulled faces you have to create 2 arrays. 1: with faces Before pushpull and 2: after pushpull, then subtract array1 from array2.
(TIG has some code posted in detail for this, lying around in the developper section somewhere...)Obviously if you have the geometry grouped this process will be faster you since dont have to traverse the whole model.
Advertisement