SetPData(), GetPData() TypeError

  • On 11/05/2015 at 02:31, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R16 
    Platform:     Mac  ;  
    Language(s) :

    Using c4d.modules.thinkingparticles.TP_MasterSystem.SetPData() or ~.GetPData() throws a TypeError
    here when I try it on a Boolean data channel. It seems to work fine for Integers though.

  • On 11/05/2015 at 02:35, xxxxxxxx wrote:

    Traceback (most recent call last) :
      File "'ParticlesToMesh'", line 108, in main
    TypeError: The data channel is not accessible: '174'.

  • On 11/05/2015 at 02:36, xxxxxxxx wrote:

    Hm, I always get 0 for an Integer channel but I set it to TRUE from XPresso.

  • On 11/05/2015 at 09:16, xxxxxxxx wrote:


    could you please provide us with the code that is necessary to reproduce the described behavior?

    Best wishes,

  • On 11/05/2015 at 11:42, xxxxxxxx wrote:

    import c4d
    def main() :
        tp = doc.GetParticleSystem()
        pid = tp.AllocParticle()
        last_channel = tp.NumDataChannels() - 1
        if last_channel < 0:
            print "Please create a Data Channel."
        print "1)", tp.GetPData(pid, last_channel)
        print "2)", tp.SetPData(pid, last_channel, True)
        print "3)", tp.GetPData(pid, last_channel)

    Create a Boole channel before you run the script.


  • On 15/05/2015 at 08:36, xxxxxxxx wrote:


    it has been confirmed that this is a bug. A bug report was filed, thanks for reporting this.

    Best wishes,

Log in to reply