rendering problem->Xpresso



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

    On 16/02/2011 at 18:34, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   r12 
    Platform:      
    Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

    ---------
    Hi,
    I did a c.o.f.f.e.e. script into Xpresso node.
    No third party plug-in or whatever not being C4D's basic elements.
    Everything just works find.
    Did a simple animation.
    When rendering, the result doesn't show what was happening just before rendering.
    To makes a short story, is there something into c.o.f.f.e.e. scripting (Xpresso node) that deals with rendering properly/accurately.
    I also tried to change priority/hierarchy changes.
    Nothing do.
    Any clue would of great help.
    Thanks.
    Jean



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

    On 17/02/2011 at 00:13, xxxxxxxx wrote:

    The Code or the hole Scene would be more helpful to find a solution. ;)
    Usually it should be the same. Are you having the same Framerate in Editor *and* Rendering ?

    cheers, nux



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

    On 17/02/2011 at 05:55, xxxxxxxx wrote:

    Hi nux,
    Here's the file (link to YouSendIt).
    Thanks,
    Jean

    https://www.yousendit.com/download/MzZIZm1lZ2o3N0JFQlE9PQ



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

    On 17/02/2011 at 06:12, xxxxxxxx wrote:

    The problem is that you use GetActiveDocument(). This will give you not the rendered document. The rendered document is a clone of the loaded document. The only exception is if you render in the viewport, which will also work in your case. What you can do is pass the links to your objects, tags etc. directly into your COFFEE node.

    cheers,
    Matthias



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

    On 17/02/2011 at 06:47, xxxxxxxx wrote:

    Thanks a lot Matthias,
    Could you please give me an example of what is "passing the links to your objects, tags, etc.".
    Or just a clue.
    Jean



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

    On 17/02/2011 at 06:57, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    Could you please give me an example of what is "passing the links to your objects, tags, etc.".

    What I mean is for example to connect object nodes directly to the COFFE node instead of using doc->FindObject(name).

    cheers,
    Matthias



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

    On 17/02/2011 at 07:04, xxxxxxxx wrote:

    Thanks again,
    I'll work on this,
    Regard's,
    Jrean



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

    On 17/02/2011 at 08:29, xxxxxxxx wrote:

    What if one defines the document-variable only one time ?
    kinda like this:

      
    var doc;  
    main() {  
      if(!doc) { doc = GetActiveDocument(); }  
      //Do stuff  
    }  
    

    //edit: Ah tested it, didnt work.
    So, there is no way to do it with that comfortbility ? Crappy ! xO

    But you can also overload your Object with XPresso. (COFFEE-Node > New Input > Type 'Link')
    And btw, why are there so many Selectiontags ?

    cheers, nux



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

    On 19/02/2011 at 07:37, xxxxxxxx wrote:

    Hi nux,
    Selectiontags are there cause there is four colorer that have to work at the same time.
    There's may be a smarter way to do it, but i don't know the "workaround".
    That said, i would have two questions :
    First, i've got a null having three children and i know i want to get the second one(i don't know the name of the object, but i know that is a polygonal object) , is there a way to get it directly, without the GetNext command?
    Second, could i insert sort of a clone doc command somewhere so i could get a render of the scene?
    Just asking.
    Thanks again,
    Jean



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

    On 19/02/2011 at 08:49, xxxxxxxx wrote:

    I can't answer the second question, because I don't know it, too. ;-)
    But for the first one: no there's no way 'round. If you need to do so more than one time, you could create a function to solve it, than rewriting that code.

    MyGetNext(op,u) {  
      var i = 0;  
      while(op && i < u) {  
          op = op->GetNext();  
      }  
      return op;  
    }
    

    cheers, nux



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

    On 19/02/2011 at 09:49, xxxxxxxx wrote:

    Thanks again!
    Jean



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

    On 19/02/2011 at 14:26, xxxxxxxx wrote:

    Why not overloading the Object, like so ?:


    Download Example



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

    On 20/02/2011 at 13:04, xxxxxxxx wrote:

    Hi nux,
    Thanks for the C4D's file.
    I found a way to fix the rendering problem following the "link" avenue Matthias proposed.
    But eventually i'll check how i could have been able to implement this overload approach you're talking about.
    Not sure that i've got the skills to do that but i'll give it a try.
    Jean


Log in to reply