PDA

View Full Version : Flat shaded mode


Soeren Nielsen
02-06-2003, 03:56 AM
Beeing new to XSI, I was just wondering if it is possible to do wireframe shade... meaning .. not smooth the material in the opengl shaded view.?
seems like a simple thing to me, but I just cannot find that option anywhere.

Lunatique
02-06-2003, 06:50 AM
Yep, same here. Where's the flatshaded mode?

ggg
02-06-2003, 09:50 AM
you could make a script and drag it onto a toolbar as button that set all meshes to auto discontinuity angle of 0 then another button to return to deafult for smooth

Lunatique
02-06-2003, 09:56 AM
Bootiful. Thanks. :D

Soeren Nielsen
02-06-2003, 10:38 AM
ggg yeah, Stimpy told me about that method on IRC earlier.. Going to look into how to make the script later :) thanks for posting

PANZER
02-08-2003, 03:58 PM
....but but... how to actually do the script?... i mean... turn off ALL polymeshes' discontinuity at once?.... :shrug:

Soeren Nielsen
02-08-2003, 07:35 PM
PANZER I cant tell you that at the present time, since I havent had time to do any work with it yet.
But as soon as I get the time, I will post it here

ggg
02-09-2003, 11:17 PM
Originally posted by PANZER
....but but... how to actually do the script?... i mean... turn off ALL polymeshes' discontinuity at once?.... :shrug:

SetValue "*.geomapprox.gapproxmoan", 0
then drag onto a custom toolbar
call it discontinuity 0
SetValue "*.geomapprox.gapproxmoan", 60
then drag onto a custom toolbar


or make a toggle script that toggles backnforth between 0 and 60 for just one button

or instead of for all, just for some, and make a new custom parameter slider with values from 0-100 and drag its animation icon onto the anaimtion icon of the animation icon for "angle" for each object you want to change it for

ThE_JacO
02-10-2003, 02:05 PM
sorry if i didn't reply sooner, didn't notice this thread.

ggg's suggestion is pretty good.
his script will change the geoapprox of everything in the scene.
If that's what you want go for it.

below a small script i threw together for this that will first make the geoapprox a local property (if it isn't yet) and then toggle between 0 and 60 inside the current selection.
so you get more control on what you want to toggle or not.

Just copy and paste it into a text file with .vbs extension.


Option explicit

Dim MySel
Dim MyElement
Dim StringedElement
Dim CurGeomapprox
Dim ElementGapprox

set MySel = CreateObject("XSI.Collection")
set MySel = GetValue("SelectionList")

for each MyElement in MySel
StringedElement = MyElement
ElementGapprox = GetValue(StringedElement & ".geomapprox.gapproxmo.gapproxmoan" )

if ElementGapprox = 0 then
CurGeomapprox = 60
else
CurGeomapprox = 0
end if

MakeLocal MyElement & ".geomapprox", siDefaultPropagation
SetValue StringedElement & ".geomapprox.gapproxmo.gapproxmoan", CurGeomApprox
next


hope this helps.

Lunatique
02-10-2003, 06:03 PM
Hell yeah!

Can't let all the Maya kids have all the fun! Mel scripts practically flow out of the Maya forum.

It's refreshing to see scripts being posted in the SI forum. :)

ThE_JacO
02-10-2003, 06:31 PM
when people ask for something reasonable, and detail their problem enough to understand what the solution would be, it's a matter of minutes coming out with a script taking care of that.

quoting someone long gone "if you aren't getting an answer you are asking the wrong question" ;)

CGTalk Moderation
01-14-2006, 08:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.