http://developer.vectorworks.net/index.php?title=VS:AddSubMtrlToMtrl&feed=atom&action=historyVS:AddSubMtrlToMtrl - Revision history2024-03-28T16:51:26ZRevision history for this page on the wikiMediaWiki 1.41.0http://developer.vectorworks.net/index.php?title=VS:AddSubMtrlToMtrl&diff=24510&oldid=prevRoot: 1 revision2020-09-16T15:48:00Z<p>1 revision</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:48, 16 September 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Roothttp://developer.vectorworks.net/index.php?title=VS:AddSubMtrlToMtrl&diff=24509&oldid=prevUnknown user at 15:48, 16 September 20202020-09-16T15:48:00Z<p></p>
<p><b>New page</b></p><div><br />
{{LocationMain|category=LocationVS|specific=}}<br />
__TOC__<br />
<vwDoc><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<desc><br />
Adds a Simple material to a Compound material. Sets the fraction of the Simple material as a relation to the whole. Fraction can have value between 0.0 and 1.0. &quot;Primary&quot; material is a simple material which carries the graphical attributes to be used by the compound material.</desc><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<def><br />
<funcDef lang="vs"><br />
FUNCTION AddSubMtrlToMtrl(hMaterial:HANDLE; subMtrlName:STRING; fraction:REAL; makePrimary:BOOLEAN) : Boolean;<br />
</funcDef><br />
<funcDef lang="py"><br />
def vs.AddSubMtrlToMtrl(hMaterial, subMtrlName, fraction, makePrimary):<br />
return Boolean<br />
</funcDef><br />
</def><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<params><br />
<lineList ident=1><br />
<line><br />
hMaterial<br />
HANDLE<br />
Handle of a Compound material<br />
</line><br />
<line><br />
subMtrlName<br />
STRING<br />
Name of a Simple material to be added<br />
</line><br />
<line><br />
fraction<br />
REAL<br />
Fraction of the Simple material<br />
</line><br />
<line><br />
makePrimary<br />
BOOLEAN<br />
True if this Simple material should become the primary material of the Compound material<br />
</line><br />
</lineList><br />
</params><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<return><br />
Returns true if successful; false otherwise. Function fails if the simple material already was added.</return><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<remark></remark><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<sample></sample><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<seeAlso></seeAlso><br />
<br />
-----------------------------------------------------------------------------------------------------------<br />
<version><br />
Availability: from Vectorworks 2021<br />
<br />
</version><br />
<br />
</vwDoc><br />
<br />
[[Category:VS Function Reference|AddSubMtrlToMtrl]]<br />
[[Category:VS Function Reference:Object Attributes|AddSubMtrlToMtrl]]</div>Unknown user