Minor issue but ChangeQueue.ApplyDynamicClippingPlaneChanges() does not seem to be called when moving interactively a clipping plane in the viewport.
I have created a YouTrack issue http://mcneel.myjetbrains.com/youtrack/issue/RH-35228 . I haven’t checked yet whether this is the case, but I can tell you that this function has been added only very recently, so it is very well possible it is still a bit buggy.
/Nathan
Hi,
We just introduced Iray clipping planes and I confirm the dynamic clipping plane change handler is still not invoked.
Just wanted to mention…
@nathanletwory, BTW, can we have access to the clip plane “cast shadow” flag? I do not see where to get it from. Idea is to control Iray clip light flag, before adding any new UI.
Thx
Pascal
I bumped this on @andy’s list.
There is no cast shadow
flag on clipping planes. They only hold the plane equation and a toggle for whether they are enabled or not.
I have created https://mcneel.myjetbrains.com/youtrack/issue/RH-38677
Once this is in you should user userdata to add that functionality.
The clipping plane property page shows shadow flags:
Another question: Where is the control for the enable/disable flag please?
You need to click on the clipping plane properties button. Then you can toggle the enabled-state per view.
Yes, I can use the state per view to control the enable/disable state, this is fine, thx.
But clipping planes have also a flag IsEnabled, which I guess has no control in the UI:
clipPlane.IsEnabled
RH-38677 is fixed in the latest WIP
Hi @nvp,
You should be able to attach custom user data to the ObjectAttributes of a clipping plane (RhinoObject.Attributes.UserData), and access those in the ChangeQueue. If you check the ChangeQueue.ClippingPlane you should find the property accessor Attributes
.
Does this help with using custom user data on clipping planes?
Hi @nvp, a friendly nudge as reminder to test the UserData access to clipping planes in the ChangeQueue.
Thank you,
/Nathan