checkbox vray problem

hi,

i'm putting together a small script to give me quick access to certain functions.
however i'm struggling with the vray region render. script access is slightly different.

it's vrayVFBGetRegionEnabled() instead of just vrayVFBGetRegionEnabled to get a true/false response.
same for vrayVFBSetRegionEnabled() if i set vrayVFBSetRegionEnabled = true it'll not work since it's expecting vrayVFBSetRegionEnabled(true)

it messes with the script since max is not expecting brackets.
how can i get around this problem to create buttons that allow me to turn region render on and off.

any help is very appreciated

nick

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Arthur_Murray's picture

Hi, use this

Hi,
use this command:
vrayVFBSetRegionEnabled on -- turn on region render
vrayVFBSetRegionEnabled off -- turn off region render

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.