EN
We show that a modular class arises from the existence of two generating operators for a Batalin-Vilkovisky algebra. In particular, for every triangular Lie bialgebroid (A,P) such that its top exterior power is a trivial line bundle, there is a section of the vector bundle A whose $d_{P}$-cohomology class is well-defined. We give simple proofs of its properties. The modular class of an orientable Poisson manifold is an example. We analyse the relationships between generating operators of the Gerstenhaber algebra of a Lie algebroid, right actions on the elements of degree 0, and left actions on the elements of top degree. We show that the modular class of a triangular Lie bialgebroid coincides with the characteristic class of a Lie algebroid with representation on a line bundle.