Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uploading site Thu 25 Apr 2019 23:07:58 BST
Former-commit-id: 21fb737
- Loading branch information
1 parent
30d534b
commit bf046a5
Showing
17 changed files
with
195 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
content/docs/collaborating/authoring/components/example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def unparentAndKeepPos(obj_node): | ||
""" | ||
Unparent an object node, but keep it in the same position as it was | ||
when it was parented. | ||
""" | ||
|
||
xform = obj_node.worldTransform() | ||
obj_node.setFirstInput(None) | ||
obj_node.setWorldTransform(xform) | ||
|
||
unparentAndKeepPos(hou.node("/obj/box_object4")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ul> | ||
<li> | ||
<a href="{{ relref . "/posts" }}">Blog</a> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<style> | ||
code { | ||
font-family: "Oxygen Mono", monospace; | ||
font-size: .80rem; | ||
} | ||
</style> | ||
|
||
{{ $p := .Page }} | ||
{{ $file := .Get "file" }} | ||
{{ $codelang := .Get "language" | default (path.Ext $file | strings.TrimPrefix ".") }} | ||
{{ $fileDir := path.Split $file }} | ||
{{ $bundlePath := path.Join .Page.File.Dir $fileDir.Dir }} | ||
{{ $filename := printf "/content/examples/%s" $file | safeURL }} | ||
{{ $ghlink := printf "https://%s/master%s" site.Params.githubwebsiteraw $filename | safeURL }} | ||
{{/* First assume this is a bundle and the file is inside it. */}} | ||
{{ $resource := $p.Resources.GetMatch (printf "%s*" $file ) }} | ||
{{ with $resource }} | ||
{{ $.Scratch.Set "content" .Content }} | ||
{{ else }} | ||
{{/* Read the file relative to the content root. */}} | ||
{{ $resource := readFile $filename}} | ||
{{ with $resource }}{{ $.Scratch.Set "content" . }}{{ end }} | ||
{{ end }} | ||
{{ if not ($.Scratch.Get "content") }} | ||
{{ errorf "[%s] %q not found in %q" site.Language.Lang $fileDir.File $bundlePath }} | ||
{{ end }} | ||
{{ with $.Scratch.Get "content" }} | ||
|
||
<div class="includecode" id="{{ $file | anchorize }}"> | ||
<code style="position: relative;top:18px;padding-top:4px;padding-left:12px;padding-right:12px;padding-bottom:12px;"> | ||
{{ $file }} | ||
</code> | ||
|
||
{{ highlight . $codelang "" }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<style> | ||
code { | ||
font-family: "Oxygen Mono", monospace; | ||
font-size: .85rem; | ||
} | ||
</style> | ||
|
||
{{ $p := .Page }} | ||
{{ $file := .Get "file" }} | ||
{{ $codelang := .Get "language" | default (path.Ext $file | strings.TrimPrefix ".") }} | ||
{{ $fileDir := path.Split $file }} | ||
{{ $bundlePath := path.Join .Page.File.Dir $fileDir.Dir }} | ||
{{ $filename := printf "/content/%s/examples/%s" .Page.Lang $file | safeURL }} | ||
{{ $ghlink := printf "https://%s/master%s" site.Params.githubwebsiteraw $filename | safeURL }} | ||
{{/* First assume this is a bundle and the file is inside it. */}} | ||
{{ $resource := $p.Resources.GetMatch (printf "%s*" $file ) }} | ||
{{ with $resource }} | ||
{{ $.Scratch.Set "content" .Content }} | ||
{{ else }} | ||
{{/* Read the file relative to the content root. */}} | ||
{{ $resource := readFile $filename}} | ||
{{ with $resource }}{{ $.Scratch.Set "content" . }}{{ end }} | ||
{{ end }} | ||
{{ if not ($.Scratch.Get "content") }} | ||
{{ errorf "[%s] %q not found in %q" site.Language.Lang $fileDir.File $bundlePath }} | ||
{{ end }} | ||
{{ with $.Scratch.Get "content" }} | ||
<table class="includecode" id="{{ $file | anchorize }}"> | ||
<thead> | ||
<tr> | ||
<th> | ||
{{ with $ghlink }}<a href="{{ . }}" download="{{ $file }}">{{ end }} | ||
<code>{{ $file }}</code> | ||
{{ if $ghlink }}</a>{{ end }} | ||
<img src="{{ "svg/code-fork.svg" | relURL }}" style="max-height:18px" onclick="copyCode('{{ $file | anchorize }}')" title="Copy {{ $file }} to clipboard"> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{ highlight . $codelang "" }} </td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{{ end }} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule book
updated
22 files