Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 8:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: 2 objects with same name
PostPosted: September 3rd, 2008, 11:19 am 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Hi,

Does it matter if two objects are named the same. I currently have this as it makes what I am doing a little easier through script. The parent Frame is named Feature1 and one of it's children is a vector also named Feature1, see screenshot.

Will this cause problems or increase the possibility of crashes?

Thanks


You do not have the required permissions to view the files attached to this post.


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Train wreck
PostPosted: September 3rd, 2008, 1:00 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Having any two Objects and/or Pages with the same name is a "train wreck" waiting to happen. NEVER do that! It might seem like everything is OK, but it's not.

In the Organizer, if you name a Page "Module (1)" (without the quotes) then highlight and Duplicate it, the copy will automatically be named "Module (2)." OPUS will automatically keep incrementing the names for you. The same is true for Objects. Name a Button "Section (1)". Apply all your customized Properites like Shadow, Mouse Over Triggers & Actions, custom Cursor, whatever. Then each time you copy & paste the Button, it's name will increment [e.g. Section (2), Section (3), Section (4), etc.].

If you have duplicate names, you will have problems especially if you use Variables.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


For this message demofred has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 3rd, 2008, 1:02 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Yes. And I wouldn't think that this is good practice.

The name in the tree is for your reference and use in scripts and if you call an object that has the same name as another Opus will apply the function to the one with the lowest index.

The problems occur if you call a function not suitable for that type of object.

Note that Opus itself uses a unique object ID - which is why if you use actions rather than scripts, Opus knows when the name of an object has changed and applies the action to the right object.

Mack

P.S why does having the same name make it easier?

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 4th, 2008, 10:08 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Ok thanks.

Just need to create a frame around 50 objects, 44 are single object so need to manually create frames.


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: September 16th, 2008, 10:05 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
It won't cause any problems (Opus doesn't use the names internally for anything - they're mainly for your reference). However, as has been mentioned, it can cause issues if you use scripting, and can make selecting objects in action dialogs confusing if you don't know which item you're selecting. The QuickBuild Rename options can be very useful in renaming lots of objects to unique names.

Also don't have objects with the same names as variables - this will also confuse the scripting.

_________________
ddww Opus Developer


For this message Duncan Lilly has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group