Skip to content

Commit 805db7e

Browse files
committed
[IGNORE] Make Loop Docs
1 parent 1e7aaa0 commit 805db7e

File tree

9 files changed

+406
-22
lines changed

9 files changed

+406
-22
lines changed

Help/icons/make_loop_white.svg

Lines changed: 346 additions & 0 deletions
Loading

Help/images/make_loop_after.gif

727 KB
Loading

Help/images/make_loop_before.gif

799 KB
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
= GameDev Make Loop =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::sop_make_loop
6+
#icon: make_loop_white
7+
#tags: tech, model, gamedev
8+
9+
""" Takes a mesh or volume that is animated and loops them """
10+
11+
This node will make either a mesh or a volume loop.
12+
13+
The general idea is that it will offset the animation by half of the timeline and then do a sinewave to blend between the two animations.
14+
15+
This will work with meshes with constant topology or volumes.
16+
17+
:col:
18+
[Image:/images/make_loop_before.gif]
19+
20+
Mesh sequence before looping applied
21+
22+
:col:
23+
[Image:/images/make_loop_after.gif]
24+
25+
Mesh sequence after looping applied
26+
27+
28+
@parameters
29+
Start Frame:
30+
Beginning of the Loop
31+
End Frame:
32+
End of the loop
33+
Number Loops:
34+
Times to repeat the loop
35+
36+

hip/make_loop_demoscene.hip

1.39 MB
Binary file not shown.

otls/sop_make_loop.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Thu Sep 5 10:55:01 2019
13+
Modified: Wed Oct 23 13:57:41 2019
1414

otls/sop_make_loop.hda/gamedev_8_8Sop_1sop__make__loop/Contents.dir/Contents.mime

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,25 @@ Content-Type: text/plain
2020

2121
sopflags sopflags =
2222
comment ""
23-
position -1.42701 0.590876
24-
connectornextid 0
25-
flags = lock off model off template off footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
23+
position -0.411765 -2.24706
24+
connectornextid 1
25+
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
2626
outputsNamed3
2727
{
2828
}
2929
inputsNamed3
3030
{
31+
0 sop_sine_wave1 1 1 "input1"
3132
}
3233
inputs
3334
{
35+
0 sop_sine_wave1 0 1
3436
}
3537
stat
3638
{
37-
create 1567694946
38-
modify 1567695317
39-
39+
create 1571852184
40+
modify 1571853513
41+
author MAINGEAR@DESKTOP-P98C1VA
4042
access 0777
4143
}
4244
color UT_Color RGB 0.8 0.8 0.8
@@ -164,7 +166,7 @@ Content-Type: text/plain
164166
{
165167
"___Version___":{
166168
"type":"string",
167-
"value":"17.5.347"
169+
"value":"17.5.360"
168170
}
169171
}
170172

@@ -258,7 +260,7 @@ Content-Type: text/plain
258260
{
259261
version 0.8
260262
method [ 0 locks=0 ] ( "byframe" )
261-
frame [ 8 locks=0 ] ( [ frame 120 ] )
263+
frame [ 8 locks=0 ] ( [ frame 17 ] )
262264
integerframe [ 0 locks=0 ] ( "on" )
263265
time [ 0 locks=0 ] ( [ time 8.2916666666666661 ] )
264266
rangeclamp [ 0 locks=0 ] ( "none" )
@@ -273,7 +275,7 @@ Content-Type: text/plain
273275
{
274276
"___Version___":{
275277
"type":"string",
276-
"value":"17.5.347"
278+
"value":"17.5.360"
277279
}
278280
}
279281

@@ -367,7 +369,7 @@ Content-Type: text/plain
367369
{
368370
version 0.8
369371
method [ 0 locks=0 ] ( "byframe" )
370-
frame [ 8 locks=0 ] ( [ frame 1 ] )
372+
frame [ 8 locks=0 ] ( [ frame 42 ] )
371373
integerframe [ 0 locks=0 ] ( "on" )
372374
time [ 0 locks=0 ] ( [ time 6.208333333333333 ] )
373375
rangeclamp [ 0 locks=0 ] ( "none" )
@@ -382,7 +384,7 @@ Content-Type: text/plain
382384
{
383385
"___Version___":{
384386
"type":"string",
385-
"value":"17.5.347"
387+
"value":"17.5.360"
386388
}
387389
}
388390

@@ -462,7 +464,7 @@ morph [ 0 locks=0 ] ( "off" )
462464
updatechannels [ 0 locks=0 ] ( 0 )
463465
nblends [ 0 locks=0 ] ( 2 )
464466
blend0 [ 0 locks=0 ] ( 1 )
465-
blend1 [ 8 locks=0 ] ( [ blend1 0 ] )
467+
blend1 [ 8 locks=0 ] ( [ blend1 0.24080371584473734 ] )
466468
}
467469

468470
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -472,7 +474,7 @@ Content-Type: text/plain
472474
{
473475
"___Version___":{
474476
"type":"string",
475-
"value":"17.5.347"
477+
"value":"17.5.360"
476478
}
477479
}
478480

@@ -552,7 +554,7 @@ Content-Type: text/plain
552554
{
553555
"___Version___":{
554556
"type":"string",
555-
"value":"17.5.347"
557+
"value":"17.5.360"
556558
}
557559
}
558560

@@ -639,7 +641,7 @@ Content-Type: text/plain
639641
version 0.8
640642
copyinput [ 0 locks=0 ] ( "on" )
641643
cacheinput [ 0 locks=0 ] ( "off" )
642-
loop_length [ 8 locks=0 ] ( [ loop_length 239 ] )
644+
loop_length [ 8 locks=0 ] ( [ loop_length 49 ] )
643645
}
644646

645647
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -649,7 +651,7 @@ Content-Type: text/plain
649651
{
650652
"___Version___":{
651653
"type":"string",
652-
"value":"17.5.347"
654+
"value":"17.5.360"
653655
}
654656
}
655657

@@ -710,7 +712,7 @@ Content-Type: text/plain
710712
{
711713
"___Version___":{
712714
"type":"string",
713-
"value":"17.5.347"
715+
"value":"17.5.360"
714716
}
715717
}
716718

@@ -769,7 +771,7 @@ Content-Type: text/plain
769771
{
770772
"___Version___":{
771773
"type":"string",
772-
"value":"17.5.347"
774+
"value":"17.5.360"
773775
}
774776
}
775777

otls/sop_make_loop.hda/gamedev_8_8Sop_1sop__make__loop/DialogScript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
name "start_frame"
1919
label "Start Frame"
2020
type integer
21-
default { "$RFSTART" }
21+
default { [ "$RFSTART" hscript-expr ] }
2222
range { 0 10 }
2323
}
2424
parm {
2525
name "end_frame"
2626
label "End Frame"
2727
type integer
28-
default { "$RFEND" }
28+
default { [ "$RFEND" hscript-expr ] }
2929
range { 0 10 }
3030
}
3131
parm {

otls/sop_visualize_uvs.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Wed Oct 23 13:16:54 2019
13+
Modified: Wed Oct 23 13:58:07 2019
1414

0 commit comments

Comments
 (0)