Page 1 of 1

Update UV Transfrom from script?

PostPosted: Fri Mar 16, 2018 8:25 am
by bmustata
Hi,

How can I update UV Transfrom (NT_TRANSFORM_VALUE) from code?

Image

Thanks

Re: Update UV Transfrom from script?

PostPosted: Sun Mar 18, 2018 11:48 pm
by mojave
Hi bmustata,

There are several nodes types that make use of NT_TRANSFORM_VALUEso you'll need to find the actual pin within that node using the Lua API browser.

In either case, once you find the right pin to read or write, these are the attributes you can access to:

Capture.PNG


I hope that helps.

Re: Update UV Transfrom from script?

PostPosted: Mon Mar 19, 2018 11:28 am
by bmustata
Currently I'm trying something like this but it's not working right.

Code: Select all
node:setPinValue(octane.P_TRANSFORM, octane.matrix.make3dTransformation({0,0,rotate}, {repeatX,repeatY,0}, {0,0,0}, 2))

Re: Update UV Transfrom from script?

PostPosted: Tue Mar 27, 2018 8:16 pm
by bmustata
Any more help on how to update the rotateZ and scaleX & Y for a texture (NT_TEXT_IMAGE)?

Re: Update UV Transfrom from script?

PostPosted: Fri Apr 06, 2018 3:20 am
by mojave
Nodes of the type NT_TEXT_IMAGE have a pin P_TRANSFORM of NT_TRANSFORM_VALUE type.

You need to set the attributes I showed you in my previous post to their individual values.