surface_replicator

Used for surface replicator operations.


xshade
shape
surface_replicator

List of Properties

count Count
direction Directional control
distribution Distribution
limit Limit
preview Preview
random_replication Whether to randomly replicate the object
random_rotation Random rotation
random_scale Random scale
random_seed Random seed
random_translation Random translation
random_translation_mode Random translation mode
random_uniscale Random uniscale
range Range
replication The replication value
subdivision_level Subdivision
uv_layer UV layer




Gets the surface replicator object using shape.surface_replicator if the surface replicator target object is a shape.

Property Details

count

Count.

  • Get
  • Set

Type :
  int

#Output the surface replicator count of the selected object
print xshade.scene().active_shape().surface_replicator.count

direction

Directional control.

  • Get
  • Set

Type :
  int

0 : None
1 : Normal direction
2 : U direction
3 : V direction

#Output the surface replicator directional control type of the selected object
print xshade.scene().active_shape().surface_replicator.direction

distribution

The type of distribution.

  • Get
  • Set

Type :
  int

0 : Vertex
1 : Edge
2 : Face center
3 : Surface
4 : Surface (uniform)

#Output the surface replicator distribution type of the selected object
print xshade.scene().active_shape().surface_replicator.distribution

limit

The limits. The minimum and maximum range of the replicator.

  • Get
  • Set

Type :
  vec2

#Output the surface replicator limits of the selected object
print xshade.scene().active_shape().surface_replicator.limit

preview

The type of preview.

  • Get
  • Set

Type :
  int

0 : None
1 : Draft Display
2 : Display

#Output the surface replicator preview type of the selected object
print xshade.scene().active_shape().surface_replicator.preview

random_replication

Whether to randomly replicate the object.

  • Get
  • Set

Type :
  bool

#Output the surface replicator Random Replication on/off value of the selected object
print xshade.scene().active_shape().surface_replicator.random_replication

random_rotation

The random rotation value.

  • Get
  • Set

Type :
  vec3

Specifies the rotation value along each XYZ axis in radians (180 degrees with π=3.141592)

#Output the surface replicator random rotation value of the selected object
print xshade.scene().active_shape().surface_replicator.random_rotation

random_scale

Random scale.

  • Get
  • Set

Type :
  vec3

#Output the surface replicator random scale value of the selected object
print xshade.scene().active_shape().surface_replicator.random_scale

random_seed

The random seed value.

  • Get
  • Set

Type :
  int

#Output the surface replicator random seed value of the selected object
print xshade.scene().active_shape().surface_replicator.random_seed

random_translation

Random translation.

  • Get
  • Set

Type :
  vec3

#Output the surface replicator random translation value of the selected object
print xshade.scene().active_shape().surface_replicator.random_translation

random_translation_mode

Random translation mode.

  • Get
  • Set

Type :
  int

0 : offset
1 : displacement

#Output the surface replicator random translation value of the selected object
print xshade.scene().active_shape().surface_replicator.random_translation_mode

random_uniscale

Random uniscale.

  • Get
  • Set

Type :
  bool

#Output the surface replicator random uniscale on/off value of the selected object
print xshade.scene().active_shape().surface_replicator.random_uniscale

range

The replicator range.

  • Get
  • Set

Type :
  bool

#Output the surface replicator range on/off value of the selected object
print xshade.scene().active_shape().surface_replicator.range

replication

The replication value.

  • Get
  • Set

Type :
  float

#Output the surface replicator replication value of the selected object
print xshade.scene().active_shape().surface_replicator.replication

subdivision_level

The subdivision type.

  • Get
  • Set

Type :
  int

0 : No subdivision
1 : Coarse
2 : Regular
3 : Fine
4 : Very fine

#Output the surface replicator subdivision type of the selected object
print xshade.scene().active_shape().surface_replicator.subdivision_level

uv_layer

The UV layer number when directional control is specified as U or V directions

  • Get
  • Set

Type :
  int

0 to 7 support UV1 to UV8.

#Output the surface UV layer number of the selected object
print xshade.scene().active_shape().surface_replicator.uv_layer