Announcement

Collapse
No announcement yet.

primary_visibility for Instancer

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

  • primary_visibility for Instancer

    I'm trying to write a script that will turn off primary visibility for all objects exported to a .vrscene from Max. It doesn't look like there's a primary_visibility option for Instancer objects, is that correct? I have visible=0 working, but that prevents shadow casting which is something I need.

    Use case is
    1. export scene from max to .vrscene
    2. run script on .vrscene to change all primary_visibility to 0
    3. append that scene to another scene to get a fast matte pass (using deep image) including shadows


    Is there any workaround for this?

  • #2
    You should be able to turn off the primary visibility on the Node plugins that are referenced by the Instancer plugin - does that work?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Yes that does work - it looks like the node being instanced doesn't have a primary_visibility parameter when exported, so when I did a simple string replace it wasn't getting picked up. Adding "primary_visiblity=0;" parameter to the definition solves it.

      thanks!

      Comment

      Working...
      X