Chapter 5 · The TnpixPreset Interface

5.2Files

  • Standard presets are .tpstd files; Advanced presets are .tpadv files. A preset is a text file of name = value lines.
  • A preset stores the fabric, not its place on the garment: the channel binding is not saved and not changed by a load.
  • A material of one kind refuses a preset of the other kind.
m = $Shirt.modifiers[#Tnpix_Material_Standard]
f = TnpixPreset.folder() + "\\Heavy denim.tpstd"
TnpixPreset.save m f
TnpixPreset.load $Jacket.modifiers[#Tnpix_Material_Standard] f
TnpixPreset.why()
TnpixPreset.names m