Player API -Tools Manipulation

Prashant
This is regarding Tool Manipulation of the Client Side Player API. https://docs.threekit.com/docs/player-api#tools Is there a function to know what all tool we have added. We want to disable the default tool i.e orbi…

Comments

6 comments

  • Comment author
    Prashant

    This is regarding Tool Manipulation of the Client Side Player API.
    https://docs.threekit.com/docs/player-api#tools

    1. Is there a function to know what all tool we have added.
    2. We want to disable the default tool i.e orbit, zoom and pan.
      setTool is not working. But if we remove the tool the it works. Can we get some detailed documentation .
    0
  • Comment author
    William Thompson

    Hi Prashant, are you achieving the results you would like but find a gap in the documentation?

    There is a function to know what tools are added, it is not yet documented or fully supported. Thank you for pointing out the documentation gap.

    let api = player.enableApi(’player’);
    api.tools.tools;
    

    Please try this and let me know if it helps.

    0
  • Comment author
    Prashant

    @Will

    1. api.tools.tools don’t fetch any results.

    Only following functions are available. There are no properties to get/set

    1. We are not getting the desired result with setTool method.
    0
  • Comment author
    William Thompson
     
    Will:
    let api = player.enableApi(’player’);
    api.tools.tools;
    

    In my example I stored an instance of the private player API in a variable called api. Did you do the same? I tested it and it worked. If you call your player api in your Threekit initialization you will have to name it something else.

    I will open a case on your behalf to troubleshoot the getting/setting tools. Someone from Threekit will follow up via support.

    0
  • Comment author
    Prashant

    Thanks Will. With your suggestion the api.tools.tools works now.

    Thanks for creating a ticket for getting/setting tools.

    0
  • Comment author
    William Thompson

    I’m happy to help. Please let me know if I can assist anywhere else.

    0

Please sign in to leave a comment.