Announcement

Collapse
No announcement yet.

Creating Vrayclipper through maxscript not working properly (Vray 4.30.01)

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

  • Creating Vrayclipper through maxscript not working properly (Vray 4.30.01)

    Either this is broken or I'm doing something wrong.
    If I create a Vrayclipper and assign a mesh to it as source with replaceOnPick:true
    it will not only delete the sourceObject, but it won't even clip when rendering.

    only when I manually select the source object by pressing the pick source button in the modifypanel will it use the source object while removing it
    and work as expected when rendering.

    below is the simplified code I'm using

    Code:
    function SectionItems = (
        local clipSrc = convertToPoly (box())
        local clipObj = vrayClipper mesh_mode:true mesh_replaceOnPick:true mesh_source:clipSrc
    )
    sectionItems()
    anyone else seeing the same behaviour ?

  • #2
    Thanks for the report. This is a known issue (internal bug-tracker id: VMAX-4976), which is not trivial to resolve. The clipper created with the script is actually the geometry itself (rather than the clipper helper), so what you can do is add a few lines to the script to link the clipper to the geometry and display the geometry as a box or make it see-through, etc.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Hi Aleksandar. to bad it's not easy to fix.
      It wouldn't be an issue to hide the source geometry, but the problem is that the VrayClipper doesn't actually clip until I used the button to select the source mesh ...

      Comment


      • #4
        It seems to cut correctly when created with the provided script, but as I mentioned the cutting object is the created box, rather than the clipper helper.
        Aleksandar Hadzhiev | chaos.com
        Chaos Support Representative | contact us

        Comment


        • #5
          ah I was about to tell you it didn't for me.
          but in my script I had set the box to non-renderable (because I thought the clipper would be clipping) when i set it back to renderable it does indeed clip.
          I guess it's an acceptable workaround.

          Hope it's something that might get fixed in future releases.

          Thanks for the help and explanations.

          Comment

          Working...
          X