mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
preset viewport density to 0.1
This commit is contained in:
parent
c0772c505f
commit
c52cddb466
1 changed files with 8 additions and 3 deletions
|
|
@ -89,12 +89,14 @@ class YetiCacheLoader(api.Loader):
|
|||
cache_fname = self.validate_cache(cache)
|
||||
cache_path = os.path.join(self.fname, cache_fname)
|
||||
|
||||
# Add filename to `cacheFileName` attribute, set to cache mode
|
||||
# Preset the viewport density]
|
||||
cmds.setAttr("%s.viewportDensity" % yeti_node, 0.1)
|
||||
|
||||
# Add filename to `cacheFileName` attribute
|
||||
cmds.setAttr("%s.cacheFileName" % yeti_node,
|
||||
cache_path,
|
||||
type="string")
|
||||
# Set file mode to cache
|
||||
cmds.setAttr("%s.fileMode" % yeti_node, 1)
|
||||
|
||||
cmds.setAttr("%s.imageSearchPath" % yeti_node,
|
||||
image_search_path,
|
||||
type="string")
|
||||
|
|
@ -102,6 +104,9 @@ class YetiCacheLoader(api.Loader):
|
|||
# Set verbosity for debug purposes
|
||||
cmds.setAttr("%s.verbosity" % yeti_node, 2)
|
||||
|
||||
# Enable the cache by setting the fil mode
|
||||
cmds.setAttr("%s.fileMode" % yeti_node, 1)
|
||||
|
||||
nodes.append(yeti_node)
|
||||
nodes.append(transform_node)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue