"uid_maxon(integer)" channel Q



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/12/2011 at 15:41, xxxxxxxx wrote:

    Extracting the TP Python example in Content Browser to get
    the position of TP particles, there's a function to check the
    "uid_maxon(integer)" channel and if it's present.

    This function return 0 if present or None if not.
    Slimming the set up, I right now assume the channel
    is channel 0 (or None).

    Under what circumstances could there be another channel,
    and/or can the "uid_maxon(integer)" channel be anything else
    but 0?

    Cheers
    Lennart



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/01/2012 at 05:22, xxxxxxxx wrote:

    Hi,

    Under what circumstances could there be another channel

    The user can create own data channels, so the channel ID might change.

    Cheers, Seb



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/01/2012 at 13:53, xxxxxxxx wrote:

    Thanks Sebastian.
    My TP use/knowledge is very sparse but I just found
    some info in the Help about this channel thing.
    So a use can add his own channels, so if a total of
    let's say three channels are in use, are they always
    ch. 0, 1, 2 or is there the possibility for a user to use
    any channel of choice?
    Like ch.0, 12, 47. and they must be "found" by a string(the name)?

    Cheers
    Lennart



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/01/2012 at 17:32, xxxxxxxx wrote:

    Hm. For me the code here does all I need, that is, getting the
    position of particles in a TPgroup (TPgroup object in a list or link).
    I've tried using several groups (for different emitters) and
    used a separate instance of my tool for each emitter and run into no problems AFAIK.

    May I ask, what this "uid_maxon" channel actually is doing?
    Am I right it is "only" to set objects to specific particles, as in the PythonRandom example from
    the ContentBrowser?

    The only issue I ran into was that I could use the import TP module in an Python Expression Tag
    (to test my set up) and use "tp.Position(particle)". But trying the same in a Python ObjectGenerator
    I got "module doesn't have 'Position' " and I can simply use the "doc.GetParticleSystem()" directly,
    and no imported tp module at all(?)

      
    psys    = doc.GetParticleSystem()   
    poslist = []   
      
    if lobj.CheckType(1001381) and psys is not None: #TP Group Object   
         for particle in lobj.GetParticles() :   
              tppoint = psys.Position(particle)   
              poslist.append(tppoint)   
    

    Cheers
    Lennart


Log in to reply