re-name objects

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

re-name objects

Postby chaos » Tue Jan 29, 2013 7:17 pm

Hey group

if i draw a circle or a box it is call "circle" or "box" is it possible to rename stuff to more meanuful names?

Chaos
chaos
 
Posts: 16
Joined: Sun Mar 13, 2011 9:21 pm

Re: re-name objects

Postby Kilinich » Tue Jan 29, 2013 8:38 pm

add _name variable and call it as you want to :)
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: re-name objects

Postby chaos » Tue Jan 29, 2013 9:34 pm

Hi Kilinich

thank you for your reply, how do i do that?

Chaos
chaos
 
Posts: 16
Joined: Sun Mar 13, 2011 9:21 pm

Re: re-name objects

Postby Kilinich » Tue Jan 29, 2013 10:03 pm

chaos wrote:thank you for your reply, how do i do that?

First - why you need it, what for?
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: re-name objects

Postby chaos » Tue Jan 29, 2013 11:16 pm

i am designing a mechanism and i have information windows open on each element of the design but at the moment it just says box or circel and i can't relate the window easily to the object it relates too, so i want to enter meaniful names to make it easier!

Chaos
chaos
 
Posts: 16
Joined: Sun Mar 13, 2011 9:21 pm

Re: re-name objects

Postby Kilinich » Wed Jan 30, 2013 8:19 am

Oh, just click on window title and type new name for it.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: re-name objects

Postby chaos » Wed Jan 30, 2013 10:35 am

but if you close the window the title reverts back to box etc..?
i need to be able to open and close the windows on material, plot velocity etc... they take up a lot of space so i only want the ones i want open at the time i want them.

is there not a way to rename an object so that the name appears when these windows open?

Chaos
chaos
 
Posts: 16
Joined: Sun Mar 13, 2011 9:21 pm

Re: re-name objects

Postby electronicboy » Wed Jan 30, 2013 5:18 pm

There is no way to rename a object, and for the name to save, it just isn't implemented.

Just minimise the menus and throw them to the side, thats all you can do.

/Electronicboy
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: re-name objects

Postby Xray » Fri Feb 01, 2013 8:13 am

chaos wrote:Hi Kilinich

thank you for your reply, how do i do that?

Chaos


I see that you did not get your question answered, so here it is:

You can create a local variable that you will see each time you open the script menu. You do not need to use it for anything else except for identification. For example, you can name a circle _FAST_CIRCLE or _CIRCLE23 or _GEORGE or anything else. Just be sure that the underscore character is always the first character of the name. If you do not use the underscore character, then the name will not be saved the next time you launch Algodoo. When creating a variable name, you need to give it an initial value, or at least indicate the TYPE of variable. For example _GEORGE:= "" will show the name _GEORGE, and you declared it as a text variable. For your purpose, it doesn't matter how you declare it because you are only concerned with using the name to identify each geometry.

Also, as far as I know (someone may want to correct me if I'm wrong) once you declare a local variable, the name cannot be deleted or edited.

Hope this helps!
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests