Macros can be tricky like that but the solution depends on what you are trying to do. For example, do you want your macro to give you the option of choosing the OBJs? Posting the whole macro will help as it will need editing.Thanks for the response. Yeah, basically I want to import two objects and make one the subtool of the other. It would be nice to then subdivide and create a morph target and layer but that is secondary. What I want hope to be able to do is run a python script on the macro that will change the imported OBJs for subsequent projects. When I'm around a computer I will upload a version of the script and see if anyone can make sense of it. Here's a macro that will do what you want, or you can adapt it to you needs. Copy the file to your ZBrush 4R4 ZStartup Macros Misc folder and press Macro>Reload All Macros or restart ZBrush. There will then be an AppendOBJ button in the Macro>Misc folder. The macro works by reading a text file. I've set this to ZBrush 4R4 ZScripts AppendList.txt but you can change this to anything/anywhere you want by editing the fileListPath at the start of the macro. (Note though, it's probably not a good idea to store the file in the Macros folder or subfolders as ZBrush will try to load it as a macro.) The AppendList.txt file has the file names and full paths for the OBJs you want to use. The list is simply the file paths, on separate lines, e.g.: C: Users Marcus Desktop Body_1.OBJ C: Users Marcus Desktop leftArm.OBJ C: Users Marcus Desktop rightArm.OBJ The macro will load the first file and then append the remaining ones, so long as the files actually exist. It will append any number up to 100 OBJs, though again you can change this if you wish by editing the maxAppend number at the start of the macro. I've commented the macro so that anyone who's interested can see what the code is doing. Download macro here: HTH. I am new to it and cant understand a damn thing, basically the UI! Any good tut for a N00B? Here's a macro that will do what you want, or you can adapt it to you needs. Copy the file to your ZBrush 4R4 ZStartup Macros Misc folder and press Macro>Reload All Macros or restart ZBrush. There will then be an AppendOBJ button in the Macro>Misc folder. The macro works by reading a text file. I've set this to ZBrush 4R4 ZScripts AppendList.txt but you can change this to anything/anywhere you want by editing the fileListPath at the start of the macro. (Note though, it's probably not a good idea to store the file in the Macros folder or subfolders as ZBrush will try to load it as a macro.) The AppendList.txt file has the file names and full paths for the OBJs you want to use. The list is simply the file paths, on separate lines, e.g.: C: Users Marcus Desktop Body_1.OBJ C: Users Marcus Desktop leftArm.OBJ C: Users Marcus Desktop rightArm.OBJ The macro will load the first file and then append the remaining ones, so long as the files actually exist. It will append any number up to 100 OBJs, though again you can change this if you wish by editing the maxAppend number at the start of the macro. I've commented the macro so that anyone who's interested can see what the code is doing. Download macro here: HTH,Marcus that works great! Thanks a ton! I've been trying to find a way to do this for years.! What did you have to do in order to make it work? Or are there just a few things that don't work with macros? If I wanted to add a couple other functions such as set a morph target, create a couple layers and subdivide. Could I just add that or would there be more i'd need to know for that as well? Thanks a million regardless! Marcus that works great! Thanks a ton! I've been trying to find a way to do this for years.! What did you have to do in order to make it work? Or are there just a few things that don't work with macros? If I wanted to add a couple other functions such as set a morph target, create a couple layers and subdivide. Could I just add that or would there be more i'd need to know for that as well? Thanks a million regardless!It's the selecting from the pop up which is tricky. For some reason it requires a full path which is not provided when the macro is just recorded.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |