WireTap SDK - WireTapServerInfo

WireTap SDK - WireTapServerInfo

abrownK4LEP
Explorer Explorer
2,071 Views
2 Replies
Message 1 of 3

WireTap SDK - WireTapServerInfo

abrownK4LEP
Explorer
Explorer

According to the WireTap documentation, the WireTapServerInfo class has the ability to both get and set the Wiretap version through getProductVersionMajor, and setProductVersionMajor. 

I was able to use the getProductVersionMajor in Python, however I'm unable to figure out how to use any of the set function such as setProductVersionMajor. 

I am hoping to be able to set the wiretap version when executing some scripts on machines that have multiple versions of Flame. For example, one machine has 2024.1 and 2024.0.2. In this case, I'd like to be able to set the wiretap version to 2024.0.2 before creating certain nodes so it is readable in the older version. 

Can someone please let me know if this is possible and what the Python equivalent is with the SDK? 

0 Likes
2,072 Views
2 Replies
Replies (2)
Message 2 of 3

jean-philippe_brault
Autodesk
Autodesk

The WireTapServerInfo has setters that are used by the server to fill the information returned to the caller and calling the setter on the client side have no effect on the server.

When multiple version of the services are installed, the one that will be used for the server session will be the closest match to the Wiretap Client SDK used. There is now way to programmatically change that.

If you know the version you need however, there might be a simple workaround. Each Flame install a python installation that match its environment with a python wiretap SDK in its site-packages. Running /opt/Autodesk/python/<version>bin/python your_script.py will automatically match the server version to the version of the python wiretap SDK installed with the python interpreter.

 

Cheers

JPB

0 Likes
Message 3 of 3

abrownK4LEP
Explorer
Explorer

Hi JP, 

Thanks for the response. This helped to clarify why there were both setters/getters. I think the workaround you mentioned should work for us as we were already doing something very similar. I will test that if you run the script from a lower wiretap version, that everything is respected for that version (ie. running in the 2024.0.2 python folder doesn't try to create the user when there is a higher version such as 2024.1) 

0 Likes