Notifications
Clear all
[Closed] Attaching Two Meshes
Jul 03, 2007 2:35 am
Hello all,
I’m running into a strange little problem when creating a custom helper script. I wanted to create a helper that is represented by two spheres (think attenuation settings as found on an omni light). What I can’t seem to get working is attaching two spheres together in getDisplayMesh. Perhaps I’m missing something specific to extended helpers, but I’m at a loss.
on getDisplayMesh do
(
meshObj = createInstance sphere radius:10 segs:16 mapCoords:false
meshObj2 = createInstance sphere radius:2 segs:16 mapCoords:false
mesh = meshObj.mesh + meshObj2.mesh
)
Any recommendations on how I can get two scalable spheres in my helper object without building them by hand?
Thanks
2 Replies
Jul 03, 2007 2:35 am
Hi,
The ‘+’ using meshes is not attach, but boolean operation, and since the surface don’t cross…
use meshop.attach instead
also you might need to convert a sphere to a mesh before.