|
NewScene(null, null); CreatePrim("Cylinder", "MeshSurface", null, null); SelectObj("Passes.Default_Pass", null, null); CreatePartition("Passes.Default_Pass", null, null, null); SelectObj("cylinder", null, null); ToggleVisibility(null, null, null); CopyPaste("cylinder", null, "Passes.Default_Pass.Partition", 1); SelectObj("Passes.Default_Pass.Partition", null, null); SetValue("Passes.Default_Pass.Partition.rendvis", 1, null); SelectObj("Passes.Default_Pass", null, null); Duplicate("Passes.Default_Pass", null, 2, 1, 1, 0, 0, 1, 0, 1, null, null, null, null, null, null, null, null, null, null, 0); SelectObj("Passes.Default_Pass", null, null); SelectObj("cylinder", null, null); SelectObj("Passes.Default_Pass1", null, null); SelectObj("Passes.Default_Pass", null, null); SelectObj("Passes.Default_Pass1", null, null); SetValue("Passes.Default_Pass1.Name", "Pass1", null); SelectObj("Passes.Pass1.Partition", null, null); SetValue("Passes.Pass1.Partition.viewvis", 2, null); SetValue("Passes.Pass1.Partition.viewvis", 1, null); SelectObj("Passes.Pass1.Partition", null, null); SelectObj("cylinder", null, null); SelectObj("Passes.Pass1.Partition", null, null); SetCurrentPass("Passes.Pass1"); SelectObj("Passes.Pass1", null, null); SelectObj("Passes.Pass1", null, null); Duplicate("Passes.Pass1", null, 2, 1, 1, 0, 0, 1, 0, 1, null, null, null, null, null, null, null, null, null, null, 0);
Okay, here is the situation. I set the View/Render Visibility of a partition containing a hidden object (by toggling H) to “Show members”. The hidden object is now visible. When I duplicate the pass with this partition, the object becomes hidden again as the scene totally ignores the “Show members” override of the partition.
To solve this, I always have to switch to another Pass and then switch back. Or I have to drag the objects into its partition again.
|