|
HI
I wondered was it possible to create a script when could switch ‘enable in renderer’ on for a large set of wires, and also to adjust their thickness.
As an occasional scripter I noticed that the listener doesn’t work at this level.
Cheers
Simon
|
|
|
|
( objs = for o in objects where (superclassof o == shape) collect o
objs.render_renderable = true -- Enable In Renderer
objs.render_thickness = 5.0 -- or whatever thickness you want )
Should work on all shapes (primitives) or editable spline objects in the scene.
Max 4.2 through 2014, Composite 2014.
XP-64 (SP2).
nVidia 9800GTX+ (512MB) (Driver 314.22).
i5-3570K @ 4.4GHz, 8Gb Ram, DX9.0c.
|
|
|
|
I wrote this script for the same thing, when i had forgotten to turn on renderable for
muliptle noise animated lines (thus the baseobject- but it works on raw lines)
FOO=$LINE* as array
FOR ME IN 1 TO FOO.COUNT DO
( FOO[ME].BASEOBJECT.RENDERABLE=ON
FOO[ME].BASEOBJECT.MAPCOORDS=ON
FOO[ME].BASEOBJECT.DISPLAYRENDERMESH=ON
FOO[ME].BASEOBJECT.THICKNESS=1
FOO[ME].BASEOBJECT.SIDES=4
FOO[ME].BASEOBJECT.ANGLE=45
)
Smck 25 April 2012 03:03 AM
HI
I wondered was it possible to create a script when could switch ‘enable in renderer’ on for a large set of wires, and also to adjust their thickness.
As an occasional scripter I noticed that the listener doesn’t work at this level.
Cheers
Simon
|
|
|