Skip to content

Commit

Permalink
updated align 1.2 help
Browse files Browse the repository at this point in the history
  • Loading branch information
toadstorm committed Mar 14, 2020
1 parent 3f3ab5f commit c8430cd
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 42 deletions.
6 changes: 3 additions & 3 deletions otls/MOPS_Align.hda/INDEX__SECTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Inputs: 1 to 1
Subnet: true
Python: false
Empty: false
Modified: Mon Nov 11 20:51:29 2019
Modified: Mon Nov 11 18:51:29 2019

Operator: MOPS::Align::1.1
Label: MOPs Align
Expand All @@ -24,7 +24,7 @@ Inputs: 1 to 1
Subnet: true
Python: false
Empty: false
Modified: Mon Dec 2 20:13:21 2019
Modified: Mon Dec 2 18:13:21 2019

Operator: MOPS::Align::1.2
Label: MOPs Align
Expand All @@ -38,5 +38,5 @@ Inputs: 1 to 1
Subnet: true
Python: false
Empty: false
Modified: Fri Mar 13 20:34:50 2020
Modified: Sat Mar 14 14:51:53 2020

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ Content-Type: text/plain

sopflags sopflags =
comment ""
position -1.973 -3.9444
position -5.15845 -4.17522
connectornextid 2
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
outputsNamed3
{
0 "output1"
1 "output1"
}
inputsNamed3
{
1 MOPs_Transform_Modifier 1 1 "input1"
0 MOPs_Color_Modifier 1 1 "input1"
}
inputs
{
0 MOPs_Transform_Modifier 0 1
0 MOPs_Color_Modifier 0 1
}
stat
{
create 1584077743
modify 1584156829
create 1584220739
modify 1584222691
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -108,7 +108,7 @@ inputs
stat
{
create 1584071885
modify 1584156741
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -411,7 +411,7 @@ vex_selectiongroup [ 0 locks=0 ] ( "" )
vex_precision [ 0 locks=0 ] ( auto )
folder1 [ 0 locks=0 ] ( 0 0 )
move [ 0 locks=0 ] ( [ move 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 0 ] )
do_vexpression [ 0 locks=0 ] ( [ do_vexpression 0 ] )
vexpression [ 0 locks=0 ] ( [ vexpression "// pivot = {0,0,0};" ] )
bindname1 [ 0 locks=0 ] ( [ bindname1 mops_falloff ] )
Expand Down Expand Up @@ -460,7 +460,7 @@ inputs
stat
{
create 1584071885
modify 1584156789
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -790,7 +790,7 @@ vex_precision [ 0 locks=0 ] ( auto )
folder1 [ 0 locks=0 ] ( 0 0 )
pivot [ 0 locks=0 ] ( [ pivotx 0 ] [ pivoty 0 ] [ pivotz 0 ] )
move [ 0 locks=0 ] ( [ move 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 0 ] )
do_vexpression [ 0 locks=0 ] ( [ do_vexpression 0 ] )
vexpression [ 0 locks=0 ] ( [ vexpression "// pivot = {0,0,0};" ] )
bindname1 [ 0 locks=0 ] ( [ bindname1 mops_falloff ] )
Expand Down Expand Up @@ -839,7 +839,7 @@ inputs
stat
{
create 1584071885
modify 1584156869
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -1186,7 +1186,7 @@ folder1 [ 0 locks=0 ] ( 0 0 )
pivot [ 0 locks=0 ] ( [ pivotx 0 ] [ pivoty 0 ] [ pivotz 0 ] )
local [ 0 locks=0 ] ( [ local 1 ] )
move [ 0 locks=0 ] ( [ move 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 0 ] )
do_vexpression [ 0 locks=0 ] ( [ do_vexpression 0 ] )
vexpression [ 0 locks=0 ] ( [ vexpression "// pivot = {0,0,0};" ] )
bindname1 [ 0 locks=0 ] ( [ bindname1 mops_falloff ] )
Expand Down Expand Up @@ -1235,7 +1235,7 @@ inputs
stat
{
create 1584071885
modify 1584156816
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -1552,7 +1552,7 @@ vex_selectiongroup [ 0 locks=0 ] ( "" )
vex_precision [ 0 locks=0 ] ( auto )
folder1 [ 0 locks=0 ] ( 0 0 )
pivot [ 0 locks=0 ] ( [ pivotx 0 ] [ pivoty 0 ] [ pivotz 0 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 0 ] )
do_vexpression [ 0 locks=0 ] ( [ do_vexpression 0 ] )
vexpression [ 0 locks=0 ] ( [ vexpression "// pivot = {0,0,0};" ] )
bindname1 [ 0 locks=0 ] ( [ bindname1 mops_falloff ] )
Expand Down Expand Up @@ -1601,7 +1601,7 @@ inputs
stat
{
create 1584071885
modify 1584156789
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -1922,7 +1922,7 @@ vex_precision [ 0 locks=0 ] ( auto )
folder1 [ 0 locks=0 ] ( 0 0 )
mode [ 0 locks=0 ] ( [ mode 2 ] )
move [ 0 locks=0 ] ( [ move 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 1 ] )
do_falloff [ 0 locks=0 ] ( [ do_falloff 0 ] )
do_vexpression [ 0 locks=0 ] ( [ do_vexpression 0 ] )
vexpression [ 0 locks=0 ] ( [ vexpression "// pivot = {0,0,0};" ] )
bindname1 [ 0 locks=0 ] ( [ bindname1 mops_falloff ] )
Expand Down Expand Up @@ -1971,7 +1971,7 @@ inputs
stat
{
create 1584078517
modify 1584083095
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -2051,7 +2051,7 @@ inputs
stat
{
create 1584078821
modify 1584083054
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -2150,7 +2150,7 @@ inputs
stat
{
create 1584079278
modify 1584082438
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -2540,7 +2540,7 @@ inputs
stat
{
create 1584077764
modify 1584082438
modify 1584220739
author Henry@LAPPY586
access 0777
}
Expand Down Expand Up @@ -2569,7 +2569,7 @@ Content-Type: text/plain

{
version 0.8
input [ 0 locks=0 ] ( [ input 2 ] )
input [ 0 locks=0 ] ( [ input 1 ] )
}

--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
Expand Down
2 changes: 1 addition & 1 deletion otls/MOPS_Align.hda/MOPS_8_8Sop_1Align_8_81.2/DialogScript
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
label "Vexpression"
type string
default { "// pivot = {0,0,0};" }
disablewhen "{ do_vexpression 0 }"
disablewhen "{ do_vexpression == 0 }"
parmtag { "autoscope" "0000000000000000" }
parmtag { "editor" "1" }
parmtag { "editorlang" "vex" }
Expand Down
40 changes: 23 additions & 17 deletions otls/MOPS_Align.hda/MOPS_8_8Sop_1Align_8_81.2/Help
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

#icon: opdef:.?mops_modifier_02.svg

"""Aligns packed primitives and/or their pivots."""
"""Aligns packed primitives and modifies pivot points."""

MOPs Align can modify the positions and pivots of packed primitives to align them based on their underlying bounding boxes. This means you can have them all scale up from their lowest point in Y, for example, without having to manually set the pivots of each of the instances in the MOPs Instancer. You can also set the pivot point manually to any position in space via a channel or a VEXpression, allowing for more complex transformations or FK-like behavior.

TIP:
The Custom Pivot (Local) option works best when modifying pivots of Packed Alembic transforms.

== Overview ==

@inputs
Expand All @@ -28,24 +25,33 @@ Falloff Attribute:
#id: falloff_attr
The name of the point attribute to use as the falloff attribute.

Mode:
#id: mode
The method by which the pivots should be adjusted.
* Center Pivot: The pivot points are reset to the original packed center of each packed primitive.
* Align to BBox: The pivot point is moved to the center of one of the faces of each primitive's bounding box.
* Shift Pivot: An offset is added to the existing pivot of each packed primitive, in local or world space.
* Set Pivot (Local): The pivot is set to an exact specified location, relative to each packed primitive.
* Set Pivot (World): The pivot is set to an exact specified location in world space.

Pivots Only:
#id: pivots_only
If enabled, the pivots of the packed primitives will be adjusted without modifying their positions in space.

Align To:
#id: mode
Choose the bounding box axis to align primitives to. There are four special modes:
* Centroid: Reset the pivots to each packed primitive's centroid.
* Custom Offset: Add an offset to the existing pivots.
* Custom Pivot (Local): Apply a single pivot to all primitives, in the local space of each primitive. This works best with Packed Alembic transform data.
* Custom Pivot (World): Apply a single pivot to all primitives in world space. This means that all primitives will transform around a single point, much like the Transform SOP.
Alignment Side:
#id: align
Align to BBox mode only. The face of the bounding box of each primitive to snap the pivot to.

Pivot Offset:
#id: pivot_offset
Available only in "Custom Offset" mode. The offset to add to all pivots.
Shift Amount:
#id: shift_amount
Shift Pivot mode only. The value to add to the existing pivot point of each packed primitive.

New Pivot:
#id: pivot_absolute
Available only in "Custom Pivot" mode. The new pivot to apply to all primitives.
Local Space:
#id: local
Shift Pivot mode only. If enabled, the specified Shift Amount will be applied in the local space of each packed primitive. Otherwise the shift will be in world space.

Pivot:
#id: pivot
Set Pivot mode only. The new pivot point for each packed primitive. In Local mode, this is relative to the original packed center of each primitive. In World mode, this is a single position in world space.


0 comments on commit c8430cd

Please sign in to comment.