PDA

View Full Version : creating dg nodes


ktpr
05-24-2003, 08:44 PM
As I understand it dag nodes are displayed in the hypergraph (dependency mode) but I don't really see how to create a stand alone node. They seem to be only created by preforming actions. What if I want to create a "copyUVset" node and attach it's inputs/outputs to whatever I please? Can this be done only be excuting commands?

actually:
createNode "copyUVset" -n "test" -p "subdivSphere2Shape";

creates a node but it seems to be blank ... ?
addAttr doesn't seem to be what I'm after.

thanks for your time
cheers
ktpr

mark_wilkins
05-25-2003, 06:11 AM
Use connectAttr to connect the inputs and outputs as appropriate, and use setAttr to set static attributes.

Some nodes can be created by hand using Hypershade, under the Utility nodes tab.

-- Mark

ktpr
05-25-2003, 08:07 AM
thanks for the reply. I've learned a lot about nodes now.
---

Instead of spamming the board as I have I'm going reply here with a related question.
I emailed this ? to the highend mailing list too, in hopes of an answer..

I'm going to try to state my problem concisely:

Problem: Attempting to transfer adaptive poly uvs (-f
1) created via subdToPoly -suv 1 to original Subdiv
surface.

Reason: Much easier and faster/stable to edit poly uvs
than directly on hierch. subd. Both poly and subd
share uvs so there should be 1-1 relationship to
enable transfer of uv edits. (note subdToPoly
-convertComp is not implemented)

Attempted: With subd surf: subdToPoly -suv 1 -f 1 -ch
0; create a polyUVTweak node and attach uvpt0; create
subdUVTweak node and attach pUVTweak uvpt0 to same in
subdUVTweak. Finally, attach subUVTweak's sub tweak0
to subdShape's UvSet[0].UVsetpoints[0]. Move
poly.map[0] and nothing happens.

Question: How can i set up a one to one total uv
correspondence or a least relationship between a
polygon -suv and subd surface such that I can lay out
the poly and transfer the results to the subd surf. I
assume that I could set node state to prevent
processing until I'm done laying out the poly surface.

Any and all help will be greatly appreciated! I know
for a fact that several 3d artists would love to be
able to this.

thank you for your time
cheers
ktpr

mark_wilkins
05-25-2003, 08:12 AM
You might want to repost your question as a new thread with a descriptive title, so that it will be noticed by those who have relevant experience.

I'd post it in the "maya rendering" discussion.

-- Mark

ktpr
05-25-2003, 09:19 AM
will do. Your right that a ? like this seems pointed at nodes and the hypergraph.

cheers
ktpr

CGTalk Moderation
01-15-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.