ZBrushCentral

Recording a macro for the spin rate slider, when run affects the spin center slider ?

Here is a weird little problem, so I have been using the macro button on the UI to record some macros where I just enter a value into a slider and then end the macro recording. This gives me a preset button for the slider to jump it to the desired value. This has been working fine until I tried it on the spin rate slider, what happens when I press my new macro button I made for the spin rate slider is that it changes the spin center slider instead, even though I did not use that slider when imputing the macro ?

Thanks

Thanks for that, Susan, I’ll report it to the development team. You’ve discovered a bug! (If you hold the cursor over the SpinCenter slider you’ll see that the pop-up has “Spin Rate” - that’s what is causing the problem.)

You can solve it by editing the macro in a text editor such as Notepad. Macros are text files composed of ZScript, the ZBrush scripting language.

All you need to do is change the line that begins [ISet,Brush:Orientation:SpinRate, to [ISet,1097,. The number after the comma is the value you want to set the slider to (2 in my example code below):

//ZBRUSH MACRO - Recorded in ZBrush version 4.73
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescÃ* key.”,
[IShowActions,0]
[IConfig,4.73]
[ISet,1097,2]
]

(If you’re interested, the “1097” is the numerical ID for the Spin Rate slider.)

HTH,

Marcus thanks for helping me with that bug!

I was able to edit the macros as you suggested.

A minor detail, that does not matter, is that I noticed when entering values for the slider in the macro text the actual value the slider would set to was slightly off when the macro was run. For example I would enter a value for the slider of -0.1 into the macro text , then the result from running the macro was the slider would read - .01998 , so I then edited the value in the macro text to be -.10002 , and the when run the slider would set to -.1 exactly. But some times this correction method would not work.

As mentioned this does not matter because obviously this small difference has no practical impact on the affect of the slider, I only bothered to try to correct this so that when viewing the slider to see where it was set I would see a whole number instead of one with five decimal places.

Yes, I’ve noticed that slider value thing. I’m afraid that the only way is with a bit of trial and error.