Announcement

Collapse
No announcement yet.

VrayClipper Mesh Node & Maxscript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VrayClipper Mesh Node & Maxscript

    I am trying to create VrayClipper via Maxscript
    newClip = VrayClipper()

    and assign it as mesh mode
    newClip.enable_mesh_mode = true
    newClip.mesh_replaceOnPick = false

    and then put my object as the mesh
    newClip.mesh = myObj


    Last line errors as -- Runtime error: Mesh operation on non-mesh: VRayClipper
    presumably because .mesh in maxscript is being inherited as a GeometryClass property, and when I try to assign it via script, it's reading the base instead of the Vray specific one? Not sure if this is a Vray bug caused from like naming, or a failure of my MaxScript knowledge. Help?
    | LinkedIn | Twitter | JCanimator.com |

  • #2
    Hello,

    Yes this actually this is my mistake - I've named the clipper mesh property the same as the node property and it becomes inaccessible. Will fix it - it should be ".mesh_source" (like in the mesh VRayLight).

    Thanks for the pointer.
    Best regards,
    Yavor
    Yavor Rubenov
    V-Ray for 3ds Max developer

    Comment

    Working...
    X