Hi Guys,

Ari, if I follow you correctly you can use a combination of a ParticleDrag node and a ParticleExpression node (to change the channel the particles are in at a particular frame), then apply the forces to that channel downstream to get what you are after.

Have a look at this example Nuke 6.3v7 script. Is that what you want?

Cheers,

Sean



Moritz Moeller wrote:
On 5/17/2012 1:20 PM, Diogo Girondi wrote:
A "hold" node for particles would be great.

Can't a particle expression be used to set velocity to zero?

.mm
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

--
Sean Brice, Product Designer
The Foundry, 6th Floor, The Communications Building
48 Leicester Square,
London, WC2H 7LT, UK
Tel: +44 (0)20 7968 6828 / Fax: +44 (0)20 7930 8906 / Web: www.thefoundry.co.uk

The Foundry Visionmongers Ltd / Registered in England and Wales No: 4642027

#! ./Nuke6.3v7 -nx
version 6.3 v7
define_window_layout_xml {<?xml version="1.0" encoding="UTF-8"?>
<layout version="1.0">
    <window x="0" y="0" w="1680" h="1050" fullscreen="1" screen="0">
        <splitter orientation="1">
            <split size="1154"/>
            <splitter orientation="1">
                <split size="40"/>
                <dock id="" hideTitles="1" activePageId="Toolbar.1">
                    <page id="Toolbar.1"/>
                </dock>
                <split size="1110"/>
                <splitter orientation="2">
                    <split size="637"/>
                    <dock id="" hideTitles="1" activePageId="Viewer.1">
                        <page id="Viewer.1"/>
                    </dock>
                    <split size="409"/>
                    <dock id="" activePageId="DAG.1">
                        <page id="DAG.1"/>
                        <page id="Curve Editor.1"/>
                        <page id="DopeSheet.1"/>
                    </dock>
                </splitter>
            </splitter>
            <split size="522"/>
            <dock id="" activePageId="Properties.1">
                <page id="Properties.1"/>
                <page id="Error Console.1"/>
            </dock>
        </splitter>
    </window>
</layout>
}
Root {
 inputs 0
 name 
/mnt/nethome/users/sean/Desktop/freeze_sim_then_apply_force_example_n63v7.nk
 project_directory "\[python \{nuke.script_directory()\}]"
 lock_range true
 format "2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)"
 proxy_type scale
 proxy_format "1024 778 0 0 1024 778 1 1K_Super_35(full-ap)"
}
Constant {
 inputs 0
 channels rgb
 format "256 256 0 0 256 256 1 square_256"
 name Constant1
 xpos 397
 ypos -447
}
Radial {
 area {1 6 255 250}
 color {0.8199999928 0.4985600412 0.01639998332 1}
 name Radial1
 xpos 397
 ypos -375
}
Sphere {
 inputs 0
 name Sphere1
 xpos 630
 ypos -382
}
push 0
ParticleEmitter {
 inputs 3
 emit_from faces
 rate {{frame==0?100:0}}
 lifetime 100
 velocity 0.02
 color_from_texture true
 name ParticleEmitter1
 xpos 518
 ypos -375
}
ParticleDrag {
 drag {{frame<20?0:5}}
 channels {a}
 name ParticleDrag1
 xpos 518
 ypos -312
}
ParticleExpression {
 channelsexpr frame==20
 channels {a}
 name ParticleExpression1
 xpos 518
 ypos -278
}
ParticleGravity {
 channels {b}
 name ParticleGravity1
 xpos 518
 ypos -244
}
Viewer {
 frame 1
 frame_range 1-100
 frame_range_lock true
 input_process false
 grid_display false
 name Viewer1
 xpos 518
 ypos -185
}
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to