ZBrushCentral

Even more ZScript questions!

Many thanks to all those who have answered my previous questions, your advice has been invaluable! Your reward is that you get even more questions :slight_smile:

There may be obvious answers to some of the following, in which case feel free to castigate me for my stupidity :-). However, I’m familiar enough with the ZScript command ref now that none of the questions have any answers that I can easily see…

  1. Is there any way of “iterating” over a set of custom tools, for example by getting a list of them somehow and then going through each element of the list. I’d like to do something like, for example

[VarSet, customMats, […expression returning list of materials…]]

  1. Are there rules for what happens if, for example, I load two custom tools which have the same file name? I can try this myself, of course, but I’m wondering if there is a formally defined rule which would apply to all such possible conflicts.

  2. Is there any way of renaming a custom tool, mat, etc. Is there any way of providing other aliases for existing tools and mats?

  3. Is it possible to define the text that comes up when a user hovers over a custom control and presses Ctrl, in addition to defining just the standard popup description (which I know can be done when defining the control)?

  4. When bringing up a “Open” dialog, is there any way of setting thing up so that a user can choose a folder rather than a file? (I’m writing a script which will be project-based rather than document-based, so that the user can open an entire project at once.)

  5. Is there any way of presenting a field to the user allowing them to enter arbitrary text, so they can rename models and so forth?

As always, many thanks for the questions. More to follow :slight_smile:

Ken

hi,

am not proficient enough in zscript to answer you really, but I have seen some answers in posts by Tveyes, sven, marcus, digits, and cameyo that would probably answer some of these. Not to mention if you haven’t already check out any of Davey’s posts…some will be pretty old but read the whole thread cuz alot of times the answers are found later than the questions asked…if that makes sense. Anyway some names to search.

I replied in case you are not in touch with anyone who can answer you here and bring it up again since it has been a week.

good luck.