FormIt Plugin API
v23.0.0 (2023.0.0)
|
Functions | |
json | FormIt.SketchMaterials.GetWSMMaterialForHistory (historyId, materialId) |
json | FormIt.SketchMaterials.GetSketchMaterialFromWSMMaterial (historyId, wsmMaterialId) |
Get the sketch material id from the WSM material. More... | |
json | FormIt.SketchMaterials.GetMaterialIDsFromObjects (aObjects) |
Get the materials used by the given vector of objects. More... | |
json | FormIt.SketchMaterials.AssignMaterialToObjects (materialId, aObjects, uvTransf3d) |
Assigns the material to the list of objects and sets uvs when the given Transf3d is non-identity. More... | |
json | FormIt.SketchMaterials.ChangeMaterialOrder (materialId, newPos) |
Give the material a new position in the list. More... | |
json | FormIt.SketchMaterials.IsMaterialUsed (materialId) |
Return true if a sketch material id is in use. More... | |
json | FormIt.SketchMaterials.GetDefaultMaterialData (bBack) |
Return the material data of the default sketch material. More... | |
json | FormIt.SketchMaterials.SetDefaultMaterialData (materialData, bBack) |
json | FormIt.SketchMaterials.GetMaterialDataAttribute (materialData, attributeType) |
Return the attribute of a material data. More... | |
json | FormIt.SketchMaterials.SetMaterialDataAttribute (materialData, attributeType, value) |
Set the attribute of a material data. More... | |
json | FormIt.SketchMaterials.GetMaterialDataMap (materialData, mapType) |
Return the map of a material data. More... | |
json | FormIt.SketchMaterials.SetMaterialDataMap (materialData, mapType, map) |
Set the map of a material data. More... | |
json | FormIt.SketchMaterials.GetAllObjectsUsingMaterials (materialIds) |
Return all objects that are used by the given vector of materials. More... | |
json | FormIt.SketchMaterials.UpdateMaterialFromParameters (materialID, parameters) |
Update the firefly material with the basic parameters. More... | |
json | FormIt.SketchMaterials.RearrangeMaterials (materialIds, materialBeforeOrAfterId, insertAfter) |
Rearrange the materials to be put before or after the given other material. More... | |
json FormIt.SketchMaterials.AssignMaterialToObjects | ( | materialId | , |
aObjects | , | ||
uvTransf3d | |||
) |
Assigns the material to the list of objects and sets uvs when the given Transf3d is non-identity.
If a WSM material with that name does not exist in the history of an object, it is also created.
[in] | materialId | int |
[in] | aObjects | array of WSM.GroupInstancePath |
[in] | uvTransf3d | is the optional transform applied to uvs. |
json FormIt.SketchMaterials.ChangeMaterialOrder | ( | materialId | , |
newPos | |||
) |
Give the material a new position in the list.
[in] | materialId | int |
[in] | newPos | int |
json FormIt.SketchMaterials.GetAllObjectsUsingMaterials | ( | materialIds | ) |
Return all objects that are used by the given vector of materials.
[in] | materialIds | Array of material ids. |
json FormIt.SketchMaterials.GetDefaultMaterialData | ( | bBack | ) |
Return the material data of the default sketch material.
[in] | bBack | bool true for the back face material |
json FormIt.SketchMaterials.GetMaterialDataAttribute | ( | materialData | , |
attributeType | |||
) |
Return the attribute of a material data.
[in] | materialData | FormIt.Materials.MaterialData |
[in] | attributeType | FormIt.Materials.AttributeType "FormIt.MaterialAttributeType.kGloss" "FormIt.MaterialAttributeType.kReflectionDirect" "FormIt.MaterialAttributeType.kReflectionOblique" |
json FormIt.SketchMaterials.GetMaterialDataMap | ( | materialData | , |
mapType | |||
) |
Return the map of a material data.
[in] | materialData | FormIt.Materials.MaterialData |
[in] | mapType | FormIt.Materials.MapType "FormIt.MaterialMapType.kNormalMap" "FormIt.MaterialMapType.kOpacityMap" |
json FormIt.SketchMaterials.GetMaterialIDsFromObjects | ( | aObjects | ) |
Get the materials used by the given vector of objects.
[in] | aObjects | array of WSM.GroupInstancePath |
json FormIt.SketchMaterials.GetSketchMaterialFromWSMMaterial | ( | historyId | , |
wsmMaterialId | |||
) |
Get the sketch material id from the WSM material.
[in] | historyId | int |
[in] | wsmMaterialId | int |
json FormIt.SketchMaterials.GetWSMMaterialForHistory | ( | historyId | , |
materialId | |||
) |
json FormIt.SketchMaterials.IsMaterialUsed | ( | materialId | ) |
Return true if a sketch material id is in use.
[in] | materialId | int |
json FormIt.SketchMaterials.RearrangeMaterials | ( | materialIds | , |
materialBeforeOrAfterId | , | ||
insertAfter | |||
) |
Rearrange the materials to be put before or after the given other material.
If the other material is WSM.INVALID_ID, the materials are placed at the end
[in] | materialIds | Array of material ids. |
[in] | materialBeforeOrAfterId | Id of material before or after which to insert, or WSM.INVALID_ID. |
[in] | insertAfter | true if inserting after materialBeforeOrAfterId. |
json FormIt.SketchMaterials.SetDefaultMaterialData | ( | materialData | , |
bBack | |||
) |
json FormIt.SketchMaterials.SetMaterialDataAttribute | ( | materialData | , |
attributeType | , | ||
value | |||
) |
Set the attribute of a material data.
[in] | materialData | FormIt.Materials.MaterialData |
[in] | attributeType | FormIt.Materials.AttributeType |
[in] | value | float |
json FormIt.SketchMaterials.SetMaterialDataMap | ( | materialData | , |
mapType | , | ||
map | |||
) |
Set the map of a material data.
[in] | materialData | FormIt.Materials.MaterialData |
[in] | mapType | FormIt.Materials.MapType |
[in] | map | Array of char, representing png or jpg texture |
json FormIt.SketchMaterials.UpdateMaterialFromParameters | ( | materialID | , |
parameters | |||
) |
Update the firefly material with the basic parameters.
This method is used by the UI so that we can dynamically update the scene when the user drags sliders for those parameters.
[in] | materialId | int |
[in] | parameters | JSON formatted string with the parameters to update |
[in] | materialID | int |