Any way to add 'Auto Convert' ?

Forums 💬 NodeCanvas ⚙️ Support Any way to add 'Auto Convert' ?

  • This topic has 0 replies, 2 voices, and was last updated 4 years ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15948
    whitedoggy
    Participant

      Hi.

      So far, we are so satisfy about NodeCanvas’s Awesome features.

      And especially, ‘AutoConvert’ is really cool feature, it made our development much more faster.

      However, we began to need of using ‘Custom Auto Convert’ if it is possible.

      for example, I want to convert Graph Owner into Blackboard. when user put in ‘GraphOwner’, I want to retrieve Graph Blackboard.

      So far, I have just wrote the script name ‘GetOtherGraphVariable'(Similar with ‘GetOtherBlackboardVariable’). But I want to use Auto Convert instead of having one more extra script, if it is possible.

      I will look forward to your answer, Thanks!

      #15949
      Gavalakis
      Keymaster

        Hello and sorry for the very late reply!

        Thank you for your feedback. I am glad you like NodeCanvas 🙂
        Yes, it is possible to provide custom conversions by subscribing to the “customConverter” event found in the TypeConverter class. Here is an example of usage for adding a converter from GraphOwner to Blackboard as per your example case:

        Let me know if that works for you.
        Thanks!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.