Hi
The message is not that you cannot connect to the rrServer.
The message states “Encoded … not supported…”.
This feature requires a RR license.
Please use tcp.connectAndAuthorizeDemo() after setServer():
https://www.royalrender.de/help/SDK/sdk/python_reference/libpyRR_tcp.html#libpyRR39._rrTCP.connectAndAuthorizeDemo
And remove the setLogin() line.
Note:
We provide some helper scripts/module you can use.
It works with any Python version, no need to update any script if you switch the python app (Maya/Houdini version).
Please see RR\SDK\External\Python\rr_python_utils
Code snipplet:
# set search path to “RR\SDK\External\Python”.
# You can either copy the module folder to your script to use this snipplet
# Or use os.environ[“RR_ROOT”] to set the right folder.
import sys
import os
mod_dir = os.path.dirname(__file__)
if mod_dir not in sys.path:
sys.path.append(mod_dir)
#import helper
from rr_python_utils.load_rrlib import rrLib
import rr_python_utils.connection as rr_connect
#connect to the rrServer
rrTcp = rr_connect.server_connect(user_name=None)
regards,
Holger Schönberger
Please use the rrKnights Tavern
or our support system for new questions.