Solved DRAWPASS::HANDLES Not Effect DRAWOBJECT()

Hi,
I want use DRAWOBJECT(...) draw my object in front everything like handles, so i set DRAWPASS::HANDLES, but nothing show in my view(DRAWPASS::OBJECT is ok but not front other), this is my code,what shoud i do?

bd->DrawObject(bh,myobject,DRAWOBJECT::USE_CUSTOM_COLOR,DRAWPASS::HANDLES,nullptr,Vector(0,0,1));

Hope your help!

hello,

just a quick question,from where are you drawing, an object, a Scenehook ..

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

maybe I misunderstood the meaning of drawpass? how could i draw my object in front everything like handles?

hello,

just a quick question,from where are you drawing, an object, a Scenehook ..

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

@m_magalhaes i am not use scenehook before,i will see how to use it,thank you for your help

hello,

You can have a look at 2D viewport drawing using a SceneHook , Drawing a spline in the viewport also can help.

Don't hesitate to ask, we'll be happy to help.

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

@m_magalhaes thank you : ) : ) : )