yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02770
Re: O.engines.append ?
> I do not succeed, once I defined O.engines=[...], to add other Engines
> with O.engines.append
> Could it be possible or not ?
you have to say
O.engines=O.engines+[YourEngine()]
(reason: O.engines is a std::vector in c++ and list in python, which is
converted back and forth (r-value, if you want); it is not a wrapped
type as e.g. BodyContainer, which can define additional methods)
Cheers, v.
Follow ups
References