Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    python tag delay problem

    PYTHON Development
    0
    3
    973
    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 19/07/2018 at 06:12, xxxxxxxx wrote:

      Hi.folks!
      I met a problem that made me depressed. I have a polygon name "A" object that have a skin deformer.A null Object name "CTR" with a python tag to get "A" point (Index :2)  position to "CTR" position. A spline object name "sp" that have a python tag to control the "sp" point position,A polygon object name "B" that have a spline warp deformer.
       Theoretical caculate sequence:skin deformer of "A" (base priority is Generators : -2, )--->python tag of "CTR",get
      the point (index : 2 ) position to "CTR" (python tag base priority is Generators : -1)  --->  python tag of "sp" use "A" position  to control  "sp" point (python tag base priority is Generators: -1) ---> caculate spline wrap deformer of "B"
      (b)
      but delay problem appears with python tag of "CTR" .    
      his code
      `

        
      `
      `    A = op[c4d.ID_USERDATA,1]    # Userdata is polygon name "A"  
        AMG = A.GetMg()  
        cache = A.GetDeformCache()  
        CTR = op.GetObject()  
        CTR.SetAbsPos(AMG * cache.GetPoint(2)) 
      

      when i move joint ,the "CTR" position  have delay problem.
      Thanks for your help!
      `

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 20/07/2018 at 03:38, xxxxxxxx wrote:

        Hi,

        This looks like a priority issue. What's the priority of the Python tag on null object "CTR"? Is it set to Generators?

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 20/07/2018 at 04:13, xxxxxxxx wrote:

          yes,skin set Genetators : -2 --> "CTR" Python tag  set Genetators : -1 -->"sp"Python tag set Generators : -1 --> spline warp deformer

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