Author Topic: Transformation to target box  (Read 223 times)

anurag

  • Newbie
  • *
  • Posts: 1
Transformation to target box
« on: October 28, 2018, 02:45:35 PM »
Affine modifier > transformation to target box.
It need relative_mode == False.
Can you help me on how to change relative_mode from True to False?
Or suggest me any alternate way to permanently fix a box ???

Constanze Kalcher

  • Administrator
  • Full Member
  • *****
  • Posts: 113
Re: Transformation to target box
« Reply #1 on: October 29, 2018, 10:55:40 AM »
Dear anurag,

this is how you would set the option "relative_mode" to False in the Affine Transformation modifier:

Code: [Select]
AffineTransformationModifier(
         relative_mode = False,
         #...other options )

http://ovito.org/manual/python/modules/ovito_modifiers.html#ovito.modifiers.AffineTransformationModifier

Note that the relational operator "==" is not the same as "=", it compares the values on either sides of your expression and tells you the relation among them.
If the values of two operands are equal, then the condition becomes true.

-Constanze