Passing data to deformer



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

    On 14/03/2005 at 08:02, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.1 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Hi,

    I have a generator that has two child input objects (splines). I also have a deformer (in the same .cdl) that is put under the second child object.

    - ParentGen
    - Child A
    - Child B
        - Deformer (Child of Child B)

    Now the parent gets the Child B and I am using SendModelingCommand() to get the deformed spline. However, the deformer requires some data from the ParentGenerator to work correctly.

    The first question arising is, what is the best way to pass data to the deformer?

    I also have to consider a second problem though. The Parentgenerator gets the deformed spline at the beginning and THEN the data that actually should be passed to the deformer is calculated (as the parentGen needs the deformed spline to calculate the data).
    This means, the deformer needs to recalculate the data on its own. This is really bad, as calculation times get pretty high.

    So, anybody any idea how to solve this problem or how to workaround this?

    Thanks in advance
    Katachi



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

    On 25/03/2005 at 10:03, xxxxxxxx wrote:

    push*



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

    On 25/03/2005 at 12:49, xxxxxxxx wrote:

    If the parent needs the deformed spline to calculate the data, and the deformer needs the data to deform the spline, then wouldn't that be an impossible loop? Or is this a well-defined two-step procedure?
    Anyway, can't the deformer just access the parent in the document using GetUp()/GetCacheParent() or something like that?
    The second problem sounds like something you could solve by moving functionality from the parent to the deformer, i.e. let the deformer do both passes once it has the parent information.



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

    On 25/03/2005 at 14:00, xxxxxxxx wrote:

    yes, it sounds a bit "unlogic" but...wait, you made me think of something. Although I cannot let the deformer do the parent pass, I could do vice-versa. I will pass the data from the modifier to the parent...but wait, what do I need a modifier for then? :-)

    GetCacheParent and GetUp don´t work, as he needs internal data calculated within the generator (besides, this is a little bit too unsafe). And the deformer is not a good candidate to evaluate the pass of the generator.

    Anyway, you gave me some ideas I can try first. Thanks for that! Maybe I´ll get back to you for more questions.

    Ok, last posting before Easter here by me.
    So Happy Easter to you (and the rest of the plugincafe bunch here :).
    I will now multiply myself with the inverse Matrix of my parents´ house. ;-D

    Katachi


Log in to reply