Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Resolving expressions in intercepted codes.

    Scheduled Pinned Locked Moved
    Plugins for DWC and DSF
    2
    3
    218
    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.
    • nmsmith89undefined
      nmsmith89
      last edited by

      Using dsf-python is there a way to resolve expressions passed to codes that are intercepted?

      I was expecting a method like resolve_expression() but I didn't see anything like that.

      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @nmsmith89
        last edited by

        @nmsmith89 can you give a specific example please.

        www.duet3d.com

        nmsmith89undefined 1 Reply Last reply Reply Quote 0
        • nmsmith89undefined
          nmsmith89 @T3P3Tony
          last edited by

          @t3p3tony I found it finally!

          What I was looking for was:

          con.perform_command(evaluate_expression(CodeChannel.SBC, expression)) 
          

          based on dsf.commands.basecommands.evaluate_expression. Since RRF expressions aren't automatically resolved as they are intercepted you have to do it yourself.

          It just wasn't immediately clear.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA