Saturday, August 4, 2012

Post Blender Scripts in Blogger

To post blender scripts in blogger add this code just before the <html> tag in your blogger template html.



















Now you must change all greater and lesser sines in your python code as your browsers will see them as starting and ending tags.

Replace all < symbols in you code with &lt;
Replace all > symbols in your code with &gt;

You can do this very easily with any advanced text editor like NotePad++
 http://notepad-plus-plus.org/
Just look for The Search or Find and Replace feature.

Now when making a post edit your html and use the pre tag to wrap your python code in like this :
<pre class="brush:python">

import bpy
#the rest of your python code goes here

</pre>


No comments:

Post a Comment