Coding help

86 views
Skip to first unread message

icould...@gmail.com

unread,
Dec 21, 2016, 6:59:16 PM12/21/16
to CoSpaces
I'm trying to make a cospace project using coding, and currently im just trying to move this an image. I have figured out how to reference an object in the code but i can't figure out how to do it for an image i uploaded into my project. Help would be appreciated.

Susanne Krause

unread,
Dec 22, 2016, 6:06:18 AM12/22/16
to CoSpaces
Did you use the tab "Uploaded images" in the library? If yes, please try something else instead: Either add images with the web image search or just drag and drop the image file from your desktop into the space in your browser window. If you add images like that, you can get their ID like with any other object:




I hope this will help you complete your project. By the way, we also have a special forum for scripting related questions. You can find it here: https://groups.google.com/forum/#!forum/cospaces-scripting


icould...@gmail.com

unread,
Dec 22, 2016, 9:40:14 PM12/22/16
to CoSpaces
Thank you susan, this helps. One more quick thing i was wondering. Is it possible to have an image speak? when i try to use the speak command, it doesn't work on my imported images but works just fine on any other objects i try it on. Any tips?

Susanne Krause

unread,
Dec 23, 2016, 9:22:06 AM12/23/16
to CoSpaces
You could place a flat/small object behind or beneath your image and let this speak instead. Or you could create billboards instead of speech bubbles with this code: https://cospaces.io/api/#itemfactorycreatetextbillboard

icould...@gmail.com

unread,
Dec 23, 2016, 2:07:47 PM12/23/16
to CoSpaces
thank you susan! Thanks to you, my family's going to love their christmas card! Have a merry christmas!

Susanne Krause

unread,
Jan 16, 2017, 2:05:09 AM1/16/17
to CoSpaces
With our latest update, you can now also get the ID of an image. It works the same way as it does with the 3D objects. 
Reply all
Reply to author
Forward
0 new messages