but this only works for one piece at one time. I have about 100 pieces to set flag, it becomes very troublesome. So I’m wondering if there is a way to set multiple ones at one time?
Thanks!
In any case, you might want to consider putting the troublesome command into a .bat file so you only have to type it once, rather than every time. And you can even write a Python program to generate the .bat file if that helps.
flag all the pieces with the same “something”. What if I want their flag to be unique?
And could you please give me more hints on how to generate and use .bat file to do this?
If you want to flag all the geometry as its own name, you can just do:
egg-optchar -o new.egg -flag "Sphere*" old.egg
or even:
egg-optchar -o new.egg -flag "*" old.egg
which flags each and every object, giving you full access (but at some render performance cost).
To construct a .bat file, just write a program that generates the command line you want to run in a string, with each of the -flag options you want. There might be dozens or hundreds of -flag options, whatever you need. Then write that string to a .bat file.