Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ardiscript:setproperty [2018/04/16 05:00]
optrix created
ardiscript:setproperty [2018/04/24 05:17] (current)
optrix [Parameters]
Line 1: Line 1:
 =====SetProperty===== =====SetProperty=====
 ====Summary==== ====Summary====
 +
 +Set a property to a specific value. The specified property can be any property on an asset in the 3D world.
  
 ====Parameters==== ====Parameters====
 +
 +===Target===
 +//Type: [[Path]]
 +Default: None//
 +
 +Specifies the name or ARDI ID of the property you would like to modify. If using an asset ID, begin the target with the '#'​ character.
 +
 +===Amount===
 +//Type: [[Float]]
 +Default: None//
 +
 +Sets the //Target// property to the specified amount. ​
 +
 +
  
 ====Examples==== ====Examples====
 +
 +<​code>​
 +<​setproperty target="/​Roof Support #1/Relay Bar.AFC Extension"​ amount="​150"​ />
 +</​code>​
 +
 +> This will find the property called **AFC Extension** on the asset called **Relay Bar** which is a child asset to the asset **Roof Support #1**. It will then set that property to the //amount// equal to 150.