how to create node just as in the group

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2013   #1
how to create node just as in the group

i am reading nodes inside group and want to pop out the write node

but the problem is when i try to create node the nodename contains data related to attributes and its values but not the node name

from __future__ import with_statement  import nuke

 print "\n"

 grp = nuke.toNode("Group1")

  with grp:

 	    nodes = nuke.allNodes()

 	    for node in nodes:

 		        print node
output i get is

operation exclusion sRGB false

 screen_alpha false

 bbox union

 metainput B

 Achannels rgba

 Bchannels rgba

 output rgba

 also_merge none

 maskChannelMask alpha

 maskChannelInput none

 inject false

 invert_mask false

 fringe false

 process_mask false

 mix 1

  rotoMode 1

 output rgba

 outputMask none

 premultiply none

 format "2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)"

 cliptype format

 replace false

 curves {AnimTree: "" {

  Version: 1.2

  Flag: 0

  RootNode: 1

  Node: {

   NodeName: "Root" {

    Flag: 512

    NodeType: 1

    Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1024 S 0 778 

    NumOfAttributes: 10

    "vis" S 0 1 "opc" S 0 1 "mbo" S 0 1 "mb" S 0 1 "mbs" S 0 0.5 "fo" S 0 1 "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 

   }

   NumOfChildren: 1

   Node: {

    NodeName: "Bezier1" {

     Flag: 576

     NodeType: 3

     CurveGroup: "" {

      Transform: 0 0 S 1 1 0 S 1 1 0 S 1 1 0 S 1 1 1 S 1 1 1 S 1 1 0 S 1 1 786.25 S 1 1 768.75 

      Flag: 0

      NumOfCubicCurves: 2

      CubicCurve: "" {

       Type: 0 Flag: 8192 Dim: 2

       NumOfPoints: 12

       0 S 1 1 0 S 1 1 -5 0 0 S 1 1 530 S 1 1 905 0 0 S 1 1 0 S 1 1 5 0 0 S 1 1 0 S 1 1 10 0 0 S 1 1 530 S 1 1 625 0 0 S 1 1 0 S 1 1 -10 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 1350 S 1 1 440 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 1310 S 1 1 1145 0 0 S 1 1 0 S 1 1 0 0 

      }

      CubicCurve: "" {

       Type: 0 Flag: 8192 Dim: 2

       NumOfPoints: 12

       0 S 1 1 0 S 1 1 -5 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 5 0 0 S 1 1 0 S 1 1 10 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 -10 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 0 S 1 1 0 S 1 1 0 0 

      }

      NumOfAttributes: 43

      "vis" S 0 1 "r" S 0 1 "g" S 0 1 "b" S 0 1 "a" S 0 1 "ro" S 0 0 "go" S 0 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bm" S 0 0 "inv" S 0 0 "mbo" S 0 0 "mb" S 0 1 "mbs" S 0 0.5 "mbsot" S 0 0 "mbso" S 0 0 "fo" S 0 1 "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 "src" S 0 0 "stx" S 0 0 "sty" S 0 0 "str" S 0 0 "sr" S 0 0 "ssx" S 0 1 "ssy" S 0 1 "ss" S 0 0 "spx" S 0 1024 "spy" S 0 778 "stot" S 0 0 "sto" S 0 0 "sv" S 0 0 "sf" S 0 1 "sb" S 0 1 "nv" S 0 1 "view1" S 0 1 "ltn" S 0 1 "ltm" S 0 1 "ltt" S 0 0 "tt" S 0 4 

     }

    }

    NumOfChildren: 0

   }

  }

 }

 }

 tools 1

 toolbox {selectAll {

   { createBezier tt 4 }

 } }

 toolbar_show_clone_settings false

 toolbar_show_paint_selection false

 toolbar_key ""

 rototools_clone 1

 toolbar_source_filter Cubic

 toolbar_source_reset ""

 color 1

 colorOverlay 0

 opacity 1

 paint_source color

 blending_mode over

 lifetime_type "all frames"

 lifetime_start 1

 lifetime_end 1

 view {main}

 key ""

 visible true

 locked false

 translate {0 0}

 rotate {0}

 scale {1}

 skew {0}

 center {786.25 768.75}

 shape_source color

 feather 0

 feather_on true

 feather_falloff 1

 feather_type linear

 motionblur 1

 motionblur_on false

 motionblur_shutter 0.5

 motionblur_shutter_offset_type centred

 motionblur_shutter_offset 0

 inverted false

 brush_source color

 brush_type paint

 brush_size 25

 brush_spacing 0.05

 brush_hardness 0.2

 effect_parameter1 0

 dynamic_transparency true

 dynamic_size false

 dynamic_hardness false

 buildup true

 writeon_start 0

 writeon_end 1

 source_translate_round false

 source_filter Cubic

 source_black_outside true

 source_time_offset 0

 source_time_offset_type relative

 source_view current

 pixel_aspect 0

 maskChannelMask alpha

 maskChannelInput none

 inject false

 invert_mask false

 fringe false

 process_mask false

  Horizontal false

 Vertical false

  format "2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)"

 channels rgba

 centerSaturation 0

 edgeSaturation 1

 centerValue 1

 edgeValue 1

 gamma 0.45

 rotate 0

 fillFormat true

 area {0 0 100 100}
 
Old 04 April 2013   #2
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:47 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.