Xoliul
12-16-2007, 11:44 AM
Hi guys.
Just writing my first Maxscript, an automatic blueprint creator intended for setting up (vehicle) blueprints in about 5 seconds instead of the usual 5-10 minutes. It's almost done, but there's a last feature I want to add to it. When you use blueprints, you alwyas want them to show as edged faces in all your views. Now, since my script is meant to be used on a blank, vanilla file, this means none of the viewports are set to edged faces by default.
I tried to write a little for-loop to set these, but it doesn't seem to work. Judging by the reference, i'm not doing anything wrong...
here's what i have:
for i = 1 to viewport.numViews do
(
viewport.activeViewport = i
viewport.SetShowEdgeFaces (true)
)
Extremely simple, yet I get no result. Changing the active viewport works, but the SetShowEdgedFaces doesn't do anything. Using the actionMan.executeAction 0 "369" command also doesn't work for all viewports, it only does it on one of them then.
Any help?
Just writing my first Maxscript, an automatic blueprint creator intended for setting up (vehicle) blueprints in about 5 seconds instead of the usual 5-10 minutes. It's almost done, but there's a last feature I want to add to it. When you use blueprints, you alwyas want them to show as edged faces in all your views. Now, since my script is meant to be used on a blank, vanilla file, this means none of the viewports are set to edged faces by default.
I tried to write a little for-loop to set these, but it doesn't seem to work. Judging by the reference, i'm not doing anything wrong...
here's what i have:
for i = 1 to viewport.numViews do
(
viewport.activeViewport = i
viewport.SetShowEdgeFaces (true)
)
Extremely simple, yet I get no result. Changing the active viewport works, but the SetShowEdgedFaces doesn't do anything. Using the actionMan.executeAction 0 "369" command also doesn't work for all viewports, it only does it on one of them then.
Any help?
