CurrentStateToObject



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

    On 31/07/2005 at 23:21, xxxxxxxx wrote:

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

    ---------
    Hi ...
    Now I'm facing a problem ... I think it's a little strange ...
    The problem come like this ...
    I insert a boole first ...
    Then I insert an object (let's say ObjA) under the boole ...
    Then I insert another one (let's say ObjB next to ObjA) ...
    The exact hierarchy is Boole->ObjA,ObjB ... exactly
    If I simple do that and call the modeling command CurrentStateToObject I got an object with a hole ... I hope you see ... and got no problem
    In some cases I use other objects like AlignToSpline tag and other objects such as Spline for placing ObjB exactly ... then I call CurrentStateToObject ... but the result is not what I expect ... the resulted obj not got a hole
    You may think ( and I also thought ) the ObjB may be in a wrong place ...
    But as we know ... the CurrentStateToObject gave us a new one object but also the old one is left at the original state ... the old one is true ... but the resulted one got no hole ...  not corresponding to the old one
    My explanation may be a little long and complex ... I hope you see ...
    How can I solve it ?
    With all my respects
    ZawMinTun
    P.S if you're interseted in the problem,please kindly mail to me at Mg.ZawMinTun@gmail.com ... I'm gonna send you the c4d file which represent the problem ...



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

    On 02/08/2005 at 00:53, xxxxxxxx wrote:

    Any idea?



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

    On 11/08/2005 at 12:44, xxxxxxxx wrote:

    The scene you sent me seems to work well, at least when calling Current State to Object from within C4D. Is that how you called it? The object I get looks just like the live one. I can't reproduce the buggy one included in the scene. (This is in 9.101.)



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

    On 11/08/2005 at 20:20, xxxxxxxx wrote:

    So good to hear from you ... Mikael ...

    If you make it CurrentStateToObject in C4D it will be OK.
    If I use two button on the dialog box and ...
    when first button click .. I place them as in the file I sent to you ...(Let's assume it's done by FuncA())
    when second button click ... I call the current state to object ... ... the result will be OK ... (Let's assume this FuncB())

    But when I use only one button for those two steps ...
    I implement
    FuncC()
    {
       FuncA();
       FuncB();
    }

    then it didn't work well ...
    It sounds like memory unrefreshinhg ;-) ...
    So I call some refreshing function like Message(MSG_UPDATE) ... EventAdd(EVENT_FORCEREDRAW) ...
    But no result that I expect ... I mean no hole ...

    Am I understood?

    Hope to hear from you again ...
    With all my respects ...
    ZawMinTun



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

    On 12/08/2005 at 20:51, xxxxxxxx wrote:

    I also found a problem like this ...
    If I insert a null ... it will formally go to WorldCoordinat 0,0,0 ...
    Then I attach an AlignToSpline to that Null ...
    So the Null move to a certain location ..
    But when I query its WorldCoordinate using GetPos() it shows 0,0,0 ...
    It's sure I used obj->GetPos()*obj->GetMg()
    But when I check the WorldCoordinate in C4DWorkSpace .. it shows the truth (not 0,0,0) ...
    I also called the Message(MSG_UPDATE) of the object and tag .. why?

    With all my respects ..
    ZawMinTun



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

    On 14/08/2005 at 21:33, xxxxxxxx wrote:

    The relating problem is like this ...

    Insert any object ... attach AlignToSpline Tag to it ...
    The object will move to a certain location ...
    Then remove tag .... the object will go back to 0,0,0 WC

    If I do those procedures in C4D WorkSpace the object will remain at the place the tag put it ...

    Any answer to this problem?

    Full of questions and no answer-reply ...

    I hope I'm not making you sick ....

    With all my respects
    ZawMinTun


Log in to reply