getEmitter()/ get_PB_emitter()

Post Reply
User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

getEmitter()/ get_PB_emitter()

Post by FlorianK » Mon Aug 02, 2010 2:02 pm

Hi,

just one short question on the new Python methods:

Instead of the "old" scene.getEmitter (which still works) there is now a a more specific command, i.e. get_PB_emitter() for the common particle based emitter.

It seems like the "get_PB_emitter()" inherits its funcionality from getEmitter(), but what is the big advantage of this method? I am asking because I still can use getEmitter() (at least for standard particles, haven't tried that with LS solvers, yet).

So where's the main benefit in the first place? Is it optimized/ faster/ more stable?

User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Re: getEmitter()/ get_PB_emitter()

Post by tsn » Tue Aug 03, 2010 7:11 am

The reason is quite simple: since there are two types of emitters, the usage of "getEmitter()" became ambiguous and now theres a differentiation between get_PB_emitter() and get_GB_emitter (GB = Grid Based). The getEmitter() command still works for standard emitters, but according to RF's online help, it'll disappear sooner or later and it's mainly there for compatibility reasons. So, getEmitter() and get_PB_emitter() have absolutely identical functions and behaviour.
Thomas Schlick | Next Limit Technologies

Post Reply