Notifications
Clear all

[Closed] …highlighting an Object in MXS ?

is it possible to highlight an Object using MaxScript ?

for example,
like when you link two objects, you have a very quick visual display in wireframe mode of the parent/child showing the connection…

if yes,
how to do it and how to use the way you want to ??

thanks

2 Replies

What you’re looking for is the flashNodes function;


-- highlight (without selecting), objects "GeoSphere02" and "GeoSphere03"
flashnodes #($GeoSphere02,$GeoSphere03)
-- remove the highlighting by redrawing the viewport
forceCompleteredraw()

The alternative dirty (because it flags the objects as having been selected which might invoke callbacks, etc.) method, but wouldn’t require a complete redraw, would be to just temporary select them, then deselect them


select #($GeoSphere02,$GeoSphere03)
sleep 0.5
deselect #($GeoSphere02,$GeoSphere03)

cool, thanks !
=)