Jump to content

Ptransform()


ivan

Recommended Posts

ptransform() does not have correct help browser information.

How is it used?

Is there a function that returns the matrix of a particular space?

I assume there is, and that's what would return the 4X4 that ptransform needs...

matrix WT = otransform("WORLD");

vector Pw = ptransform(P,WT);

you need an object called "WORLD" for this to work...

ptransform() does not have correct help browser information.

How is it used?

Is there a function that returns the matrix of a particular space?

I assume there is, and that's what would return the 4X4 that ptransform needs...

Link to comment
Share on other sites

How is it used?

Is there a function that returns the matrix of a particular space?

Hi Ivan,

Yup, the help is wrong. Or rather, it may be correct for H9, but certainly not for H8 (assuming I can believe what a little bird told me :))

You're basically stuck with

matrix otransform(string path_to_obj)

Usually the string argument is a null object with "Output transform as render space" toggled ON (in the Render tab of the null).... *and* displayed when rendering, else it won't make it to the ifd.

But the good news is that we may FINALLY have a predefined world space (and others) in H9. Unfortunately it's not something they can back-port to H8.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...