PSET(nged)
set a scalar parameter of a primitive
π PSET π
ok so this is the pset page from the nged manual β BRL-CAD user commands, bestie, we're in mged territory π«Ά
β¨ NAME β¨
pset β set a scalar parameter of a primitive. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
pset obj attribute val
π¦ DESCRIPTION π¦
ok so picture this: the pset command sets a scalar parameter of the BRL-CAD primitive obj to whatever value you hand it in val. you pick which parameter using a single-letter attribute code (yes, literally one letter, iykyk π). then the modified object gets written back to the database. slay, it persists. β¨
the val argument has to be a single floating-point number β one number, that's the whole assignment, no funny business π. path prefixes on obj are totally fine (like comb/part.s); it's the trailing component name that gets used for the lookup. so go ahead and be specific, it's giving main character energy π
lowkey important: currently only METABALL primitives are supported. any other primitive type just returns an error. no cap, that's the rule π
π METABALL attributes π
here's the tea on the attribute codes for METABALLs, bestie π
morMβ Render method! the valid values are0(Metaball),1(iso-surface), and2(Blob). values below0get clamped to0, and values above2get clamped to2β so you literally cannot escape the range, it's giving strict parents πtorTβ Threshold value! this sets the field threshold used during metaball rendering. and here's the cute part: if you give it a negative value, its absolute value is used. so-1.5becomes1.5, math said no negativity today β¨
π₯ EXAMPLES π₯
Example 1. Set the render method of a metaball
mged> pset blob.s m 2
Sets the render method of the metaball primitive blob.s to Blob mode (method 2). iconic. π
Example 2. Set the threshold of a metaball
mged> pset cloud.s t 1.5
Sets the field threshold of the metaball primitive cloud.s to 1.5. see how clean that is π
π AUTHOR π
BRL-CAD Team β the actual legends behind all this π«Ά
π§ BUG REPORTS π§
found something cursed? reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β tell 'em everything, fr fr π
that's the page!! π this is BRL-CAD, PSET(nged), BRL-CAD User Commands β go set some scalars, bestie, you're gonna ate π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms