Jump to content

Menu Script consistency


Recommended Posts

Hey!

I've done an asset that lets the user select a mapped network drive

The menu is populated by script, and everything is file and dandy

The problem arises when another user opens the scene or the scene gets submitted to our renderfarm

If the other machine doesn't have the same drives mapped the selection gets scrambled

I thought this wouldn't be an issue since they are stored as keys and values, and if i save the scene in text format, i can see that it has stored the key that is set rather than the index of the current selection.

But nonetheless, if i have my mapped drives "P" and "Q", and save it set to "P", and another user opens the scene that only has "Q" mapped, the selection in the interface will be set to "Q", apparently matching the selected index of selection.

Is there a way to fix this?

 

Thanks

Jonas Borgman

Ubisoft Massive

Link to comment
Share on other sites

The menu script gets evaluated every time and so if you have an inconsistency between users/machines, you have to deal with it at the script level. There are also two types of menu: a string type menu and an ordered menu. I believe if you set it to a string type it will preserve its value.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...