In time for the Christmas spirit, lets start making those yummy candycanes. You won't even have to clean your kitchen!

This tutorial requires:
ShaderMakerPro 1.02
Pixels3D | studio | v3.7b8 or higher

Use Pixels3d First
To make things easier for us to add a shader to, lets start with creating the model first then export it to RIB for us to use inside ShaderMakerPro.

Create the First Form
First choose shape>spline and use the b-spline form. Inside the Top Window create a 4point circle offset from the center.

Create our Cane Shape
Still with the spline tool selected create another shape into the form of our candycane.
  Setting up our Path Extrusion
Now before we use our path extrude tool we need to first select the circle spline shape, open up the Item Info dialog and change the x-rot to 90.0 and then park the object.
Path Extrude and Close the Ends
Now with he circle still selected CMD-SHIFT and select the spline as our child object and then use reshape>path extrude ( it should look similar to the image to the left ). Now lets also reshape>close ends on our path shape and use a smooth end with about 0.150 percent.
 

Export to SMP
Rotate our new shape on the z-rot to 90 using Object Info to stand it straight up and then park it. Set the camera angle to get a good view of the candycane shape then File Menu>Export File >RIB File

Need the Pixar Comp Lib to export RIB files?
Click Here

Using the newly created shape to make our stripe shader. Open up ShaderMakerPro 1.02 or above.

Opening our RIB file
Click on the Main Preview, select Open RIB File from the pop-up menu and then find our RIB file we just exported from Pixels3D.

Setting up Stripes using a Math Function
First create a Math Function node and link first an S-Texture Coordinate node into value 1 input. Now a T-Texture Coordinate node into value 2 input and then Add them together as shown. Now change the values as shown to get an angle of how the stripes will be mapped onto our candycane shape.

Adding Multiple Stripes
Now create another Math Function node and plug our first Math Function node into value 1. Use Sin to express multiple stripes off our first Math Function. Set the values as shown.

Colour our stripes
Finally create a User Defined node link our "striped" Math Function node into the Green and Blue inputs as shown to get our red and white stripped colours.

Render
After we save our new shader, reopen our candycane file in Pixels3d. Select our path shape, open ShaderMaker and click on an empty slot and load our existing candycane shader. Render it out and and have yourself a Merry Christmas!

Did I also mention its great for sending those annoying electronic Christmas cards to family and friends? :-)