could not found expected ':'

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

could not found expected ':'

Postby Inez Ryan » Fri Jul 18, 2008 9:42 pm

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
Inez Ryan
 
Posts: 5
Joined: Tue Jul 15, 2008 7:51 pm

Re: could not found expected ':'

Postby Tsar Hoikas » Fri Jul 18, 2008 10:21 pm

You've put the python in the AlcScript file. You'll need to create a file outside of blender for the python.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: could not found expected ':'

Postby Inez Ryan » Sat Jul 19, 2008 12:55 am

Thanks!
Inez Ryan
 
Posts: 5
Joined: Tue Jul 15, 2008 7:51 pm


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron