Transform from centroid
495 2 0-
- coccarolla
- Member
- 169 posts
- Joined: Aug. 2013
- Online
-
- Christos Stavridis
- Staff
- 9 posts
- Joined: June 2018
- Online
Hi!
Transform from Centroid is an alias that uses the Transform SOP with specific parameter values. Therefore, it won't appear in the library for adding to a radial menu.
Instead, you'll need to use a Script Action, which you can find under the Utilities tab.
Set the label to "Transform from Centroid" and choose an icon. Then, in the script section, add the following script:
I've attached an image as well.
Let me know if that works for you.
Transform from Centroid is an alias that uses the Transform SOP with specific parameter values. Therefore, it won't appear in the library for adding to a radial menu.
Instead, you'll need to use a Script Action, which you can find under the Utilities tab.
Set the label to "Transform from Centroid" and choose an icon. Then, in the script section, add the following script:
import soptoolutils node = soptoolutils.genericTool(kwargs, 'xform', exact_node_type=False) node.setParmExpressions({ 'px': 'centroid(0, D_X)', 'py': 'centroid(0, D_Y)', 'pz': 'centroid(0, D_Z)' }) node.setName('transform_from_centroid1', True)
I've attached an image as well.
Let me know if that works for you.
Christos Stavridis
Technical Artist
SideFX Labs
Technical Artist
SideFX Labs
-
- coccarolla
- Member
- 169 posts
- Joined: Aug. 2013
- Online
Christos Stavridis
Hi!
Transform from Centroid is an alias that uses the Transform SOP with specific parameter values. Therefore, it won't appear in the library for adding to a radial menu.
Instead, you'll need to use a Script Action, which you can find under the Utilities tab.
Set the label to "Transform from Centroid" and choose an icon. Then, in the script section, add the following script:import soptoolutils node = soptoolutils.genericTool(kwargs, 'xform', exact_node_type=False) node.setParmExpressions({ 'px': 'centroid(0, D_X)', 'py': 'centroid(0, D_Y)', 'pz': 'centroid(0, D_Z)' }) node.setName('transform_from_centroid1', True)
I've attached an image as well.
Let me know if that works for you.
Thanks!
Any way for us query these aliases in the future? Something like an echo command maybe?!
-
- Quick Links

