mirror of
https://gitlab.com/theadib/JSonRPCPlugin.git
synced 2026-08-29 23:50:27 +08:00
add new option <parent> in command <open>
This commit is contained in:
@@ -6,7 +6,7 @@ import websockets
|
||||
async def hello():
|
||||
uri = "ws://localhost:6001"
|
||||
async with websockets.connect(uri) as websocket:
|
||||
await websocket.send('{"jsonrpc": "2.0", "method": "open", "params": {"filename": "/home/adib/Dokumente/teapot.ply", "filter":"PLY mesh (*.ply)", "silent":true, "name":"testpod"}, "id": 4}')
|
||||
await websocket.send('{"jsonrpc": "2.0", "method": "open", "params": {"filename": "/home/adib/Dokumente/teapot.ply", "filter":"PLY mesh (*.ply)", "silent":true, "name":"testpod", "parent":"one/two/three"}, "id": 4}')
|
||||
result = await websocket.recv()
|
||||
print("result: ", result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user