pyro2 module

class pyro2.UIFetchInfo(vnode, action, type, xferdir, pnode=None, path='')

Bases: object

class pyro2.XferTask(func, args, desc=None)

Bases: object

pyro2.allParmTemplates(group_or_folder)
pyro2.bbPresetCB(kwargs, pname_adapt, pname_burn)
pyro2.bbPresetMenu(title='Presets')
pyro2.bbspline(T)
pyro2.blackbody(T, dotm, adapt, burn)
pyro2.blackbodyExportTemplates(isdirect, prefix, postfix, colpath='', chrpath='', valpath='')
pyro2.blackbodyRamps(epsilon, lerpid, T1, T2, dotm, adapt, burn)
pyro2.blackbodyRampsCB(kwargs, pn_xpathcol, pn_xpathchr, pn_xpathval, pn_thresh, pn_interp, pn_T1, pn_T2, pn_dotm, pn_adapt, pn_burn)
pyro2.blackbodyRampsExport(path, desc, ramp)
pyro2.blackbodySample(nsamps, T1, T2, dotm, adapt, burn)
pyro2.childrendict(node)
pyro2.douglaspeucker(pts, epsilon, posfunctor=<function <lambda>>, dfunc=<function ptlined>)
pyro2.efit(val, s0, s1, t0, t1)

unclamped fit to match the VEX implementation. Does not check for div-by-zero (!)

pyro2.fit(x, oldmin, oldmax, newmin, newmax)
pyro2.fit01(x, newmin, newmax)
pyro2.getContextGlobals(vopnode)
pyro2.isExpression(string)
pyro2.isGlobalVar(vopnode, varstr)
pyro2.isIterable(possible_iterable)

quick util to test whether the arg is iterable

pyro2.isRadio(t, tt)
pyro2.lerp(a, b, k)
pyro2.luma(linrgb)
pyro2.makeuimenu()
pyro2.planckpower(T)
pyro2.ptlined(p1, p2, q)
pyro2.ptlined_luma(p1, p2, q)
pyro2.ptlined_value(p1, p2, q)
pyro2.rampPreset(name)
pyro2.rampPresetCB(kwargs, rampname, isdual)
pyro2.rampPresetMenu(kwargs, rampname, isdual, title='Presets')
pyro2.rampPresets()
pyro2.rgbtoxyz(rgb)
pyro2.shiftTupleIndex(tndx, offset)

Returns a shifted template index tuple

pyro2.sign(x)

returns the sign of the numerical (POD) argument x

pyro2.subdict(text, dic)
pyro2.tonemap(rgb, avgloglum, key, burn)
pyro2.tupleNames(basename, ncomp, scheme)
pyro2.uiAddRadios(radios, st, oldnew, dsub)
pyro2.uiCatTags(t1, t2)
pyro2.uiClearFieldShapeParms(pset, pfx='')
pyro2.uiCreateFromTuple(uistyle, node, tplts, iprom, pvops=(), radios=(), xlinks=(), prefix='', postfix='')
pyro2.uiDecodeRampAttrib(rampattrib, ramptype='flt')
pyro2.uiDisableFieldShape(node, pre='')
pyro2.uiDrawer(node, selndx, drawers, contfolders=False)
pyro2.uiExprLanguageType(langname)
pyro2.uiFindHdaParent(node)
pyro2.uiFolderTypes()
pyro2.uiForcePyroDefaults(node)
pyro2.uiGetRadioParm(node_or_path, parmname)
pyro2.uiGetRadioValue(node_or_path, parmname)
pyro2.uiGlobals(node, net, embedded)
pyro2.uiLinkTuples(node, nodename, net, netname)
pyro2.uiLinkTypes()
pyro2.uiLinksAndExpressions(dolinks, node, net, gn, dsub, links)
pyro2.uiMenuTypes()
pyro2.uiNetNode(node)
pyro2.uiNumberTypes()
pyro2.uiRadioParmName(root, st)
pyro2.uiRampBasesEnum(basisname)
pyro2.uiRampTypes()
pyro2.uiRemoveEmbedded(g, gn)
pyro2.uiRemoveLive(g)
pyro2.uiScanTemplates(doin, doln, node, gn, st, globs, iprom, pvops, radios, xlinks, prefix='', postfix='')
pyro2.uiScriptLanguageType(langname)
pyro2.uiSelectTargets(node)
pyro2.uiSetLiveVop(t, v)
pyro2.uiSetRadioParm(node_or_path, parmname, value)
pyro2.uiSymbolTable(g)
pyro2.uiUniqueTypes()
pyro2.uiUpdateEmbedded(node, pvops, gn, dsub)
pyro2.uiUpdateTemplates(gn, dsub)
pyro2.uitSpacer()
pyro2.uitTabFolder(label)
pyro2.uitlRename(templatelist, dic)
pyro2.uitlRepath(parentnode, childnode, templatelist)
pyro2.uitlReplaceCallback(tlist, plist, cb, langname)
pyro2.uitlReplaceExpression(tlist, plist, xpr, langname)
pyro2.uixClearCircular(frompath, topath, ptupleslist)
pyro2.uixClearMultiparms(parm, mparms)
pyro2.uixClearParms(parmiter)
pyro2.uixColRampMode(pnode, pfx)
pyro2.uixColRampRange(pnode, pfx)
pyro2.uixCopy(info)
pyro2.uixCopyFromParms(info)
pyro2.uixCopyToParms(info)
pyro2.uixCvtRampMode(rampmode)
pyro2.uixFieldRampMode(pnode, pfx)
pyro2.uixFieldRampRange(pnode, pfx)
pyro2.uixLinkCRamps(to_nodepath, to_parm, from_nodepath, from_parm)
pyro2.uixLinkFRamps(to_nodepath, to_parm, from_nodepath, from_parm)
pyro2.uixLinkFromParms(info)
pyro2.uixLinkPath(info)
pyro2.uixLinkToParms(info)
pyro2.uixMenu()
pyro2.uixRampMode(lbt, rbt)
pyro2.uixRampRange(dofit, smin, smax, tmin, tmax, doramp, rmin, rmax, iscol, cmin, cmax)
pyro2.uixSelectNode()
pyro2.uixShaderField(attfield, dflt=('float', ''))
pyro2.uixTransfer(kwargs, resetall)
pyro2.unique(name, st)
pyro2.uniqueVopName(node)
pyro2.uniqueupdt(name, st, sub)
pyro2.updateField(kwargs, intype, promote, promotemenu, outtype, parmnameinradio)
pyro2.validateDensityField(kwargs)
pyro2.xferAlreadyLinked(src, dst)
pyro2.xferApplyTasks(title, tasks, rdir)
pyro2.xferClearMultiParms(parm)
pyro2.xferCondRev(l, doit)
pyro2.xferCopyCommonColor(pd, oroot, obranch, ppfx, rampname, tasks=[])

Copy values between parms that are common to all the ColorVolume blocks

pyro2.xferCopyCommonDensity(pd, oroot, obranch, hasoverride, ppfx, rampname, tasks=[])

Copy values between parms that are common to all the DensityVolume blocks

pyro2.xferCopyParm(src, dst)

Copy value from src to dst

pyro2.xferCopyParmValue(src, dst)

Copy src’s value to dst

pyro2.xferCopyRamp(src, dst)

Copy ramp values from src to dst assumes test for ramp type already took place and was positive

pyro2.xferCopyVals(pd)
pyro2.xferDeanimateParm(dst)

delete dst keyframes if they exists – i.e: removes any animation

pyro2.xferDeanimateRamp(dst)

delete keyframes from all of dst’s multiparm instances assumes test for ramp type already took place and was positive

pyro2.xferFieldType(parmpath)

Attempts to find out the data type of a field name referenced in one of the field parms (at parmpath) of a visualization op – whether Sop or Dop

pyro2.xferKillCircular(src, dst)

resolve circular reference between parms ‘src’ and ‘dst’, either of which can be iterable for cases of multiple dependencies

pyro2.xferKillRampCircular(src, dst)

resolve circular reference between ramps “src” and “dst” assumes test for circularity already took place and was positive

Callback for the “Apply Link” buttons (multi- and single-job)

pyro2.xferLinkCommonColor(pd, oroot, obranch, ppfx, rampname, tasks=[])

Sets links that are common to all the ColorVolume blocks

pyro2.xferLinkCommonDensity(pd, oroot, obranch, hasoverride, ppfx, rampname, tasks=[])

Sets links that are common to all the DensityVolume blocks

pyro2.xferLinkParm(src, dst, relpath=False)

Make dst reference src, using relative paths when relpath is True

pyro2.xferLinkPath(src, dst, relpath=False)

path to ‘src’ parameter, optionally expressed as relative to ‘dst’ parm

pyro2.xferLinkRamp(src, dst, relpath=False)
pyro2.xferLinkRampMultiParms(src, dst, relpath)
pyro2.xferMapFieldValue(val, dofit, fits0, fits1, fitt0, fitt1, doramp, ramp0, ramp1)

Calculate the mapping of a field’s ‘val’ value after the pyro shaping operators have been applied.

pyro2.xferMapFieldValueC(val, dofit, fits0, fits1, fitt0, fitt1, doramp, ramp0, ramp1, cramp0, cramp1)

Calculate the mapping of a field’s ‘val’ value after the pyro shaping operators have been applied – specific to ColorVolume Blocks.

pyro2.xferParmDict(pyronode, pnames, pre, post)
pyro2.xferRampMultiParmNames(parm)
pyro2.xferResetCommonColor(pd, oroot, obranch, ppfx, tasks=[])

Resets parms that need to be in a specific state for ColorVolume blocks

pyro2.xferResetCommonDensity(pd, oroot, obranch, hasoverride, ppfx, tasks=[])

Resets parms that need to be in a specific state for DensityVolume blocks

pyro2.xferResetParm(parm, expr=('', None, True))

Resets parm to its default and optionally sets its value to the given expression tuple

pyro2.xferResetRamp(parm)

Resets ramp to its normal default of linear-increasing assumes test for ramp type already took place and was positive

pyro2.xferSetParmExpr(dst, expr)

Set parm to the given expression tuple

pyro2.xferSetParmValue(dst, val)

Set/Force parm to literal value (no expressions or references)

pyro2.xferSetSlaveConsts(pyro, tasks=[])

Constant settings for the case when pyro is slaved to a visualization op

pyro2.xferTestCircular(src, dst)

test for circular reference between parms “src” and “dst”

pyro2.xferTransfer(kwargs)

Callback for the “Apply Transfer” buttons (multi- and single-job)

pyro2.xferValidateOther(kwargs, p_counter, p_other, p_valid, p_type, p_nvalid)

Callback for the “Other Operator” member of the transfer multiparm blocks. Analyzes “other” and sets some of the hidden state parms of the block.

pyro2.xyztochroma(xyz)