Help with getting familiour with Python API

i have some basic code but it throughs a odd error

from cospaces import *
import math
import random

boy: AnimatedItem = scene.get_item(“0aQeLHQ7”)
camera: CameraItem = scene.get_item(“h4dXwT8P”)

while True:
raycastpos = ray_cast.cast(origin = camera.get_property(key = “position”) , direction = boy.get_property(key = “position”) )
scene.create_capsule(raycastpos.point)

error:
Exception occurred in Python script:
TypeError: ‘str’ argument expected, ‘JSObj’ found
Traceback (most recent call last):
File main line 1, in
import Python
File line 9, in

1 Like

Hi @Alvin_Wondeok_ALFORD

Can you please send us a link to this CoSpace and enable remixing so we can take a look at this for you?

Thanks!