Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Expand
titleGet the Physical Properties of Items

test


Expand
titleGet the Assembly Item Properties

test


Expand
titleChange Various Assembly Item Properties

test


Expand
titleInsert a 2D Line

testThe following demonstrates creating 2D lines through scriptnig.

Usage: 

InsertLine(x-coord, y-coord, color,

line thickness)

thickness)

Parameters

x-coord: Starting x-coordinate.

y-coord: Starting y-coordinate.

color: color as a string in the form "#AARRGGBB"

thickness: lne thickness number > 0 


Code Block
languagepy
title2D Line Example code
linenumberstrue
import spinfirescript as sfs
import random

for i in range(1,10):
	newColor = "#FF"+''.join([random.choice('0123456789ABCDEF') for j in range(6)])
	sfs.InsertLine([0, (i+(i*4))*-1], [50, (i+(i*4))*-1], "#FF000000", i)
	sfs.InsertLine([100, (i+(i*4))*-1], [150, (i+(i*4))*-1], newColor, i)

Multimedia
name2021-11-15 08-51-26.mp4



Expand
titleImport a Model

test


Related Topics