Cant call a childscript function from python api without error

Typically: "How do I... ", "How can I... " questions
Post Reply
srad
Posts: 2
Joined: 20 Sep 2017, 21:38

Cant call a childscript function from python api without error

Post by srad » 20 Sep 2017, 22:07

Im a newb to Vrep and was wondering on how to resolve this error

Function didn't produce expected return values, i.e. an int table, a float table, a string table and a buffer string. (simCallScriptFunctionEx on detachObjectFromGripper@RG2)

The function that i wrote is below

detachObjectFromGripper=function()
--use the bottom line to detach the ball
simSetObjectParent(connector,-1,true)
end

What do i return to get rid of this error

coppelia
Site Admin
Posts: 6136
Joined: 14 Dec 2012, 00:25

Re: Cant call a childscript function from python api without error

Post by coppelia » 22 Sep 2017, 08:42

Simply return following:

Code: Select all

return {},{},{},''
Make sure you have a look at the example in programming/remoteApiBindings/python/python/complexCommandTest.py and the scene that goes with it in scenes/remoteApiCommandServerExample.ttt

Cheers

Post Reply