class RAParticleAssemblyPart
Rocky PrePost Scripting wrapper for a single entry in a single Particle Assembly’s part list. Access this wrapper from a givenRAParticleAssembly with:
GetAngle(unit: Optional[str] = None)
Get the value of “Angle”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “dega”.
GetAvailableParticles()
Get all available Particles.- Return type:
List[
RAParticle] A list ofRAParticle.
GetParticle()
Get the “Particle”.- Return type:
RAParticle
GetPositionX(unit: Optional[str] = None)
Get the value of “Position X”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
GetPositionY(unit: Optional[str] = None)
Get the value of “Position Y”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
GetPositionZ(unit: Optional[str] = None)
Get the value of “Position Z”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
GetRotationX(unit: Optional[str] = None)
Get the value of “Rotation X”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
GetRotationY(unit: Optional[str] = None)
Get the value of “Rotation Y”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
GetRotationZ(unit: Optional[str] = None)
Get the value of “Rotation Z”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
GetScale(unit: Optional[str] = None)
Get the value of “Scale”.- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “-“.
SetAngle(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Angle”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “dega”.
SetParticle(value)
Set the “Particle”. :param unicode,RAParticle value:
: Either the API object wrapping the desired entity or its name.
SetPositionX(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Position X”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
SetPositionY(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Position Y”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
SetPositionZ(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Position Z”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
SetRotationX(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Rotation X”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
SetRotationY(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Rotation Y”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
SetRotationZ(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Rotation Z”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
SetScale(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Scale”.- Parameters:
- value – The value to set. This value can be an expression with input variables or float type.
- unit – The unit for value. If no unit is provided, value is assumed to be in “-“.