Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    "uid_maxon(integer)" channel Q

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 447 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post