could not found expected ':'

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
Post Reply
Inez Ryan
Posts: 5
Joined: Tue Jul 15, 2008 7:51 pm

could not found expected ':'

Post by Inez Ryan »

If anyone is familiar with the wiki "How to Make an Object Clickable" I would appreciate some assistance.

I have tried to use the code in this wiki as a template, but I when I try to export the age I get an error and the following appears in Blender's console:

yaml.Scanner.ScannerError: while scanning a simple key
in "<string>", line 10, column 1:
actClickableObject = ptAttribAct ...

could not found expected ':'
in "<string>", line 11, column 1:
strObject = ptAttribString(2, '0 ...

Presumably, I've left something out but I don't know what it could be. Line 11 is as follows -

strObject = ptAttribString(2, 'Object string')

I'm no programmer, just a dumb designer. Anyone got any ideas?
All assistance humbly received.

Thanks
Inez
Tsar Hoikas
Councilor of Technical Direction
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
MOULa KI#: 23335
Location: South Georgia
Contact:

Re: could not found expected ':'

Post by Tsar Hoikas »

You've put the python in the AlcScript file. You'll need to create a file outside of blender for the python.
Image
Inez Ryan
Posts: 5
Joined: Tue Jul 15, 2008 7:51 pm

Re: could not found expected ':'

Post by Inez Ryan »

Thanks!
Post Reply

Return to “Scripting”