- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I have maybe a stupid question but I can't find any examples anywhere.
In the help docs for scripted plugins clauses, it says available since 2018 there's a parameter type called #paramBlock2.
parameters main rollout:params
(
size type:#worldUnits ui:size default:150
paramTest type:#paramBlock2 -- <-- How do I use this?
)
But I can't really see how to use it. Can anyone point to some example usages that I could look at?
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?
In that case, I'm not even sure how to easily/safely access another objects paramBlock. You have this way:
<void>paramPublishMgr.addParameterBySubNum <maxObject>paramParent <index>paramSubnum
But you have to have the obj selected in trackview.
This way can return the paramBlock:
(refs.dependsOn $.baseobject)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.
But, say I could isolate the params, would I assign them to my #paramBlock2 item type like this?
$obj_A.paramTest = $obj_B.params?
Or can I define the params in a variable somewhere and assign it that way?
storedParams = parameters stored ( range type:#float default:25.5 )
$obj_A.paramTest = storedParams
Can paramTest's populated block then be linked to UI elements?
Anyway, thanks for any examples or links to documentation.
Solved! Go to Solution.
