SaltShaker is a Python script that allows for shaking objects in the open source Blender 3D system.
For those who have programmed in other languages before, it's important to keep in mind that Python uses whitespace indenting instead of curly brackets "{ }" to encapsulate statement blocks. This can be confusing at first, especially when mixing tabs with spaces, but it quickly becomes second nature with practice.
One of SaltShaker's standout features is its "randomiseit" function. This function allows users to randomize a percentage of an object's properties, such as its location or rotation, based on a given percentage. For example:
def randomiseit(perc):
pr = (Blender.Noise.random()*perc)
# 50% of the time make it negative
if (Blender.Noise.random() < 0.5):
pr *= -1
return pr
Overall, SaltShaker is a useful tool for Blender Python script writers looking to shake things up in their projects.
Version 1.4: N/A