Hi!
Would be great to have Par class methods:
isFile()
isFolder()
Would be helpful for ‘assets collector - like’ scenarios:
for i in root.findChildren():
for par in i.pars():
if par.isFile():
print('One more external file: ', par.eval())
Hi!
Would be great to have Par class methods:
isFile()
isFolder()
Would be helpful for ‘assets collector - like’ scenarios:
for i in root.findChildren():
for par in i.pars():
if par.isFile():
print('One more external file: ', par.eval())
Hi @letsius,
thanks for the suggestion, we’ve added it as a RFE for future consideration.
Currently you can use the Par Class’ .style
member to see if you are dealing with a file type or folder type parameter:
for i in root.findChildren():
for par in i.pars():
if par.style == 'File':
print('One more external file: ', par.eval())
cheers
Markus
Aghh, thank you!
Haven’t noticed that.
Cheers,
Alex