Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    question on mograph splinewrap deformer

    SDK Help
    0
    1
    121
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 07/11/2013 at 02:31, xxxxxxxx wrote:

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

      ---------
      Hi there,

      i am currently facing a real strange behaviour. i am creating a mograph splinewrap deformer inside my plugin. generally everything looks fine but the deformation is behaving different (bottom in image). as soon as i make the plugin object editable and toggle the deformer off and on it looks like it should (top in image)

      i am hoping that there is a solution. maybe it is that there is something wrong with my initialisation (maybe someone has the code for initializing all parameters of that deformer as the default)? i am not setting all parameters but the following:

        
        
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_SPLINE),GeData(deformerSpline), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_RAIL_SPLINE),GeData(deformerRailSpline), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_AXIS),GeData(MGSPLINEWRAPDEFORMER_AXIS_ZP), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_STRENGTH),GeData(1), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_FROM),GeData(0), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_TO),GeData(1), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_RAIL_TARGET),GeData(true), DESCFLAGS_SET_0);  
            splineDeformer->SetParameter(DescID(MGSPLINEWRAPDEFORMER_SIZESTRN),GeData(1), DESCFLAGS_SET_0);  
      

      any help fixing this behaviour is really appreciated.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post