e.this.[user_made] in save

About advanced scenes, and the Thyme scripting language used in Algodoo.

e.this.[user_made] in save

Postby Blazemann » Tue Apr 06, 2010 7:49 pm

How can one retain a custom property generated in the script panel on an object through a save?
User avatar
Blazemann
 
Posts: 151
Joined: Tue Sep 01, 2009 1:19 am

Re: e.this.[user_made] in save

Postby Mystery » Wed Apr 07, 2010 2:37 am

By pressing enter. I'm not sure what your asking (Custom Property's) aren't likely to bugger off so i'll just run you through the whole thing

Bottom of the script panel, little empty box.
Type in
Code: Select all
memakefire := true

Now you should see real box just like other boxes.
New box just like other box.
New Box trick might not work in Phun.
Last edited by Mystery on Wed Apr 07, 2010 3:37 am, edited 1 time in total.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: e.this.[user_made] in save

Postby Blazemann » Wed Apr 07, 2010 3:32 am

It disappears after saving though...
User avatar
Blazemann
 
Posts: 151
Joined: Tue Sep 01, 2009 1:19 am

Re: e.this.[user_made] in save

Postby Mystery » Wed Apr 07, 2010 3:37 am

Post your code.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: e.this.[user_made] in save

Postby Chronos » Wed Apr 07, 2010 3:51 am

Blazemann wrote:It disappears after saving though...

Yeah, that's a normal problem.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 7 guests