Page 1 of 1

getEmitter()/ get_PB_emitter()

Posted: Mon Aug 02, 2010 2:02 pm
by FlorianK
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?

Re: getEmitter()/ get_PB_emitter()

Posted: Tue Aug 03, 2010 7:11 am
by tsn
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.