AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Enable in render
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Enable in render
Rate this thread
 
66506
 
Permlink of this thread  
avatar
  • Smck
  • Posted: 25 April 2012 03:03 AM
  • Total Posts: 3
  • Joined: 25 April 2012 03:01 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



Replies: 0
avatar

(
objs = for o in objects where (superclassof o == shapecollect 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.

Replies: 1
/img/forum/light/default_avatar.png

Many thanks :) S

Author: Smck

Replied: 25 April 2012 03:41 AM  
avatar

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



Replies: 0