ZBrushCentral

Sending file from ZScript or another language?

Hi! There is some way to send a file by email via script or another language?

thanks in advance!

I recommend python for that, so you just export the content for the mail using ZScript, and then run a python script, using [ShellExecute] function. here is a python tutorial :

Hope it helps,
Nicolas

1 Like

thanks a lot Nicolas, Im going to check this technique!

1 Like

Hi Nicolas,

Would be possible to check if I got what you meant?

So, I should:

By ZScript:

  1. export the .obj file

and then:

By Python:
2) use [ShellExecute] to run a whole python code which will attach the file in the email and then send it.

thats correct?

thanks Nicolas!

zscript :

  • export the model
  • collect the full path of the exported model ( into a file so python can read it)
  • use [ShellExecute] to run the python script from within ZBrush

python :

  • just make a script that get the full path of the model to attach in the mail.

Hope it helps,
Nicolas

1 Like

Thanks a lot Nicolas! :slight_smile:

1 Like