Some InExcludeField questions ...



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

    On 09/03/2007 at 00:49, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R9.507 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi
    i use an inexclude field as an input in one of my functions.
    Now i got some questions:
    - Is there a way to allow only one linked object in the inexclude field? (so that there is no chance for the user to drop in more than one object.)
    - Does somebody know a method to check if and where an object is already dropped in? e.g there is Object 1 and Object 2. Object 2 has been put in the InExcludeField of Object 1. Is there a method to let Object 2 "know" that it is linked in the InExclude of Object 1?
    Thx for your help



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

    On 09/03/2007 at 04:24, xxxxxxxx wrote:

    1. Why don´t you use a linkfield if you only want 1 object to be dropped???
    2. In object2, get the basecontainer of object1, get the inexclude field and check if it is in there.

    pretty straight forward huh?! ;)



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

    On 11/03/2007 at 11:29, xxxxxxxx wrote:

    K thx Katachi for your first hint. I think the linkfield is better for my needs.
    The method to check if object 1 is linked to a specified object is quiet simple. But i have to check if it's linked anywhere in the whole structure. So maybe i can check this with a loop and check it in every single twig of the tree but if anyone should be able to work with the plugin, i think this is not the best method, cause even a small project will have more than a thousand of these tags and each of these has to check where it is linked to. So i wanted to know if there is a standart routine i can use...

    Thx



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

    On 12/03/2007 at 02:51, xxxxxxxx wrote:

    Quote: _So i wanted to know if there is a standart routine i can use...
    >
    > * * *
    _


    There is no such function in the SDK. Also afaik you can't restrict the in/exclude lists to a number of objects. If you use only few object then probably the link fields are the way to go.

    cheers,
    Matthias



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

    On 12/03/2007 at 02:58, xxxxxxxx wrote:

    Thx Matthias, i substituted the linkfield for the inexclude field.
    If there is no such function in the sdk i have to write it myself...


Log in to reply