ZBrushCentral

How to control Spotlight through scripting?

I want to do something pretty simple with spotlight. I want to write a script that does this:

  1. Grabdoc
  2. Select the generated grabdoc texture
  3. load that texture into spotlight
  4. turn on spotlight
  5. position this new texture to be in perfect and exact alignment with the canvas (so center position 0,0 with 100% zoom)
  6. let me then paint that texture onto the mesh

This is basically to allow me to ‘bake’ mat caps in a more controllable fluent way. Where, all in zbrush, I can just project a grabdoc back onto the mesh.

Now I am a fluent programmer, just don’t know very much about specific zscript stuff. I can’t figure out in anyway how I might be able to control spotlight. I was watching the command log output, and spotlight operations don’t output anything in the log. Is there someway I could set a spotlight image to center 0,0 and 100% zoom through zscipting? OR really any method?

How about this? http://www.zbrushcentral.com/showthread.php?170886-MatCap-Baker!-unofficial-Information-Installation&highlight=Matcap+baker

I’m sorry to say that apart from button presses for the buttons in the Transform palette it is not possible to control Spotlight through zscript. :frowning: