Hobbs
05-08-2009, 04:29 PM
Hi...i have a simple script that takes in a bunch of edges, and turns them..
my problem is, occasionally it will turn an edge that is not selected...which is very odd...given the fact thats basically 2 calls, i'm not sure exactly what i'm doing wrong.
I have to use mesh, poly is not an option..
if anyone could take a look at this, it would be appreciated. Thanks
oh, also, if anyone knows how to make the selected edges "visible" that would help me out as well.
Thanks
(
try(destroyDialog Turn_n_Rotate)catch()
global Turn_n_Rotate
rollout Turn_n_Rotate "-------------" width:162 height:35
(
button turnBtn "Turn n' rotate" pos:[21,10] width:117 height:18
-- // Event Handler
----------------------------
on turnBtn pressed do
(
local Edges =( $.selectedEdges as bitarray)
for edge in edges do
meshop.turnEdge $ edge
update $
)
) -- end rollout
createDialog Turn_n_Rotate style:#(#style_toolwindow, #style_sysmenu, #style_resizing) --pos:[40,931]
)
my problem is, occasionally it will turn an edge that is not selected...which is very odd...given the fact thats basically 2 calls, i'm not sure exactly what i'm doing wrong.
I have to use mesh, poly is not an option..
if anyone could take a look at this, it would be appreciated. Thanks
oh, also, if anyone knows how to make the selected edges "visible" that would help me out as well.
Thanks
(
try(destroyDialog Turn_n_Rotate)catch()
global Turn_n_Rotate
rollout Turn_n_Rotate "-------------" width:162 height:35
(
button turnBtn "Turn n' rotate" pos:[21,10] width:117 height:18
-- // Event Handler
----------------------------
on turnBtn pressed do
(
local Edges =( $.selectedEdges as bitarray)
for edge in edges do
meshop.turnEdge $ edge
update $
)
) -- end rollout
createDialog Turn_n_Rotate style:#(#style_toolwindow, #style_sysmenu, #style_resizing) --pos:[40,931]
)
