Hi Bachir,
No worries! we're all in this together, afterall.
If one goes here:
one finds the following code:
for g in ENGINE.groups:
# create translation generator
TMG = TranslationGenerator(amplitude=0.2)
# create rotation generator only when group length is bigger than 1.
if len(g)>1:
RMG = RotationGenerator(amplitude=2)
MG = MoveGeneratorCombinator(collection=[TMG,RMG],shuffle=True)
else:
MG = MoveGeneratorCombinator(collection=[TMG],shuffle=True)
g.set_move_generator( MG )
Which i think, strictly speaking, will not run in the current
version.as MoveGeneratorCombinator is passed the
collection kwarg.
So, it looks like the documentation proper is correct, but the example has an error.
Cheers,
Rob