Skip to content

Commit

Permalink
added option to include built in param pages if desired such as Xform
Browse files Browse the repository at this point in the history
  • Loading branch information
EnviralDesign committed Feb 18, 2022
1 parent e6bf5d4 commit d94df3a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Binary file modified UGV4.tox
Binary file not shown.
Binary file modified UberGui_V4_Release.toe
Binary file not shown.
25 changes: 23 additions & 2 deletions python/UG4.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ def Regenerate(self, SRC ):
uberGuiOverrideDat = SRC.op('Uberguiconfigoverride')

publicPageNames = self.publicLookup.row(1)[0].val.split(',')
parTuplets = [ x for x in SRC.customTuplets if x[0].enable == True and x[0].page.name in publicPageNames ]
all_pars = SRC.builtinPars + SRC.customPars
all_pars = [ x for x in all_pars if x.page != None ]
captured_pars = [ x for x in all_pars if x.page.name in publicPageNames ]

# old way.
# parTuplets = [ x for x in SRC.customTuplets if x[0].enable == True and x[0].page.name in publicPageNames ]
parTuplets = self.generate_par_tuple_list(captured_pars)


# for each in parTuplets:
# print( [x.name for x in each] )

FirstHeader = 1

Expand Down Expand Up @@ -255,6 +265,17 @@ def Regenerate(self, SRC ):
else:
HTML_FINAL.text = ''

def generate_par_tuple_list(self, parlist):

par_tuples = []
for par in parlist:
if par.vecIndex == 0:
par_tuples += [[par]]
elif par.vecIndex > 0:
par_tuples[-1] += [par]

return par_tuples


def ParseTitle(self,titleStr):
'''
Expand Down Expand Up @@ -1708,4 +1729,4 @@ def TraceFunctionCall( self ):

print('-'*(source_max+line_max+function_max+11))

return
return

0 comments on commit d94df3a

Please sign in to comment.