Feature Request - Set Draw Order On Custom Preview & Custom Curve Preview

Hello,

I would like to make a feature request to have the Custom Preview & Custom Curve Preview accept a draw order input.

Draw order with baking is great but for simple lines and diagrams I desire to pass that off to the GPU and display pipeline rather than wasting valuable resources on computation and time spent baking said objects just to set the draw order.

I did have some success creating a custom Custom Preview component in Python that lets you draw in the foreground but it would be great to have this functionality natively.

That post here:

Example with Custom Curve Preview(CCP)

(CCP not selected in GH canvas)

(CCP selected in GH canvas)
image

Curious what your thoughts are on this kind of feature @AndyPayne @kike

Thank you for your consideration and response!

This is a good wish list item and one that I’ve also wanted for some time… However, it’s not a trivial fix as it has some deep connections to the drawing pipeline. It will need some careful consideration. I have added it as a YT item.

3 Likes

Thanks @AndyPayne ! Much appreciated, and I tried the link but I think it’s private as it’s giving me a 404 error

That should be open now.
-wim

1 Like

Confirmed, thank you @wim

Is this still a valid youtrack? It is giving me a 404 error again.

Thanks @wim !

Hi Michael -

That YouTrack is still valid, yes. It looks like @AndyPayne made it private again two hours or so after I made it public. I have no idea why, though…
-wim

I hope this means he intends to add that functionality soon :wink: but jk I know he said it’s a pretty big undertaking but it really helps out with performance on large models being able to push all the annotation objects to be visual only. It’s just the only thing missing is controlling the Draw Order of said objects.

Thanks for the consideration!

1 Like

Sorry. I don’t know why that happened. Must have been a mistake. I think it should be public now.

1 Like

Thanks @AndyPayne , real quick while I have you.

For this wish, rather than having a Draw Order input, ideally the component would “just” read the Draw Order value of the Model Annotation object.

So similar to how you can set annotation overrides now and those show up in the Custom Preview, the Draw Order value set on the Model Object would do the same.

Thanks!

1 Like

Can you set the draw order for annotation objects already? I was looking for this the other day but due to enormous hurry I did not succeed.

Hi @TuomasLehtonen, In Rhino 8, yes you can with the “Drafting Attributes” component plugged into the Drafting Attributes input of a Model Object component.

1 Like