From: Bruce S. <Bru...@nc...> - 2009-01-13 00:48:24
|
Don't I wish it were that simple. No, objects are created with opacity=1.0 by default. That's why a scene contains opaque objects if you don't explicitly set the opacity to something different. b = box() print b.opacity # shows 1.0 Bruce Sherwood Lenore Horner wrote: > Very naively,... > > This looks to me like the need is to create things with some opacity (it > doesn't maybe matter what since both 0.5 and 0.99 work). Does this mean > there is no default value for opacity and somewhere a number, any > number, is needed to figure out what to put on the screen and all for > the want of a number the program crashes? > > Lenore > > On Jan 12, 2009, at 13:44 PM, Bruce Sherwood wrote: > >> Thanks, Scott! Your observation should be a good big hint at where the >> problem lies, though I don't yet see where this leads. >> >> Bruce Sherwood >> >> Scott David Daniels wrote: >>> Bruce Sherwood wrote: >>> >>>> .... Here's the nub of the problem: >>>> The following crashes hard, at least on Vista (and on XP): >>>> f = frame() >>>> b = box(frame=f) >>>> b.opacity=0.3 >>>> The following doesn't crash: >>>> f = frame() >>>> b = box(frame=f, opacity=0.5) >>>> b.opacity=0.3 >>>> >>> Checking a bit further, the following crashes: >>> > f = frame() >>> > p = sphere(frame=f, opacity=1) >>> > p.opacity = 0.99 >>> > The following doesn't crash: >>> > f = frame() >>> > p = sphere(frame=f, opacity=0.99) >>> > p.opacity = 1 >>> > p.opacity = .3 >>> > p.opacity = 0 >>> >>> So, a work-around is to create things you expect to tweak opacity >>> on as .99 opacity. This doesn't get to the root cause, but does let >>> you move on. >>> >>> --Scott David Daniels >>> Sco...@Ac... >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> _______________________________________________ >>> Visualpython-users mailing list >>> Vis...@li... >>> https://lists.sourceforge.net/lists/listinfo/visualpython-users >>> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |