Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ardiscript:addshape_ar [2019/09/17 04:33]
optrix
ardiscript:addshape_ar [2019/09/17 23:20] (current)
optrix [Parameters]
Line 8: Line 8:
  
 ====Parameters==== ====Parameters====
 +
 +===Name===
 +
 +//Type: Text
 +Default: None//
 +
 +
 +Specifies the name of the object to be added to the marker. This name can be referred to later by other scripts in order to modify and/or interact with it in some way, such as with the [[remove_ar]] function. ​
 +
 +If an object of the same type has the same name, this script will modify the existing object instead of creating a new one.
  
 ===Shape=== ===Shape===
Line 53: Line 63:
  
 //Must only be used if the shape type **Polygon** was specified.//​ //Must only be used if the shape type **Polygon** was specified.//​
- 
-===Name=== 
- 
-//Type: Text 
-Default: None// 
- 
-Specifies the name from which to view label the asset. This name can be referred to by later other scripts in order to modify and/or interact with it. 
  
 ===Position=== ===Position===
Line 67: Line 70:
 The co-ordinates in which to place the asset within the 3D world. Co-ordinates are defined as "​x,​y,​z",​ separated by a ','​ and no spaces. The co-ordinates in which to place the asset within the 3D world. Co-ordinates are defined as "​x,​y,​z",​ separated by a ','​ and no spaces.
  
-===AttachTo=== +===Rotation=== 
-//​Type: ​Text +//​Type: ​[[XYZ Coordinates]] 
-Default: ​None//+Default: ​**0,0,0**//
  
-Specifies ​the //name// or ARDI ID of another ​asset for which this asset is to be parented toIf using an asset IDbegin the target with the '#' ​character//This parameter is optional//+The rotation degrees in which to rotate ​the asset within the 3D worldValues are defined as "x,y,z", separated by a ',' ​and no spaces.
  
-If defined, this asset will be parented to the specified asset and it's //​position//​ will be converted to local co-ordinates around the parent asset. +===Scale=== 
- +//Type: [[XYZ Coordinates]] 
-===CopyRotation=== +Default: **1,1,1**//
- +
-//Type: [[Bool]] +
-Default: **True**//+
  
-Only used when an //​AttachTo//​ parameter is defined. If true, the asset will attempt to copy the rotation of it's parent.+The scale value in which to resize ​the asset within ​the 3D world. Values are defined as "​x,​y,​z",​ separated by a ',' ​and no spaces.
  
 ===Color=== ===Color===
Line 109: Line 109:
  
 ====See Also==== ====See Also====
-[[addmesh_ar|AddMesh]] [[indicator_ar|Indicator]] [[remove]]+[[addmesh_ar|AddMesh]] [[indicator_ar|Indicator]] [[remove]] [[imagelabel]]
  
 ====Examples==== ====Examples====