<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: #paramBlock2 scripted plugin parameter type. How to use? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154537#M29447</link>
    <description>&lt;P&gt;for example, cust attributes have paramblock2s&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;global CAPB2 = attributes CAPB2 attribid:#(0x00de01, 0xde00de) 
(
	parameters params 
	(
		power type:#float default:1.0
		
		on power set val do
		(
			format "power set &amp;gt;&amp;gt; %\n" val
		)
	)
)

ca = createinstance CAPB2
ca.power

getproperty ca #power
ca.power = 0.5
setproperty ca #power 0.25

pb2 = refs.getreference ca 1
classof pb2 

getpropnames pb2  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 00:31:02 GMT</pubDate>
    <dc:creator>denisT.MaxDoctor</dc:creator>
    <dc:date>2026-06-05T00:31:02Z</dc:date>
    <item>
      <title>#paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154101#M29446</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;I have maybe a stupid question but I can't find any examples anywhere.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the &lt;A href="https://help.autodesk.com/view/MAXDEV/2026/ENU/?guid=GUID-461915FA-31A2-49CE-84AF-2544B782ACA3#parameters" target="_blank" rel="noopener"&gt;help docs&lt;/A&gt;&amp;nbsp;for scripted plugins clauses, it says available since 2018 there's a parameter type called #paramBlock2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;parameters main rollout:params
(
size type:#worldUnits ui:size default:150
paramTest type:#paramBlock2 -- &amp;lt;-- How do I use this?
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But I can't really see how to use it. Can anyone point to some example usages that I could look at?&lt;BR /&gt;&lt;BR /&gt;In the code above for example, now that there's a parameter `paramTest`, how do I populate it? Do I assign it an instance of another object's params?&lt;BR /&gt;&lt;BR /&gt;In that case, I'm not even sure how to easily/safely&amp;nbsp; access another objects paramBlock. You have&amp;nbsp;&lt;A href="https://help.autodesk.com/view/MAXDEV/2026/ENU/?guid=GUID-384D7F6C-C20C-4AE2-A668-DCCFF57CEAD5" target="_blank" rel="noopener"&gt;this way:&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;lt;void&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;paramPublishMgr.addParameterBySubNum &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;maxObject&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;paramParent &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;index&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;paramSubnum&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But you have to have the obj selected in trackview.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This way can return the paramBlock:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(refs.dependsOn $.baseobject)&lt;/LI-CODE&gt;&lt;P&gt;But it can return an array of multiple blocks or other nodes and I'm not sure how to filter just the params, or even how to figure out which params are the ones I'm looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, say I could isolate the params, would I assign them to my #paramBlock2 item type like this?&lt;BR /&gt;&lt;STRONG&gt;$obj_A.paramTest = $obj_B.params?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Or can I define the params in a variable somewhere and assign it that way?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;storedParams = parameters stored ( range type:#float default:25.5 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$obj_A.paramTest = storedParams&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can paramTest's populated block then be linked to UI elements?&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks for any examples or links to documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 17:14:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154101#M29446</guid>
      <dc:creator>AndyVanDalsem</dc:creator>
      <dc:date>2026-06-04T17:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: #paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154537#M29447</link>
      <description>&lt;P&gt;for example, cust attributes have paramblock2s&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;global CAPB2 = attributes CAPB2 attribid:#(0x00de01, 0xde00de) 
(
	parameters params 
	(
		power type:#float default:1.0
		
		on power set val do
		(
			format "power set &amp;gt;&amp;gt; %\n" val
		)
	)
)

ca = createinstance CAPB2
ca.power

getproperty ca #power
ca.power = 0.5
setproperty ca #power 0.25

pb2 = refs.getreference ca 1
classof pb2 

getpropnames pb2  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 00:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154537#M29447</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-06-05T00:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: #paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154542#M29448</link>
      <description>&lt;P&gt;another example - a built-in modifier&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(
	m = Bend()
	for k=1 to refs.getNumRefs m do format "index:% ref:%\n" k (refs.getreference m k)
)&lt;/LI-CODE&gt;&lt;P&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 00:40:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154542#M29448</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2026-06-05T00:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: #paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154563#M29449</link>
      <description>&lt;P&gt;This is great, thank you. Exactly what I needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 01:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14154563#M29449</guid>
      <dc:creator>AndyVanDalsem</dc:creator>
      <dc:date>2026-06-05T01:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: #paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14155307#M29450</link>
      <description>&lt;P&gt;To a large extent&amp;nbsp;#paramBlock2 and&amp;nbsp;#paramBlock2tab aren't that applicable to maxscript, and are more for c++ sdk completeness and testing.&lt;/P&gt;
&lt;P&gt;In the c++ world&amp;nbsp;#paramBlock2tab is used for things like the Conform modifier and the Boolean modifier to store information on each operand.&lt;/P&gt;
&lt;P&gt;To be similarly applicable in maxscript, would need a way to specify for each 'parameters' block whether it should not be automatically created when the plugin instance is created, and a way to create it so that it could then be assigned/added to the&amp;nbsp;#paramBlock2/#paramBlock2tab parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 13:51:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14155307#M29450</guid>
      <dc:creator>larryminton</dc:creator>
      <dc:date>2026-06-05T13:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: #paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14155435#M29452</link>
      <description>&lt;P&gt;Ah, ok. I think I understand.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That's kind of what I was thinking about doing with it was storing operand-type data in the&amp;nbsp;&lt;SPAN&gt;#paramBlock2 parameter&lt;/SPAN&gt;. I didn't even know there was a&amp;nbsp;&lt;SPAN&gt;#paramBlock2tab type! It's not shown anywhere in the Maxscript docs that I could find.&lt;BR /&gt;&lt;BR /&gt;I'm going to play around with it just because I'm curious, but it's good to know it's more of a c++ thing.&lt;BR /&gt;&lt;BR /&gt;Thanks for the info!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 15:54:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14155435#M29452</guid>
      <dc:creator>AndyVanDalsem</dc:creator>
      <dc:date>2026-06-05T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: #paramBlock2 scripted plugin parameter type. How to use?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14155459#M29453</link>
      <description>&lt;P&gt;fixing doc...&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN&gt;`#paramBlock2Tab`&lt;/SPAN&gt;&lt;SPAN&gt;|available since 3ds Max 2018|&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN&gt;`#point2Tab`&lt;/SPAN&gt;&lt;SPAN&gt;|available since 3ds Max 2018|&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jun 2026 16:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/paramblock2-scripted-plugin-parameter-type-how-to-use/m-p/14155459#M29453</guid>
      <dc:creator>larryminton</dc:creator>
      <dc:date>2026-06-05T16:00:59Z</dc:date>
    </item>
  </channel>
</rss>

