Star : Shape

Star - superclass: shape; super-superclass:node - classID: #(6549, 0) 

Value > MAXWrapper > Node > GeometryClass > Shape > Star

 

   

Shapes and Splines - Quick Navigation

   

Constructor

star...   

   

Properties

Parameters Rollout

<Star>.radius1 Float default: 25.0 -- alias: Radius_1 

The radius of the inner vertices of the star.

   

<Star>.radius2 Float default: 12.0 -- alias: Radius_2 

The radius of the outer vertices of the star.

   

<Star>.points Integer default: 6 -- alias: numPoints 

The number of points on the star. The valid range is from 3 to 100.

NOTE:In order to access the points property for Star, you need to access the property via the baseobject property of the node. This is because points is also a property name for all nodes, and conflicts with the Star's points property.

FOR EXAMPLE:

MyStar.baseobject.points=10-- set number of Star points to 10 

   

<Star>.distort Float default: 0.0 -- alias: Distortion 

Rotates the outer vertices about the center of the star. This produces a saw-tooth affect.

   

<Star>.fillet1 Float default: 0.0 

Rounds the inner vertices (the valleys) of the star.

   

<Star>.fillet2 Float default: 0.0 

Rounds the outer vertices (the points) of the star.

   

Interpolation Rollout

<Star>.steps Integer default: 6 

The number of divisions between each vertex.

   

<Star>.optimize Boolean default: true 

When on, removes unneeded steps from straight segments in the spline.

   

<Star>.adaptive Boolean default: false 

When on, adaptive sets the number of steps for each spline to produce a smooth curve. Straight segments always receive 0 steps.

   

Rendering Rollout

<Star>.render_renderable BooleanClass default: false -- boolean; renderable 

Toggles the "Enable in Renderer" checkbox on and off.Available in 3ds Max 8 and higher.

   

<Star>.render_displayRenderMesh BooleanClass default: false -- boolean; displayRenderMesh 

Toggles the "Enable In Viewport" checkbox on and off. When set to true, the mesh will be displayed in the viewports.Available in 3ds Max 8 and higher.

   

<Star>.render_useViewportSettings BooleanClass default: false -- boolean; useViewportSettings 

Toggles the "Use Viewport Settings" checkbox on and off. When set to true, the mesh displayed in the viewport will use the Viewport settings. When false, the Renderer settings will be used for the viewport mesh, too. Available in 3ds Max 8 and higher.

   

<Star>.render_mapcoords BooleanClass default: false -- boolean; mapcoords 

Toggles mapping coordinates generation on and off. The U coordinate wraps once around the thickness of the spline; the V coordinate is mapped once along the length of the spline.Available in 3ds Max 8 and higher.

   

<Star>.realWorldMapSize BooleanClass default: false -- boolean 

Toggles the real-world map size option on and off.Available in 3ds Max 8 and higher.

   

<Star>.render_displayRenderSettings BooleanClass default: true -- boolean; displayRenderSettings 

Toggles the state of the Viewport/Renderer radio buttons. When set to true, the Renderer settings will be displayed in the rollout. When false, the Viewport settings will be shown instead.Available in 3ds Max 8 and higher.

   

<Star>.render_rectangular BooleanClass default: false -- boolean 

When set to true, enables the Rectangular cross-section mode to be used in the renderer. When false (default), enables the Radial cross-section mode. Corresponds to the Radial/Rectangular radio buttons in the UI in Renderer mode.Available in 3ds Max 8 and higher.

   

<Star>.render_viewport_rectangular BooleanClass default: false -- boolean 

When set to true, enables the Rectangular cross-section mode to be used in the viewports. When false (default), enables the Radial cross-section mode. Corresponds to the Radial/Rectangular radio buttons in the UI in Viewport mode.Available in 3ds Max 8 and higher.

   

Renderer - Radial Cross-Section

<Star>.render_thickness Float default: 1.0 -- animatable; thickness 

Get/Set the diameter of the Radial renderable spline mesh.Available in 3ds Max 8 and higher.

   

<Star>.render_sides Integer default: 12 -- animatable; sides 

Get/Set the number of sides for the spline mesh in the renderer. A value of 4 will give you a square cross section, for example.Available in 3ds Max 8 and higher.

   

<Star>.render_angle Float default: 0.0 -- animatable; angle 

Get/Set therotational position of the Radial cross-section in the renderer.Available in 3ds Max 8 and higher.

   

Renderer - Rectangular Cross-Section

<Star>.render_length Float default: 6.0 -- animatable 

Get/Set the length of the Rectangular renderable spline mesh.Available in 3ds Max 8 and higher.

   

<Star>.render_width Float default: 2.0 -- animatable 

Get/Set the width of the Rectangular renderable spline mesh.Available in 3ds Max 8 and higher.

   

<Star>.render_angle2 Float default: 0.0 -- animatable 

Get/Set rotational position of the Radial cross-section in the renderer.Available in 3ds Max 8 and higher.

   

<Star>.render_aspect_locked BooleanClass default: false -- boolean 

Controls the state of the Aspect Lock checkbutton. When set to true, changing the Width will affect the Height and vice-versa, preserving the aspect at the time the lock was engaged.Available in 3ds Max 8 and higher.

   

Viewport - Radial Cross-Section

<Star>.render_viewport_thickness Float default: 1.0 -- float; viewport_thickness 

Get/Set the diameter of the Radial renderable spline mesh in the viewport.Available in 3ds Max 8 and higher.

   

<Star>.render_viewport_sides Integer default: 12 -- integer; viewport_sides 

Gets/Sets the number of sides for the Radial spline mesh in the viewports. A value of 4 will give you a square cross section, for example.Available in 3ds Max 8 and higher.

   

<Star>.render_viewport_angle Float default: 0.0 -- float; viewport_angle 

Gets/Sets the rotational position of the cross-section in the viewports.Available in 3ds Max 8 and higher.

   

Viewport - Rectangular Cross-Section

<Star>.render_viewport_length Float default: 6.0 -- float 

Get/Set the length of the Rectangular spline mesh in the viewports.Available in 3ds Max 8 and higher.

   

<Star>.render_viewport_width Float default: 2.0 -- float 

Get/Set the width of the Rectangular spline mesh in the viewports.Available in 3ds Max 8 and higher.

   

<Star>.render_viewport_angle2 Float default: 0.0 -- float 

Get/Set rotational position of the Rectangular cross-section in the viewports.Available in 3ds Max 8 and higher.

   

<Star>.render_viewport_aspect_locked BooleanClass default: false -- boolean 

Controls the state of the Aspect Lock checkbutton. When set to true, changing the Width will affect the Height and vice-versa, preserving the aspect at the time the lock was engaged.Available in 3ds Max 8 and higher.

   

Auto Smooth

<Star>.render_auto_smooth BooleanClass default: true -- boolean 

Controls the state of the Auto Smooth checkbox. When set to true, auto smoothing will be enabled.Available in 3ds Max 8 and higher.

   

<Star>.render_threshold Float default: 40.0 -- animatable; 

Get/set the Auto Smooth Threshold value.Available in 3ds Max 8 and higher.

   

See Also