Copy Code/ Breakthrough (Kinda)

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

Copy Code/ Breakthrough (Kinda)

Postby legophunpp » Mon Apr 05, 2010 1:33 am

I made a post like this a while ago, but this is different. Is There a copy code like "e.other.copy"?

I am asking because I discovered this- If you press Ctrl+C while an object is selected, you get a code like this when you paste in text form:

// Phunlet created by Algodoo v1.6.5

FileInfo -> {
title = "New scene";
author = "Benny";
version = 8
};
Scene.addPolygon {
surfaces := I left this out (takes up space);
collideWater := true;
color := [0.33169484, 0.31027052, 0.8067542, 1.0];
onCollide := (e)=>{};
attraction := 0.0; controllerAcc := 11.0; onHitByLaser := (e)=>{}; heteroCollide := false; immortal := false; opaqueBorders := true; refractiveIndex := 1.5;killer := false; friction := 0.5; restitution := 0.5; drawBorder := true; controllerInvertX := false; controllerInvertY := false; controllerReverseXY := false;
airFrictionMult := 1.0; showVelocity := false;
density := 2.0; textureMatrix := [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]; texture := ""; inertiaMultiplier := 1.0;
showForceArrows := false;
collideSet := 1; materialVelocity := 0.0;
entityID := 16; zDepth := 4.0;
geomID := 63;
pos := [-1.1796051, 0.34090373];
angle := 0.0
}

See, See.
So if I could Copy that, I might be able to find a practical application for it.
legophunpp
 
Posts: 12
Joined: Tue Jan 12, 2010 1:26 am

Re: Copy Code/ Breakthrough (Kinda)

Postby RicH » Mon Apr 05, 2010 2:15 am

A lot of people know that. It's pretty old really. People use it sometimes so they can spawn complex polygons with a script.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Copy Code/ Breakthrough (Kinda)

Postby legophunpp » Mon Apr 05, 2010 2:17 am

Yeah, I just Realized I could do that. THX
legophunpp
 
Posts: 12
Joined: Tue Jan 12, 2010 1:26 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests

cron