Vray and Maxscript

I am trying to script the process of adding VraySphereFades and automatically linking up the gizmos to the atmospheric. The problem is that the vray atmospheric dosent work like normal max ones do.
This does not work:
appendGizmo (getAtmospheric 1) $SphereGizmo01

Im also trying (getAtmospheric 1).gizmos = #($SphereGizmo01) but get
-- Runtime error: Array parameter size fixed, cannot dynamically alter: gizmos

Is there anyway to do this??

It is really slowing our pipeline down the fact that all the vray stuff is not accessed in a normal way with maxscript.
Another problem is that there is no subanims for things like the blend map. I have coded around it but it is quite annoying.

I hope these maxscript problems will be fixed soon! :slight_smile:

Cheers

If you are referring to the sub-anims of VRayCompTex, this is corrected already for newer builds. I will check out the VRaySphereFade thing also, but still you should be able to access the gizmos through the parameter block of the atmospheric.

Best regards,
Vlado

Ahhh, good to hear the sub-anims of VRayCompTex has been sorted!
With the VRaySphereFade i can view the gizmos but not set it.
Thanks for checking it out Vlado!

I’ve implemented the atmospherics API for setting/deleting gimzos to VRaySphereFade now too.

Best regards,
Vlado

Awesome! Thank you very much Vlado!