Dynamic Clipping Plane Changes handler does not seem to be called


#1

Minor issue but ChangeQueue.ApplyDynamicClippingPlaneChanges() does not seem to be called when moving interactively a clipping plane in the viewport.


(Nathan 'jesterKing' Letwory) #2

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


#3

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


(Nathan 'jesterKing' Letwory) #4

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.


(Nathan 'jesterKing' Letwory) #5

I have created https://mcneel.myjetbrains.com/youtrack/issue/RH-38677

Once this is in you should user userdata to add that functionality.


#6

The clipping plane property page shows shadow flags:

Another question: Where is the control for the enable/disable flag please?


(Nathan 'jesterKing' Letwory) #7

You need to click on the clipping plane properties button. Then you can toggle the enabled-state per view.


#8

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


(Nathan 'jesterKing' Letwory) #9

@andy?


(Brian Gillespie) #10

RH-38677 is fixed in the latest WIP


(Nathan 'jesterKing' Letwory) #11

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?


(Nathan 'jesterKing' Letwory) #12

Hi @nvp, a friendly nudge as reminder to test the UserData access to clipping planes in the ChangeQueue.

Thank you,

/Nathan