Jump to content

How to use an ordered menu with strings for Switch SOP?


Recommended Posts

This is similar to the VOP problem I had but different because at the object level I can't figure out how to refer to it.

I have an ordered menu where the type is set to string and looks something like this:

token / name

nurbs / NURBS

poly / Polygons

but using

ch("../menu") == "nurbs"

chs("../menu") == "nurbs"

etc

doesn't work for the Select Input of the Switch SOP.

Any ideas?

Thanks :)

Link to comment
Share on other sites

I could use it but I copied the Composite VOP that was also using strings. I think this might be due to having them in code makes it more self-explanatory. Since I did the same and brought those parameters to asset level, I am facing the same problem at the geometry level.

Also I have 6 menu items.

Link to comment
Share on other sites

Thanks hopbin. How do I access the menu item array? I was actually expecting chs to work with the comparison because it works if I use it for a name field like the Group name in backticks. So it actually gets the correct token string, but just not in a comparison.

Link to comment
Share on other sites

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...