Transform Node Slider/ Projection Proxy

Forums: Transform Node Slider/ Projection Proxy
Sub forum for feature requests etc

Moderator: JimStar

Transform Node Slider/ Projection Proxy

Postby Renart » Mon Jan 16, 2017 4:55 pm

Renart Mon Jan 16, 2017 4:55 pm
Hi!

- Is it possible to have sliders in the transform nodes instead of text boxes where you have to put the values yourself ? Or maybe there is a way to change it?
Using the channel box click and drag is not very handful.

- Same with the Projection node. If there is a way to have a proxy representation of the projection in the scene it would be very usefull ! Something that we can transform, rotate and scale to affect the projection node's transformation.

Thank you!
Renart
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Mon Jul 04, 2016 8:21 pm

Re: Transform Node Slider/ Projection Proxy

Postby calus » Mon Jan 16, 2017 8:55 pm

calus Mon Jan 16, 2017 8:55 pm
Renart wrote:Hi!

- Is it possible to have sliders in the transform nodes instead of text boxes where you have to put the values yourself ? Or maybe there is a way to change it?
Using the channel box click and drag is not very handful.

- Same with the Projection node. If there is a way to have a proxy representation of the projection in the scene it would be very usefull ! Something that we can transform, rotate and scale to affect the projection node's transformation.

If you don't like dragging attributes with the channel box,
Crtl Drag in the attribute editor field do the same.

But it's even more handy as you can have 3 speed of virtual cursor :

-Ctrl Left Mouse Button drag: slow cursor

-Ctrl Middle Mouse Button drag: normal cursor

-Ctrl Right Mouse Button drag: fast cursor

Also you can just connect the Translate, Rotate, Scale attribute of a Maya Locator node to the Octane Transform node,
to manipulate it directly in the viewport:
(If you use "Local coordinate space" in the project node, you must parent the locator to the object)
Attachments
ProjectionTransfromManipulator.zip
(13.26 KiB) Downloaded 244 times
maya_2017-01-16_22-23-32.png
Pascal ANDRE
calus
Licensed Customer
Licensed Customer
 
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

Re: Transform Node Slider/ Projection Proxy

Postby Renart » Tue Jan 17, 2017 2:03 pm

Renart Tue Jan 17, 2017 2:03 pm
Thank you Calus!

I didn't know you can drag the values on the attribute editor as well :)

For the projection, it's a good idea!

I made a quick and dirty script to make the process more easy everytime :

Code: Select all
import maya.cmds as cmds
#Octane_Projection_Setup
#Select the texture node to project and run the script. It will create a locator linked to the projection to make the transform more easy to manipulate.
#You can change the projection type by changing the octaneBoxProjection with what you need

#Nodes creations
TextureNode = cmds.ls(sl=1)
NameSuffix = TextureNode[0]
ProjectionNode = cmds.createNode('octaneBoxProjection', n='octaneBoxProjection_'+NameSuffix)
TransformNode = cmds.createNode('octaneTransform3D', n='octaneTransform3D_'+NameSuffix)
ConversionNode = cmds.createNode('unitConversion', n='unitConversion_'+NameSuffix)
LocatorNode = cmds.spaceLocator(n='Locator_'+NameSuffix)


#Connections
cmds.connectAttr('Locator_'+NameSuffix+'.rotate','unitConversion_'+NameSuffix+'.input')
cmds.connectAttr('unitConversion_'+NameSuffix+'.output','octaneTransform3D_'+NameSuffix+'.Rotation')
cmds.connectAttr('Locator_'+NameSuffix+'.scale','octaneTransform3D_'+NameSuffix+'.Scale')
cmds.connectAttr('Locator_'+NameSuffix+'.translate','octaneTransform3D_'+NameSuffix+'.Translation')
cmds.connectAttr('octaneTransform3D_'+NameSuffix+'.outTransform','octaneBoxProjection_'+NameSuffix+'.Transform')
cmds.connectAttr('octaneBoxProjection_'+NameSuffix+'.outProj',NameSuffix+'.Projection')

#SetAttributes
cmds.setAttr('unitConversion_'+NameSuffix+'.conversionFactor',57.296)


I'm gonna create a thread in the tutorial folder as well :)

Cheers!
Renart
Licensed Customer
Licensed Customer
 
Posts: 70
Joined: Mon Jul 04, 2016 8:21 pm

Return to User Requests


Who is online

Users browsing this forum: No registered users and 1 guest

Thu Jun 06, 2024 5:03 am [ UTC ]