Jump to content
Sign in to follow this  
JJ FX

move pivot to specific point

Recommended Posts

Hi, 

So I want to move my pivot to a specific point, lets say ptnum=0. But this in transform sop does not work I get error.

point("../add1/", "P.x",0);[/CODE]

Share this post


Link to post
Share on other sites

Hi!

If I have a polygon sphere, and I want to put the pivot of my transform sop to point number 30 on my sphere, I would write like so 

point("../sphere1", 30, "P", 0)       point("../sphere1", 30, "P", 1)        point("../sphere1", 30, "P", 2)

You're trying to do "P.x". The function is looking for an attribute, so you just need put "P" for position. Since position is a vector, it has 3 components which are what the last number in the function refer to. 0 for x, 1 for y, and 2 for z. 

Hope this helps!

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×