inexclude in desc

  • On 04/06/2013 at 11:27, xxxxxxxx wrote:


    is it possible to use a inexclude field in a description and control it with python ?


  • On 04/06/2013 at 12:55, xxxxxxxx wrote:

    The description symbol is IN_EXCLUDE.

  • On 04/06/2013 at 13:45, xxxxxxxx wrote:

    hey niklas -

    many thanks - again !

  • On 04/06/2013 at 14:43, xxxxxxxx wrote:

    i try to add a objekt and fill the inexclude list but - get an error (has now attribute FG_Fixtures)

    for obs in activefixtures:
    node[c4d.FG_Fixtures].InsertObject(obs, 1)

  • On 04/06/2013 at 14:53, xxxxxxxx wrote:

    You have to allocate a InExcludeData object, there is a difference between a CustomDataType 
    description element and its wrapping class.

    edit: lol, didn't red my own link properly, what i meant was, you have to do something like that.

    myInExcludeData = c4d.InExcludeData(node[c4d.FG_Fixtures])
    myInExCludeData .InsertObject(...

  • On 04/06/2013 at 15:39, xxxxxxxx wrote:

    i try it like you- and dont get an error but the object isnt in the list

    			MyInExcludeData = c4d.InExcludeData(node[c4d.FG_Fixtures])
    			for obs in activefixtures:
    				MyInExcludeData.InsertObject(obs, 1)

  • On 04/06/2013 at 15:59, xxxxxxxx wrote:

    your code is correct accept from the fact that you should write your InEx data back into the 
    node, otherwise the EventAdd() does not make much sense.

    node[c4d.FG_Fixtures] = myInEx

  • On 04/06/2013 at 16:32, xxxxxxxx wrote:

    great thanks

  • On 04/06/2013 at 21:24, xxxxxxxx wrote:

    Always show the message of an error. It was easy to guess in this case, but it isn't always this way.

Log in to reply